Name | mtmlib JSON |
Version |
0.4.160
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-12-05 03:39:40 |
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/58/5f/0c1c396097179b794d756b24a6f743bb23389ae576eb819c5dcf859cf0cf/mtmlib-0.4.160.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.160",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0c127e9bfb1611c8cf28a917bdf1a5b41a024a22d0c79a202cd3998a901cc277",
"md5": "f734e26c580f444b6169b55f44453453",
"sha256": "daffc90f19e22db9a489bf8781a1c2cabf85c1dcf184aae9351aeed2f13174d9"
},
"downloads": -1,
"filename": "mtmlib-0.4.160-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f734e26c580f444b6169b55f44453453",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 17521,
"upload_time": "2024-12-05T03:39:38",
"upload_time_iso_8601": "2024-12-05T03:39:38.087021Z",
"url": "https://files.pythonhosted.org/packages/0c/12/7e9bfb1611c8cf28a917bdf1a5b41a024a22d0c79a202cd3998a901cc277/mtmlib-0.4.160-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "585f0c1c396097179b794d756b24a6f743bb23389ae576eb819c5dcf859cf0cf",
"md5": "e6ea108bc2a14308bd346a440667f81b",
"sha256": "6e9ec6ab2f2c25aa350b7c276931880fdd9dcd203cebfebc02741c5d2ad3c777"
},
"downloads": -1,
"filename": "mtmlib-0.4.160.tar.gz",
"has_sig": false,
"md5_digest": "e6ea108bc2a14308bd346a440667f81b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 17433,
"upload_time": "2024-12-05T03:39:40",
"upload_time_iso_8601": "2024-12-05T03:39:40.859273Z",
"url": "https://files.pythonhosted.org/packages/58/5f/0c1c396097179b794d756b24a6f743bb23389ae576eb819c5dcf859cf0cf/mtmlib-0.4.160.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 03:39:40",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mtmlib"
}