Name | mtmdb JSON |
Version |
0.0.802
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2024-10-09 10:29:11 |
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": "mtmdb",
"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/d0/1c/fde068106e19515ece7756cd26d91aec874ee346c855dd90237c13ac9dd2/mtmdb-0.0.802.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.0.802",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "36a1122a2918443b58c6aace7778b431b30a3bb56383a0956ffc71f041b4de5e",
"md5": "b8fc245872874d7dfddaba69414117d7",
"sha256": "81111f015d2c44dd93ac32d11bb106d15f556a63c460e0bcf940b198072fbd2a"
},
"downloads": -1,
"filename": "mtmdb-0.0.802-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8fc245872874d7dfddaba69414117d7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 2401,
"upload_time": "2024-10-09T10:29:10",
"upload_time_iso_8601": "2024-10-09T10:29:10.149251Z",
"url": "https://files.pythonhosted.org/packages/36/a1/122a2918443b58c6aace7778b431b30a3bb56383a0956ffc71f041b4de5e/mtmdb-0.0.802-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d01cfde068106e19515ece7756cd26d91aec874ee346c855dd90237c13ac9dd2",
"md5": "de67b3437f7f2ea4cf87916f64a91d2f",
"sha256": "78c531b744403900bbcf087308cc195167d7d11dd0a5455a03850398e17f21f3"
},
"downloads": -1,
"filename": "mtmdb-0.0.802.tar.gz",
"has_sig": false,
"md5_digest": "de67b3437f7f2ea4cf87916f64a91d2f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 4238,
"upload_time": "2024-10-09T10:29:11",
"upload_time_iso_8601": "2024-10-09T10:29:11.063559Z",
"url": "https://files.pythonhosted.org/packages/d0/1c/fde068106e19515ece7756cd26d91aec874ee346c855dd90237c13ac9dd2/mtmdb-0.0.802.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-09 10:29:11",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mtmdb"
}