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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atmodel-0.1.0.tar.gz.
File metadata
- Download URL: atmodel-0.1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d9dded5b691c56f86ae9711e0c78e33a3f99f77ef644fc70704ac95b4b3d8e7
|
|
| MD5 |
26e80d8560c22ac9de95ccb56ed31664
|
|
| BLAKE2b-256 |
a64a11e22d1992872497d75d73215b267229efa22cb009c9274f155bd282fe09
|
File details
Details for the file atmodel-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: atmodel-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b961be67fcabd767bbf8bcbee16ce6345a9971dfca172193b66702d85cff2fb3
|
|
| MD5 |
ddbc5c4fef94dd7e9c4e071c3934a040
|
|
| BLAKE2b-256 |
e67faff8dfa405489829fb863a793767de37ef3cd91a12adf2c4f553ee33f511
|