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
200
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
サービス開発におけるVue3とTypeScriptの親和性について
tsukuha
10
1.8k
シンプルなHITL機械学習と様々なタスクにおけるHITL機械学習
naohachi89
0
340
開発スピードの維持向上を支える、テスト設計の 漸進的進化への取り組み / Continuous Test Design Development for Speed of Product Development
ropqa
0
190
【リラン】AIの光と闇?失敗しないために知っておきたいAIリスクとその対応 ①政府の動き編
tkhresk
0
140
TailwindCSSでUIライブラリを作る際のハマりどころ
shuta13
0
230
知識と実践を紡ぐGenAI / Connecting Knowledge and experience with GenAI
aki_moon
2
190
データ基盤を支える技術
chanyou0311
5
3k
データベース05: SQL(2/3) 結合質問
trycycle
0
110
動画配信サービスのフロントエンド実装に学ぶ設計原則
yud0uhu
1
140
.NET GraphQL Client のリアル
sansantech
PRO
1
460
TiDBにおけるテーブル設計と最適化の事例
cygames
0
810
From here to resilience - a travel guide
ufried
1
170
Featured
See All Featured
Teambox: Starting and Learning
jrom
128
8.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
358
22k
The Language of Interfaces
destraynor
151
23k
Building an army of robots
kneath
300
42k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
22
1.4k
Debugging Ruby Performance
tmm1
70
11k
Being A Developer After 40
akosma
67
580k
Navigating Team Friction
lara
179
13k
The Mythical Team-Month
searls
217
42k
Thoughts on Productivity
jonyablonski
60
3.9k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.3k
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