contracts
contracts
contracts | contracts | |
---|---|---|
- | 1 | |
343 | 397 | |
- | - | |
10.0 | 0.0 | |
over 4 years ago | 3 days ago | |
Python | Python | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
contracts
We haven't tracked posts mentioning contracts yet.
Tracking mentions began in Dec 2020.
contracts
-
Show HN: A design-by-contract Python package in ~100 lines
Seems you refer to a domain specific language in the annotations. This is exactly what https://github.com/AndreaCensi/contracts does (it's an amazing project but has a very large code base). However, I wanted to achieve something similar in pure python and as compact as possible – so there are compromises (like no real symbolic calculus)
What are some alternatives?
Deal - 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
icontract - Design-by-contract in Python3 with informative violation messages and inheritance
funcy - A fancy and practical functional tools
classes - Smart, pythonic, ad-hoc, typed polymorphism for Python
fn.py - Functional programming in Python: implementation of missing features to enjoy FP
CyToolz - Cython implementation of Toolz: High performance functional utilities
returns - Make your functions return something meaningful, typed, and safe!
Pyrsistent - Persistent/Immutable/Functional data structures for Python
Coconut - Simple, elegant, Pythonic functional programming.