Python extension adding automatic type and range checking support
Project description
Pyadaaah expands Python by an automatic type checking resp. range checking mechanism. The line
vardef int exampleVar = 0 in [0..5] with rw, check(strict)
,for example, would create a 'variable' exampleVar of type integer and range 0..5. This means, that assignments alike:
exampleVar = 1.234
resp.
exampleVar = 6
would, after that, lead to a type mismatch resp. range mismatch exception. The former mechanism obviously resembles static types - as can be found in programming languages alike C and C++. Whereas the latter mechanism obviously resembles automatic range checking - as can be found in programming languages alike Ada.
But pyadaaah goes far beyond that. Beneath type and range checking, pyadaaah e.g. also provides cython types, signals (!), semi-automatic documentation means and a python2 to python3 compatibility layer.
Pyadaaah is a pure python library (just a single '.py'-file) compatible with Python2 as well as Python3. It's license allows you to use it free of charge (please read the license text for details - it is quite short!)
Further infomations and links can be found on my homepage (see the link on the left hand).
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
Hashes for pyadaaah-0.80-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6e1a266f1e222a67b61a311afddf9cac37ed4cc0dbe5f4ffedcc94479e46f82 |
|
MD5 | 4dafce8f95a86c00525642c64f3500bf |
|
BLAKE2b-256 | e79eb4f9837dd1baf0e1122d4037291e4a69ca56f983a9ad0b47e4fddaa61f21 |