Metadata-Version: 2.5
Name: thechosen
Version: 0.1.0
Summary: Lightweight Python utility for bundling and accessing static package resources
Author: thechosen maintainers
License-Expression: MIT
Keywords: files,packaging,resources,utilities
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# 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

```bash
pip install thechosen
```

## Python API

```python
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

```bash
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

```bash
# 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
```
