orinoco
classes
Our great sponsors
orinoco | classes | |
---|---|---|
1 | 4 | |
11 | 641 | |
- | 0.6% | |
3.6 | 2.0 | |
about 1 year ago | 10 months ago | |
Python | Python | |
- | BSD 2-clause "Simplified" License |
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.
orinoco
classes
-
Typeclasses in Python
Today I am going to introduce a new concept for Python developers: typeclasses. It is a concept behind our new dry-python library called classes.
- dry-python/classes: Smart, pythonic, ad-hoc, typed polymorphism for Python. Also known as singledispatch on steroids
- Smart, pythonic, ad-hoc, typed polymorphism for Python
What are some alternatives?
returns - Make your functions return something meaningful, typed, and safe!
Deal - 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
raffiot.py - Robust And Fast Functional IO Toolkit
fn.py - Functional programming in Python: implementation of missing features to enjoy FP
Toolz - A functional standard library for Python.
effect - effect isolation in Python, to facilitate more purely functional code
Coconut - Simple, elegant, Pythonic functional programming.
funcy - A fancy and practical functional tools
Pyrsistent - Persistent/Immutable/Functional data structures for Python
CyToolz - Cython implementation of Toolz: High performance functional utilities
contracts - PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API.