8000 GitHub - dry-python/classes at 04fd58edc9764e3389792ef05e7c71cf7759543c
[go: up one dir, main page]

Skip to content

dry-python/classes

Repository files navigation

classes

classes logo


Build Status Coverage Status Documentation Status Python Version wemake-python-styleguide Checked with mypy


Smart, pythonic, ad-hoc, typed polymorphism for Python.

Features

  • Provides a bunch of primitives to write declarative business logic
  • Enforces better architecture
  • Fully typed with annotations and checked with mypy, PEP561 compatible
  • Allows to write a lot of simple code without inheritance or interfaces
  • Pythonic and pleasant to write and to read (!)
  • Easy to start: has lots of docs, tests, and tutorials

Installation

pip install classes

You might also want to configure mypy correctly and install our plugin to fix this existing issue:

# In setup.cfg or mypy.ini:
[mypy]
plugins =
  classes.contrib.mypy.typeclass_plugin

We also recommend to use the same mypy settings we use.

Make sure you know how to get started, check out our docs!

0