This project has been archived by its maintainers, and is no longer receiving any updates.
stubber
Role in Velarium: IR → .pyi — render Velarium (ModelSpec) IR as minimal stub text, and expose the stubber CLI for quick IR export and stub generation from live classes.
| PyPI | stubber |
| Depends on | velarium (required) |
| CLI | stubber ir, stubber stub (also python -m stubber) |
The IR types and builders live in velarium. stubber re-exports most public IR symbols from stubber for backward compatibility; prefer from velarium import … in new code when you only need IR.
Install
pip install stubber
From the monorepo root:
uv sync --group dev
# or
pip install -e packages/velarium -e "packages/stubber[dev]"
CLI
stubber ir myapp.models:User
stubber ir myapp.models:User -o user.ir.json
stubber stub myapp.models:User -o user.pyi
Library
from velarium import modelspec_from_dataclass, dumps_model_spec
from stubber import generate_pyi
spec = modelspec_from_dataclass(MyModel)
print(generate_pyi(spec))
Version
__version__ is in stubber/__init__.py (Hatch dynamic metadata in this package’s pyproject.toml).
See also
- docs/modelspec-ir.md — IR schema
- docs/valarium.md — ecosystem and backends
- Documentation index
Metadata
Release files for stubber 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stubber-0.1.0.tar.gz | 21.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stubber-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / stubber-0.1.0.tar.gz
| Download URL | stubber-0.1.0.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e66f4666ba31f244f6adb14822085f36659648f980e5774404fc96c15d82e3b
|
|
BLAKE2b-256 checksum How to use checksums |
0bf772e23afc630cb95557a03ac09b7722522c16a05c68048a321e10ac2fccfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / stubber-0.1.0-py3-none-any.whl
| Download URL | stubber-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
626cbce498cf7182221d367d599529863b2acb44d0310bb2bbcb23617b2800d0
|
|
BLAKE2b-256 checksum How to use checksums |
b982c722dfff6d119747a7f0f159eb863ac39ab6b759ee5d5c4330774b20015a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|