Create models with less code.
Project description
@model
Create models with less code.
Free software: MIT license
Documentation: https://atmodel.readthedocs.io.
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.
History
0.1.0 (2019-10-01)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atmodel-0.1.0.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for atmodel-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b961be67fcabd767bbf8bcbee16ce6345a9971dfca172193b66702d85cff2fb3 |
|
MD5 | ddbc5c4fef94dd7e9c4e071c3934a040 |
|
BLAKE2b-256 | e67faff8dfa405489829fb863a793767de37ef3cd91a12adf2c4f553ee33f511 |