Name | mtmlib JSON |
Version |
0.4.195
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-12-21 02:20:44 |
maintainer | None |
docs_url | None |
author | John Smith |
requires_python | <3.13,>=3.10 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Python Workers Examples
This is a collection of examples for [writing Cloudflare Workers in Python](https://developers.cloudflare.com/workers/languages/python). Use these examples to learn how Python Workers work.
## Get started
1. `git clone https://github.com/cloudflare/python-workers-examples`
2. `cd hello`
3. `npx wrangler@latest dev`
4. Press the `b` key to open a browser tab, and make a request to your Worker
You can run `npx wrangler@latest dev` in any example project directory to run a local development server using [Wrangler](https://developers.cloudflare.com/workers/wrangler/), the CLI for Cloudflare Workers. This local development server is powered by [workerd](https://github.com/cloudflare/workerd), the open-source Workers runtime.
Need to deploy your Worker to Cloudflare? Python Workers are in open beta and have a few [limitations](#open-beta-and-limits).
## Examples
- [**`01-hello/`**](01-hello) — the most basic Python Worker
- [**`02-binding/`**](02-binding) — shows how [bindings](https://developers.cloudflare.com/workers/configuration/bindings/) work in Python Workers. Put a key into Workers KV, and then read it.
- [**`03-fastapi/`**](03-fastapi) — demonstrates how to use the [FastAPI](https://fastapi.tiangolo.com/) package with Python Workers
- [**`04-langchain/`**](04-langchain) — demonstrates how to use the [LangChain](https://pypi.org/project/langchain/) package with Python Workers
## Open Beta and Limits
- Python Workers are in open beta. Currently, you can only deploy Python Workers that use the standard library. [Packages](https://developers.cloudflare.com/workers/languages/python/packages/#supported-packages) **cannot be deployed** and will only work in local development for the time being.
- You must add the `python_workers` compatibility flag to your Worker, while Python Workers are in open beta.
We’d love your feedback. Join the `#python-workers channel` in the [Cloudflare Developers Discord](https://discord.cloudflare.com/) and let us know what you’d like to see next.
## License
The [Apache 2.0 license](LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "mtmlib",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "John Smith",
"author_email": "john@example.com",
"download_url": "https://files.pythonhosted.org/packages/57/79/d677b8199ddd38ea15a00cf13abec19cd549b68f0cfd0645c72325ab79b2/mtmlib-0.4.195.tar.gz",
"platform": null,
"description": "# Python Workers Examples\n\nThis is a collection of examples for [writing Cloudflare Workers in Python](https://developers.cloudflare.com/workers/languages/python). Use these examples to learn how Python Workers work.\n\n## Get started\n\n1. `git clone https://github.com/cloudflare/python-workers-examples`\n2. `cd hello`\n3. `npx wrangler@latest dev`\n4. Press the `b` key to open a browser tab, and make a request to your Worker\n\nYou can run `npx wrangler@latest dev` in any example project directory to run a local development server using [Wrangler](https://developers.cloudflare.com/workers/wrangler/), the CLI for Cloudflare Workers. This local development server is powered by [workerd](https://github.com/cloudflare/workerd), the open-source Workers runtime.\n\nNeed to deploy your Worker to Cloudflare? Python Workers are in open beta and have a few [limitations](#open-beta-and-limits).\n\n## Examples\n\n- [**`01-hello/`**](01-hello) \u2014\u00a0the most basic Python Worker\n- [**`02-binding/`**](02-binding) \u2014\u00a0shows how [bindings](https://developers.cloudflare.com/workers/configuration/bindings/) work in Python Workers. Put a key into Workers KV, and then read it.\n- [**`03-fastapi/`**](03-fastapi) \u2014\u00a0demonstrates how to use the [FastAPI](https://fastapi.tiangolo.com/) package with Python Workers\n- [**`04-langchain/`**](04-langchain) \u2014\u00a0demonstrates how to use the [LangChain](https://pypi.org/project/langchain/) package with Python Workers\n\n## Open Beta and Limits\n\n- Python Workers are in open beta. Currently, you can only deploy Python Workers that use the standard library. [Packages](https://developers.cloudflare.com/workers/languages/python/packages/#supported-packages) **cannot be deployed** and will only work in local development for the time being.\n- You must add the `python_workers` compatibility flag to your Worker, while Python Workers are in open beta.\n\nWe\u2019d love your feedback. Join the `#python-workers channel` in the [Cloudflare Developers Discord](https://discord.cloudflare.com/) and let us know what you\u2019d like to see next.\n\n## License\n\nThe [Apache 2.0 license](LICENSE).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "0.4.195",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e81a767c3f49e76f09e959f59c2b03e24efe5c16a0cdd8524f85713bb2296119",
"md5": "6291dc3472d1e99e7e656e1c837dfa57",
"sha256": "d80e5172b1ddbf30c0dcb6493581004f17277f496949011275f6d8bc03127f32"
},
"downloads": -1,
"filename": "mtmlib-0.4.195-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6291dc3472d1e99e7e656e1c837dfa57",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 17522,
"upload_time": "2024-12-21T02:20:40",
"upload_time_iso_8601": "2024-12-21T02:20:40.604080Z",
"url": "https://files.pythonhosted.org/packages/e8/1a/767c3f49e76f09e959f59c2b03e24efe5c16a0cdd8524f85713bb2296119/mtmlib-0.4.195-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5779d677b8199ddd38ea15a00cf13abec19cd549b68f0cfd0645c72325ab79b2",
"md5": "d041af6c5837bf268e773191b4ee8f74",
"sha256": "087a87d8075905aa60c189f60b90e2866dbce16eb9973ed5aa4f1dc281baab8b"
},
"downloads": -1,
"filename": "mtmlib-0.4.195.tar.gz",
"has_sig": false,
"md5_digest": "d041af6c5837bf268e773191b4ee8f74",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 17435,
"upload_time": "2024-12-21T02:20:44",
"upload_time_iso_8601": "2024-12-21T02:20:44.507200Z",
"url": "https://files.pythonhosted.org/packages/57/79/d677b8199ddd38ea15a00cf13abec19cd549b68f0cfd0645c72325ab79b2/mtmlib-0.4.195.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 02:20:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mtmlib"
}