Name | mtmai JSON |
Version |
0.4.195
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-12-21 02:20:36 |
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": "mtmai",
"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/95/ff/a26c6ea694901b4e79bbeefb75f75baea6fd1a6c9072af78b63138666fdb/mtmai-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": "ea8f23ca75f15ff942559684160568a597c3635828264175169a8a7b5dd76898",
"md5": "3574e7af11c1f77ce331f7cf24696446",
"sha256": "7faeec557780a8b993035d677f872fc99568571aad1c1e5fdad9072fbfd2094e"
},
"downloads": -1,
"filename": "mtmai-0.4.195-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3574e7af11c1f77ce331f7cf24696446",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 2647226,
"upload_time": "2024-12-21T02:20:33",
"upload_time_iso_8601": "2024-12-21T02:20:33.630524Z",
"url": "https://files.pythonhosted.org/packages/ea/8f/23ca75f15ff942559684160568a597c3635828264175169a8a7b5dd76898/mtmai-0.4.195-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "95ffa26c6ea694901b4e79bbeefb75f75baea6fd1a6c9072af78b63138666fdb",
"md5": "1bc45edba9cbc31688e45bdeb59b9c0d",
"sha256": "5bace088ac3bce6e1601b2d288cd157da795083c5e5cbaeee6d6f8b29731ac44"
},
"downloads": -1,
"filename": "mtmai-0.4.195.tar.gz",
"has_sig": false,
"md5_digest": "1bc45edba9cbc31688e45bdeb59b9c0d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 2468479,
"upload_time": "2024-12-21T02:20:36",
"upload_time_iso_8601": "2024-12-21T02:20:36.852042Z",
"url": "https://files.pythonhosted.org/packages/95/ff/a26c6ea694901b4e79bbeefb75f75baea6fd1a6c9072af78b63138666fdb/mtmai-0.4.195.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 02:20:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mtmai"
}