Skip to main content

thechosen

A lightweight, zero-dependency Python utility for bundling static resource files inside a package and inspecting or extracting them via Python or a CLI.

Installation

pip install thechosen

Python API

import thechosen

# List bundled files
print(thechosen.list_files())

# Read raw bytes or text
raw = thechosen.read_bytes("sample.pdf")

# Get a filesystem Path inside a context manager
with thechosen.as_path("sample.pdf") as path:
    print("Resource path:", path)

# Extract one or all bundled files
thechosen.extract_file("sample.pdf", "./out/sample.pdf", overwrite=True)
thechosen.extract_all("./extracted_resources", overwrite=True)

CLI

thechosen info
thechosen list
thechosen list --pattern "*.pdf" --json
thechosen extract ./output_dir --overwrite
thechosen extract ./output_dir --file sample.pdf --overwrite

Local Packaging & Publishing

# Stage files or folders into src/thechosen/assets/
uv run python scripts/pipeline.py add /path/to/file_or_dir
uv run python scripts/pipeline.py remove <relative_path>

# Inspect staged files, run tests, and build/verify locally
make list
make test
make build

# Publish to TestPyPI or PyPI (set UV_PUBLISH_TOKEN in .env)
make publish-test
make publish

Metadata

Release files for thechosen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thechosen 0.1.0
File Size Uploaded Provenance Actions
thechosen-0.1.0.tar.gz 62.7 MB Without provenance Details for thechosen-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thechosen 0.1.0
File Interpreter ABI Platform Actions
thechosen-0.1.0-py3-none-any.whl Python 3 none any Details for thechosen-0.1.0-py3-none-any.whl

Total release size: 125.4 MB

Release files / thechosen-0.1.0.tar.gz

Download URL thechosen-0.1.0.tar.gz
Size 62.7 MB
Tags Source
SHA-256 checksum
How to use checksums
1d0b797be65ed4bf25d908af3265dbbbe1cb0ca67a2c4cedc139abd4f6ef3e86
BLAKE2b-256 checksum
How to use checksums
eb77eb4d847d94e47010e26a4bdf7bc006954758847e17a7052f6dd1c3f1bd6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / thechosen-0.1.0-py3-none-any.whl

Download URL thechosen-0.1.0-py3-none-any.whl
Size 62.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0519abab37d2a5e0bdf83d15187868f194ed11878caf4227322b16460e683d3a
BLAKE2b-256 checksum
How to use checksums
39f1689508d6205b08450f67d4ca24de0082313f3a720663608947d55b98e552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for thechosen 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page