Skip to main content

Create models with less code.

Project description

@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.

History

0.1.0 (2019-10-01)

  • First release on PyPI.

Project details


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 details)

Uploaded Source

Built Distribution

atmodel-0.1.0-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

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

Hashes for atmodel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d9dded5b691c56f86ae9711e0c78e33a3f99f77ef644fc70704ac95b4b3d8e7
MD5 26e80d8560c22ac9de95ccb56ed31664
BLAKE2b-256 a64a11e22d1992872497d75d73215b267229efa22cb009c9274f155bd282fe09

See more details on using hashes here.

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

Hashes for atmodel-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b961be67fcabd767bbf8bcbee16ce6345a9971dfca172193b66702d85cff2fb3
MD5 ddbc5c4fef94dd7e9c4e071c3934a040
BLAKE2b-256 e67faff8dfa405489829fb863a793767de37ef3cd91a12adf2c4f553ee33f511

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page