A pure-Python version of `wrangler pages deploy`
Project description
schlepper
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
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d5d4b0ad594ac1c67a4d9e1f53ba743db20a7529b5258e045330d07d771e6c8
|
|
| MD5 |
cd7306469ad81da65b6077741ff07c72
|
|
| BLAKE2b-256 |
71a48741ff8db5a5d0679237dd2f308a368804920b12f79927fefe7f4def8fca
|
Provenance
The following attestation bundles were made for schlepper-0.1.1.tar.gz:
Publisher:
publish.yml on astral-sh/schlepper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
schlepper-0.1.1.tar.gz -
Subject digest:
3d5d4b0ad594ac1c67a4d9e1f53ba743db20a7529b5258e045330d07d771e6c8 - Sigstore transparency entry: 1309339609
- Sigstore integration time:
-
Permalink:
astral-sh/schlepper@433892cb51fe9dfd78285c777e1f7e21834155a9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/astral-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@433892cb51fe9dfd78285c777e1f7e21834155a9 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c636bf17bb35e9e23d12045c05c4702c89b92105a2904c8d9b52cceecb44ce07
|
|
| MD5 |
63d3f395d5da570b01e0b5102e5b064e
|
|
| BLAKE2b-256 |
67070f04c1d0817f458878ceed1a887d34ee7fc1da4d095dff377ad1b7fa6191
|
Provenance
The following attestation bundles were made for schlepper-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on astral-sh/schlepper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
schlepper-0.1.1-py3-none-any.whl -
Subject digest:
c636bf17bb35e9e23d12045c05c4702c89b92105a2904c8d9b52cceecb44ce07 - Sigstore transparency entry: 1309339559
- Sigstore integration time:
-
Permalink:
astral-sh/schlepper@433892cb51fe9dfd78285c777e1f7e21834155a9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/astral-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@433892cb51fe9dfd78285c777e1f7e21834155a9 -
Trigger Event:
release
-
Statement type: