mtmai


Namemtmai JSON
Version 0.4.152 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-12-05 03:39:34
maintainerNone
docs_urlNone
authorJohn Smith
requires_python<3.13,>=3.10
licenseMIT
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/0f/2e/3340a435f7ef53a0f66eb08e5dfe6284bdd0422784469a46a9aa523a2273/mtmai-0.4.152.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.152",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d1addb3c0ecffe799837e57b5ff197a785cffc2615133964d76b5cfa0a04d35",
                "md5": "bbbfb83fac641aa4be406aa9c5199262",
                "sha256": "ed69f10961abcd37ca3244208ddf298e07b3e7d01b610ba5d7106e7f13a8dcb5"
            },
            "downloads": -1,
            "filename": "mtmai-0.4.152-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bbbfb83fac641aa4be406aa9c5199262",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.10",
            "size": 2677934,
            "upload_time": "2024-12-05T03:39:30",
            "upload_time_iso_8601": "2024-12-05T03:39:30.857348Z",
            "url": "https://files.pythonhosted.org/packages/2d/1a/ddb3c0ecffe799837e57b5ff197a785cffc2615133964d76b5cfa0a04d35/mtmai-0.4.152-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f2e3340a435f7ef53a0f66eb08e5dfe6284bdd0422784469a46a9aa523a2273",
                "md5": "c22302ebf53f2718a484c6a8c6c72422",
                "sha256": "6974f1d198f7ef21630b162a79a90123894147858968b8aa2107552179b40714"
            },
            "downloads": -1,
            "filename": "mtmai-0.4.152.tar.gz",
            "has_sig": false,
            "md5_digest": "c22302ebf53f2718a484c6a8c6c72422",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.10",
            "size": 2490840,
            "upload_time": "2024-12-05T03:39:34",
            "upload_time_iso_8601": "2024-12-05T03:39:34.576952Z",
            "url": "https://files.pythonhosted.org/packages/0f/2e/3340a435f7ef53a0f66eb08e5dfe6284bdd0422784469a46a9aa523a2273/mtmai-0.4.152.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-05 03:39:34",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mtmai"
}
        
Elapsed time: 0.42275s