ipython-beartype
IPython extension type-checking IPython environments with beartype.
Installation
pip install ipython_beartype
Usage
Within an IPython / Jupyter notebook session, do the following:
%load_ext ipython_beartype
%beartype
All the type annotations in the following cells will be type checked.
Local Development / Testing
- Create and activate a virtual environment
- Run
pip install -e .[dev]to do an editable install - Run
pytestto run tests
Type Checking
Run mypy .
Credits
Thanks to knyazer and
patrick-kidger for building the jaxtyping
IPython extension, which was used as the base for this extension.
Also special thanks to leycec for creating beartype and the IPython team.
Metadata
Release files for ipython-beartype 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| ipython_beartype-0.2.0.tar.gz | 18.4 kB | With provenance | Details for ipython_beartype-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipython_beartype-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ipython_beartype-0.2.0-py3-none-any.whl |
Total release size: 22.9 kB
Release files / ipython_beartype-0.2.0.tar.gz
| Download URL | ipython_beartype-0.2.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83deb80fb90ee92138e3ebd3368d1b368fd4974c45cbd49c617a50b9172ef7e8
|
|
BLAKE2b-256 checksum How to use checksums |
01ced214c97bdee971021b528b0d87758fe2540a764f0b85c0aa0749e5cf23a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 15, 2025.
Transparency logRelease files / ipython_beartype-0.2.0-py3-none-any.whl
| Download URL | ipython_beartype-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f79b5264a8ccbaeba487639fb37d6818c9576a0d270f79b7f5a8e6ef352340c
|
|
BLAKE2b-256 checksum How to use checksums |
df52a63ad6df0d74ca74019b4f4498a5a00483cdaf2e5f17efea261d1f05e3b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 15, 2025.
Transparency logSecurity for ipython-beartype 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ipython_beartype-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 15, 2025.
Transparency logA 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.