@model

https://img.shields.io/pypi/v/atmodel.svg https://img.shields.io/travis/eghuro/atmodel.svg Documentation Status

Create models with less code.

Getting started

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)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.