Create models with less code.
- Free software: MIT license
- Documentation: https://atmodel.readthedocs.io.
Install @model from pip:
pip install atmodel
Using @model is as simple as:
from atmodel import model @model('a', optional=['b']) class Model: pass
Then use the class as:
m = Model(a=1) if m.a() > 0: n = Model(a=1, b=2)
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.