Skip to main content

No project description provided

Project description

PythonVersion Coveralls Testing Linter PyPi

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_typex-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for python_typex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 208cbd17b1ce1226efae4f0712205d8f660236ba7d8cc7b19913f0f308e4f0b9
MD5 efe2140d53623beddd007761eb779b95
BLAKE2b-256 f7f42b0bc7f120676a4e6fd4aea4e118e73cdb5924679eab47bcf951b4fa8514

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page