No project description provided
Project description
typeX
:+1: If you are using the code please add a star to the repository :+1:
This work is made available by a community of people, amoung which the CEA Neurospin BAOBAB laboratory.
Important links
Content
TypeX supplies a simple decorator to enforce Python types on function parameters when annotations are available.
Where to start
Please find below a simple usage example:
from typex import typecheck
@typecheck
def halve_integer(a: int) -> float:
return a / 2
halve_integer(5) # 2.5
halve_integer(5.0) # TraitsError
Install
The PyPi package is available online.
Contributing
If you want to contribute to typex, be sure to review the contribution guidelines.
License
This project is under the following LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_typex-0.0.1-py3-none-any.whl.
File metadata
- Download URL: python_typex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
208cbd17b1ce1226efae4f0712205d8f660236ba7d8cc7b19913f0f308e4f0b9
|
|
| MD5 |
efe2140d53623beddd007761eb779b95
|
|
| BLAKE2b-256 |
f7f42b0bc7f120676a4e6fd4aea4e118e73cdb5924679eab47bcf951b4fa8514
|