This release is a pre-release and may not be stable for production use.
PyTreaty
This is a hard fork of the PyContracts library, the original version of which can be found here.
Modifications we have made:
- All contract definitions are now applied at all times. Previously if you added type annotations to a function, the docstring contracts were ignored. Type annotations and docstring contracts have different (but overlapping) purposes, and therefore we require both. Also, previously if you used a contract decorator then both type annotations and docstring contracts were ignored. This is also fixed.
- Removed Python 2.x support. Maintaining support for legacy python versions bloats the codebase significantly, so we only support Python 3.5+.
Why did we fork?
We are big fans of the original project from Andrea Censi, and we are very happy to merge these changes upstream, however we received no response from the original project, and therefore we assume the project is orphaned.
There are also wider changes we want to make across the codebase, so we also crossed the threshold where it became viable to maintain our own codebase.
Thing to come
We plan to continue to improve and support PyTreaty, some notable future improvements that are planned are:
- Adding support for complex Python
typingand custom type hints. - New and improved documentation.
Release files for pytreaty 2019.1b5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytreaty-2019.1b5.tar.gz | 41.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytreaty-2019.1b5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.5 kB
Release files / pytreaty-2019.1b5.tar.gz
| Download URL | pytreaty-2019.1b5.tar.gz |
|---|---|
| Size | 41.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2073de47a8c0744da2de1555ea9ac22497974305bc145bca66d58b44c7c2a66f
|
|
BLAKE2b-256 checksum How to use checksums |
b5dd8c63878f07da37a487ae046570d7dcb423360eda2fa08a81d914e54e5146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5
|
Release files / pytreaty-2019.1b5-py3-none-any.whl
| Download URL | pytreaty-2019.1b5-py3-none-any.whl |
|---|---|
| Size | 58.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a7d19a911788bfe891c7b98c3e6418db892aaf1d22f88f8355886f9e2004590
|
|
BLAKE2b-256 checksum How to use checksums |
72059d16ec3ac90030b4654d060e5511ae2fe9277cce064ed7f8463df7d663d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5
|