typeguard_jupiter
Python 2.7 ve Python 3.x uyumlu, çalışma zamanında (runtime) tip kontrolü yapan basit bir dekoratör paketi.
Kurulum
Sanal ortamı (venv) aktif ettikten sonra pip ile kurabilirsiniz:
pip install .
Derlenmiş universal wheel (.whl, Python 2 ve Python 3 ortak) dosyasından kurmak için:
pip install dist/typeguard_jupiter-0.1.0-py2.py3-none-any.whl
PyPI'ya yüklendikten sonra:
pip install typeguard_jupiter
Kullanım
Python 2 ve Python 3 Ortak Kullanım
from __future__ import print_function
from typeguard_jupiter import TypeGuard, WrongTypeAnnotationError
@TypeGuard(label="Custom Type Guard", x=int, y=int)
def add(x, y):
return x + y
try:
print(add(x=6, y="Canbula"))
except WrongTypeAnnotationError as e:
print("Hata: {0}".format(e))
Python 3 Type Annotation ile Kullanım
from typeguard_jupiter import TypeGuard
@TypeGuard(label="Custom Type Guard")
def add(*, x: int, y: int) -> int:
return x + y
Demo betiğini çalıştırmak için:
python -m typeguard_jupiter
# veya
typeguard-jupiter-demo
Metadata
Release files for typeguard-jupiter 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 | Provenance | Actions |
|---|---|---|---|---|
| typeguard_jupiter-0.1.0.tar.gz | 4.4 kB | Without provenance | Details for typeguard_jupiter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typeguard_jupiter-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for typeguard_jupiter-0.1.0-py2.py3-none-any.whl |
Total release size: 8.9 kB
Release files / typeguard_jupiter-0.1.0.tar.gz
| Download URL | typeguard_jupiter-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8b8f4ba72dec2796cdc75d6a63146a3dcf6a79f1ea79fc319d5b6a2fa245d0d
|
|
BLAKE2b-256 checksum How to use checksums |
a3a8c22ad8e1957e2db4946722ab21a08398db2671591afd3b8efd0bb5d5c626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / typeguard_jupiter-0.1.0-py2.py3-none-any.whl
| Download URL | typeguard_jupiter-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8b4a128d8eeebbbb4fb282649e57ac02bc2cc105347bd252d4f93e73edbb53a7
|
|
BLAKE2b-256 checksum How to use checksums |
2ee13f3f9a1d58e021a6cc14ba9445f49f4ade21a65b7967c291e4dcd6474888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for typeguard-jupiter 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.