Skip to main content

A pure-Python version of `wrangler pages deploy`

Project description

schlepper

Actions status Discord

A Python library for deploying static assets to Cloudflare Pages.

Installation

uv add schlepper

Usage

import schlepper

result = schlepper.deploy(
    "./dist",
    project_name="my-site",
    account_id="your-account-id",
    credentials=schlepper.ApiToken(token="your-api-token"),
    branch="production",
    commit_message="Deploy v1.0.0",
)

print(f"Deployed to {result.url} (status: {result.status})")

ApiKey credentials are also supported:

credentials = schlepper.ApiKey(key="your-global-api-key", email="you@example.com")

Development

Linting/formatting/type checking:

uv run ruff check
uv run ruff format --check
uv run ty check

Unit testing:

uv run pytest
# with coverage
uv run coverage run -m pytest

Integration tests (requires Cloudflare credentials):

# see it.env.example
export $(cat it.env | xargs)
uv run pytest -m integration

Build docs:

uv run sphinx-build -b html docs docs/_build/html

Licence

schlepper is licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in schlepper by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.

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

schlepper-0.1.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

schlepper-0.1.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file schlepper-0.1.1.tar.gz.

File metadata

  • Download URL: schlepper-0.1.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for schlepper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3d5d4b0ad594ac1c67a4d9e1f53ba743db20a7529b5258e045330d07d771e6c8
MD5 cd7306469ad81da65b6077741ff07c72
BLAKE2b-256 71a48741ff8db5a5d0679237dd2f308a368804920b12f79927fefe7f4def8fca

See more details on using hashes here.

Provenance

The following attestation bundles were made for schlepper-0.1.1.tar.gz:

Publisher: publish.yml on astral-sh/schlepper

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

File details

Details for the file schlepper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: schlepper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for schlepper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c636bf17bb35e9e23d12045c05c4702c89b92105a2904c8d9b52cceecb44ce07
MD5 63d3f395d5da570b01e0b5102e5b064e
BLAKE2b-256 67070f04c1d0817f458878ceed1a887d34ee7fc1da4d095dff377ad1b7fa6191

See more details on using hashes here.

Provenance

The following attestation bundles were made for schlepper-0.1.1-py3-none-any.whl:

Publisher: publish.yml on astral-sh/schlepper

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