Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ head:
import { Render } from "~/components";

[Pywrangler](https://github.com/cloudflare/workers-py?tab=readme-ov-file#pywrangler) is a CLI tool for managing packages and Python Workers.
It is meant as a wrapper for wrangler that sets up a full environment for you, including bundling your packages into
It is meant as a wrapper for [Wrangler CLI](/workers/wrangler/) that sets up a full Python virtual environment for you, including bundling your packages into
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dom96 is this part true? What we're doing versus what uv is doing re virtual env?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It is meant as a wrapper for [Wrangler CLI](/workers/wrangler/) that sets up a full Python virtual environment for you, including bundling your packages into
It is a wrapper for [Wrangler CLI](/workers/wrangler/) that uses [`uv`](https://github.com/astral-sh/uv) to set up a full Python virtual environment for you, including bundling your packages into

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think true w this edit and also provides context on uv

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, with that edit it makes sense.

your worker bundle on deployment.

To get started, create a pyproject.toml file with the following contents:
To get started, create a `pyproject.toml` file with the following contents:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should clarify that you should still put any Workers specific config in a wrangler.toml or wrangler.jsonc file and link to that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To get started, create a `pyproject.toml` file with the following contents:
To get started, create a [`pyproject.toml` file](https://docs.astral.sh/uv/guides/projects/) with the following contents:


```toml
[project]
Expand All @@ -28,7 +28,7 @@ dependencies = [
dev = ["workers-py"]
```

The above will allow your worker to depend on the [FastAPI](https://fastapi.tiangolo.com/) package.
The above will allow your Worker to depend on the [FastAPI](https://fastapi.tiangolo.com/) package.

To run the worker locally:

Expand All @@ -44,7 +44,7 @@ uv run pywrangler deploy

Your dependencies will get bundled with your worker automatically on deployment.

The `pywrangler` CLI also supports all commands supported by the `wrangler` tool, for the full list of commands run `uv run pywrangler --help`.
`pywrangler` also supports all [commands supported by Wrangler](/workers/wrangler/commands/). For the full list of commands run `uv run pywrangler --help`.

## HTTP Client Libraries

Expand Down