fetchurl Python SDK
Protocol-level client for fetchurl content-addressable cache servers.
Zero runtime dependencies — uses only the Python standard library. Works with any HTTP library via Fetcher / AsyncFetcher protocols.
Install
pip install fetchurl-sdk
# or
uv add fetchurl-sdk
Protocol
Normative behavior: fetchurl/spec (SPEC.md).
Reference server: fetchurl/fetchurl.
Usage
from fetchurl import fetch, UrllibFetcher, parse_fetchurl_server
import os
servers = parse_fetchurl_server(os.environ.get("FETCHURL_SERVER", ""))
# Or drive FetchSession yourself with your HTTP client — see package docstring.
Clients must treat the server as untrusted and verify the hash (this SDK does that for you).
Environment
| Variable | Meaning |
|---|---|
FETCHURL_SERVER |
Server base URL(s) per the spec. Empty/absent disables server use. |
Development
uv sync --dev
uv run python -m unittest test_fetchurl.py
# Integration (Docker + image):
# FETCHURL_TEST_IMAGE=fetchurl:local uv run --extra test python -m unittest test_fetchurl_integration.py
Related
| Repo | Role |
|---|---|
| fetchurl/spec | Protocol |
| fetchurl/fetchurl | Go server |
| fetchurl/sdk-js | JavaScript SDK |
| fetchurl/sdk-rust | Rust SDK |
Metadata
Release files for fetchurl-sdk 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fetchurl_sdk-0.2.2.tar.gz | 50.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fetchurl_sdk-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.6 kB
Release files / fetchurl_sdk-0.2.2.tar.gz
| Download URL | fetchurl_sdk-0.2.2.tar.gz |
|---|---|
| Size | 50.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7eca4912aa84802e2d0368efb5dfd81fee161d236e3b766af79e53e6a42c0f7
|
|
BLAKE2b-256 checksum How to use checksums |
e006d00ea9b5d378363f6c1d337d70b3a14b462113a0c34c395ef00a858c8f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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}
|
Release files / fetchurl_sdk-0.2.2-py3-none-any.whl
| Download URL | fetchurl_sdk-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc6507cb46cd322de3fbf206cf5503f4fcee1928375fee5b978b0f76a7da4610
|
|
BLAKE2b-256 checksum How to use checksums |
fcd50061f9b3bb87aeddceaeb6db890d2be5159ee2cc4fbff8bdc5cfcd29e24c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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}
|
Security for fetchurl-sdk 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.