Skip to content

eghuro/atmodel

Repository files navigation

@model

image

image

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.