Skip to main content
Archived

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

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)

Source distribution for stubber 0.1.0
File Size Uploaded
stubber-0.1.0.tar.gz 21.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stubber 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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