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
190
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
個人のAWSアカウントをマルチ運用してみた
miura55
2
290
さらばあのボタンとは言わせない SORACOM LTE-M Button powerd by AWSをまだ使えるようにした(前編?)
miura55
0
120
App Runnerでパラメーターストアの値を使ってみた
miura55
0
310
ultraArmをモニター提供してもらった話
miura55
0
120
JAWS UG名古屋2023年活動報告
miura55
0
140
AWS Step Functionsの新機能「Call third-party API」を試してみた
miura55
1
110
AWS Step Functionsの新機能「Call third-party API」を試してみた
miura55
0
210
AWS CDKの新機能「cdk migrate」を試してみた
miura55
1
330
LINE DC×SORACOM UGのこれまでとこれから
miura55
0
46
Other Decks in Technology
See All in Technology
Money-saving tips for the frugal serverless developer
theburningmonk
1
370
1Q86
kawaguti
PRO
2
190
[2024년 5월 세미나] 생성형 AI와 함께하는 데이터 분석가 커리어
datarian
0
1.2k
Blazor WASM × Code-first gRPC で始める C# ⼤統⼀理論
sansantech
PRO
1
790
【リラン】AIの光と闇?失敗しないために知っておきたいAIリスクとその対応 ①政府の動き編
tkhresk
0
140
Security Hubのセキュリティスコアはどうやって計算されるか
toru_kubota
0
100
本番環境で Cloudflareを 使ってみた話
miu_crescent
2
130
AWSの生成AI入門書を執筆しました🎉
minorun365
PRO
0
150
【TSkaigi】2024/05/11 当日スライド
kimitashoichi
14
4k
RailsConf 2024 Keynote "Startups on Rails in 2024"
irinanazarova
0
820
[PyconUS 2024] Having fun with Pydantic and pattern matching
enforcerpl
0
190
使われないものを作るな!出口から作るデータ分析基盤 / Data Platform Development Starting from the User Needs
amaotone
16
4.7k
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
228
16k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
Agile that works and the tools we love
rasmusluckow
325
20k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Designing with Data
zakiwarfel
96
4.8k
Atom: Resistance is Futile
akmur
260
25k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
8
3.5k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Being A Developer After 40
akosma
67
580k
Visualization
eitanlees
137
14k
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