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.0.tar.gz (13.1 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.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: schlepper-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.0.tar.gz
Algorithm Hash digest
SHA256 891a5846bed5d2f007e6da5b829a6547d7c4d11a9ea98cabb507dc788d7b8288
MD5 2b1432278da738421c0a74f80d42b713
BLAKE2b-256 962526dd40dd98348979e4a57159dffa924233670507bb7ff8bf7144dfa44426

See more details on using hashes here.

Provenance

The following attestation bundles were made for schlepper-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: schlepper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee98c0dda5e0fcf65d989b5d3288ded96531b610f5568aa94a7b9ed834b168c
MD5 98c11962557e7b2aba2381aaff5b10b1
BLAKE2b-256 f8ca4d111d0c7cd08bb9884f96a71a2752fbf0846c01a2f5b60a171399211620

See more details on using hashes here.

Provenance

The following attestation bundles were made for schlepper-0.1.0-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