Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Cloudflare WorkersがPythonに対応したので試してみた
Search
KMiura
May 08, 2024
Technology
0
930
Cloudflare WorkersがPythonに対応したので試してみた
Cloudflare Meet-up Online!! #3
https://cfm-cts.connpass.com/event/313819/
KMiura
May 08, 2024
Tweet
Share
More Decks by KMiura
See All by KMiura
運用しているアプリケーションのDBのリプレイスをやってみた
miura55
1
1.1k
Amazon Rekognitionを使ったインターホンハック
miura55
0
110
Pythonでルンバをハックしてみた
miura55
0
210
あなたの知らないクラフトビールの世界
miura55
0
400
Storage Browser for Amazon S3を触ってみた + α
miura55
0
260
Cloudflare R2をトリガーにCloudflare Workersを動かしてみた
miura55
0
260
あのボタンでつながるSORACOM
miura55
0
160
Postman Flowsで作るAPI連携LINE Bot
miura55
0
410
Lambdaと共に歩んだAWS
miura55
3
930
Other Decks in Technology
See All in Technology
AWS DevOps Agent vs SRE俺 / AWS DevOps Agent vs me, the SRE
sms_tech
3
390
kintone開発のプラットフォームエンジニアの紹介
cybozuinsideout
PRO
0
840
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
72k
組織のSREを推進するためのPlatform EngineeringとEKS / Platform Engineering and EKS to drive SRE in your organization
chmikata
0
190
AIエージェント・エコノミーの幕開け 〜 オープンプロトコルが変えるビジネスの未来 〜
shukob
0
110
JAWS DAYS 2026 ExaWizards_20260307
exawizards
0
120
Evolution of Claude Code & How to use features
oikon48
1
530
DX Improvement at Scale
ntk1000
3
380
JAWS Days 2026 楽しく学ぼう! 認証認可 入門/20260307-jaws-days-novice-lane-auth
opelab
9
1.5k
プロジェクトマネジメントをチームに宿す -ゼロからはじめるチームプロジェクトマネジメントは活動1年未満のチームの教科書です- / 20260304 Shigeki Morizane
shift_evolve
PRO
1
140
Ultra Ethernet (UEC) v1.0 仕様概説
markunet
3
230
マルチロールEMが実践する「組織のレジリエンス」を高めるための組織構造と人材配置戦略
coconala_engineer
3
620
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
390
Prompt Engineering for Job Search
mfonobong
0
180
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
460
Into the Great Unknown - MozCon
thekraken
40
2.3k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
900
Balancing Empowerment & Direction
lara
5
930
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The Invisible Side of Design
smashingmag
302
51k
Agile that works and the tools we love
rasmusluckow
331
21k
SEO for Brand Visibility & Recognition
aleyda
0
4.3k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
250
Transcript
Cloudflare WorkersがPythonに対応 したので試してみた KMiura(@k_miura_io)
自己紹介 • 三浦 耕生(こうき) • オフィスDXのSaaSのバックエンド エンジニア • JAWS UG
名古屋運営 • Cloudflare Meetup Nagoya運営 @k_miura_io koki.miura05
Cloudflare Developer Week 2024 のアップデート • D1、Hyperdrive、Workers Analytics EngineがGA •
Worker AIがGA • WorkerのPython対応 • Cloudflare Callsがオープンベータ • Pagesがモノリポをサポート • Cloudflare向けのSDKが提供 etc…
WorkersのPythonランタイム • これまではWeb Assemblyで対応してたが、 それが不要になり公式ランタイムで提供されて いる • Pyodideを用いてJavaScriptからPythonの コードを実行できるようになっている •
micropipを用いてブラウザ上にPythonライ ブラリをインストールして実行できるそう 要はランタイムの裏側はWeb Assembly のインターフェースがあると解釈
https://blog.cloudflare.com/python-workers
https://github.com/cloudflare/python-workers-examples
DEMO
None
つまり、デプロイ時にライブラリをインストール する対応は今のところ非対応 一応ローカルで検証できたからレポジトリにあるのかな…?
まとめ • Cloudflare WorkersでWeb Assemblyを使ったPythonランタイムがサポートされた • ライブラリを追加して動かすことができる(ローカルでは) • デプロイ時にライブラリもデプロイする対応はそのうち対応されるはず
予告 次回のCloudflare Meetup Nagoyaは… Next + Pages + WAFのハンズオン(仮) 8月中旬開催予定!
END