Skip to main content

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 tool install 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, install it globally:

uv tool install -e .

Then run it via pywrangler.

Alternatively, you can add workers-py to your pyproject.toml:

[dependency-groups]
dev = ["workers-py"]

[tool.uv.sources]
workers-py = { path = "../workers-py/packages/cli" }
workers-runtime-sdk = { path = "../workers-py/packages/runtime-sdk" }

Then run via uv run pywrangler.

Lint

uv run ruff check --fix
uv run ruff format

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

workers_py-1.14.0.tar.gz (95.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workers_py-1.14.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file workers_py-1.14.0.tar.gz.

File metadata

  • Download URL: workers_py-1.14.0.tar.gz
  • Upload date:
  • Size: 95.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for workers_py-1.14.0.tar.gz
Algorithm Hash digest
SHA256 5ad90b4c6f89778ed7a6afbf4d6c79a4b49a59f1b2a6f38c054d83559aae1510
MD5 af7e64ee5ac1df222e3230313a4fb100
BLAKE2b-256 af7d660f13c9fbd6993fa3c24557e04e7900e47ed4eab802e749db00c4d5235d

See more details on using hashes here.

Provenance

The following attestation bundles were made for workers_py-1.14.0.tar.gz:

Publisher: release.yml on cloudflare/workers-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file workers_py-1.14.0-py3-none-any.whl.

File metadata

  • Download URL: workers_py-1.14.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for workers_py-1.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7416b5d99c2d857a186c92926a29037934ca24a21a635a1b80d3d4f0372258
MD5 4341e41ee95d94e7f5b803b01b5a4add
BLAKE2b-256 505356b181deccb16d39d3c18d9484fb2714c2d9ad41db796919ad436a64b3cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for workers_py-1.14.0-py3-none-any.whl:

Publisher: release.yml on cloudflare/workers-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page