This package provides the runtime type-checking semantics of Gradual Typing for Python. Get a short introduction to gradual typing here.
Installing
This package only works on Python 3. To install gradual on your system, you must first get the Python 3 version of pip-3.2:
sudo apt-get install python3-pip
Now, you can easily install the gradual package via:
pip install gradual
If you wish to install it to your base system, then the above command would require root. If you already have gradual and wish to upgrade the existing package then you can use the --upgrade flag:
pip install --upgrade gradual
Usage
Once you have installed the package, fire up the Python 3 interpreter and just do:
from gradual import *
@typed
def calculate_total(a:int, b:int) -> int:
return a + b//100
Metadata
Release files for gradual 0.1.1
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 |
|---|---|---|---|---|
| gradual-0.1.1.tar.gz | 5.6 kB | Without provenance | Details for gradual-0.1.1.tar.gz |
Release files / gradual-0.1.1.tar.gz
| Download URL | gradual-0.1.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce5073410f614eb76bd19f5f38643d6cf3750e200fee306102511fafc7b045d1
|
|
BLAKE2b-256 checksum How to use checksums |
7d05841f1c79382ec8ff8b01132695b4c9c2727c9c12301ddb856c72c0dd44ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for gradual 0.1.1
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.