A set of libraries and tools for Python Workers
Project description
workers-py
A set of libraries and tools for Python Workers.
Pywrangler
A CLI tool for managing vendored packages in a Python Workers project.
Installation
On Linux, you may be able to install the tool globally by running:
uv pip install --system workers-py
Alternatively, you can add workers-py to your pyproject.toml:
[dependency-groups]
dev = ["workers-py"]
Then run via uv run pywrangler.
Usage
uv run pywrangler --help
uv run pywrangler sync
Development
To run the CLI tool while developing it, use:
export REPO_ROOT=/path/to/repo
uv run --project $REPO_ROOT $REPO_ROOT/src/pywrangler --help
On Linux, to install it globally, you may also be able to run:
uv pip install --system -e .
Alternatively, you can add workers-py to your pyproject.toml:
[dependency-groups]
dev = ["workers-py"]
[tool.uv.sources]
workers-py = { path = "../workers-py" }
Then run via uv run pywrangler.
Tests
$ uv cache clean
$ uv run pytest
$ uv run pytest tests/test_cli.py::test_sync_command_handles_missing_pyproject -v # Specific test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file workers_py-1.2.0.tar.gz.
File metadata
- Download URL: workers_py-1.2.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf940d5a3706a2876d6d6148f41e324ffb02568640fdd2f6e1b1e9d40559d1b6
|
|
| MD5 |
042772c6ab18db0bd0fd856c50e9e3c2
|
|
| BLAKE2b-256 |
c82b4598668cf1252cc0240b0caaf2f224c6d88f0ff15340d20762a77f7cc1a4
|
Provenance
The following attestation bundles were made for workers_py-1.2.0.tar.gz:
Publisher:
release.yml on cloudflare/workers-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
workers_py-1.2.0.tar.gz -
Subject digest:
bf940d5a3706a2876d6d6148f41e324ffb02568640fdd2f6e1b1e9d40559d1b6 - Sigstore transparency entry: 563250776
- Sigstore integration time:
-
Permalink:
cloudflare/workers-py@16299198db73f1e3efb99eb6ef928fc46978acd9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cloudflare
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@16299198db73f1e3efb99eb6ef928fc46978acd9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file workers_py-1.2.0-py3-none-any.whl.
File metadata
- Download URL: workers_py-1.2.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e164993277f077885380a6cae24376d12cb6cb2158b8b71d89e315c5346182
|
|
| MD5 |
c908971b9265798cd586d875e7aa71bb
|
|
| BLAKE2b-256 |
54f4ff1c6ac74dab3c70750588f51bbb7c910afa977c9924781b2c9e94df0d54
|
Provenance
The following attestation bundles were made for workers_py-1.2.0-py3-none-any.whl:
Publisher:
release.yml on cloudflare/workers-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
workers_py-1.2.0-py3-none-any.whl -
Subject digest:
b8e164993277f077885380a6cae24376d12cb6cb2158b8b71d89e315c5346182 - Sigstore transparency entry: 563250791
- Sigstore integration time:
-
Permalink:
cloudflare/workers-py@16299198db73f1e3efb99eb6ef928fc46978acd9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cloudflare
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@16299198db73f1e3efb99eb6ef928fc46978acd9 -
Trigger Event:
push
-
Statement type: