Skip to main content

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

Metadata

Release files for atmodel 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atmodel 0.1.0
File Size Uploaded
atmodel-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atmodel 0.1.0
File Interpreter ABI Platform
atmodel-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.9 kB

Release files / atmodel-0.1.0.tar.gz

Download URL atmodel-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6d9dded5b691c56f86ae9711e0c78e33a3f99f77ef644fc70704ac95b4b3d8e7
BLAKE2b-256 checksum
How to use checksums
a64a11e22d1992872497d75d73215b267229efa22cb009c9274f155bd282fe09
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / atmodel-0.1.0-py2.py3-none-any.whl

Download URL atmodel-0.1.0-py2.py3-none-any.whl
Size 3.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b961be67fcabd767bbf8bcbee16ce6345a9971dfca172193b66702d85cff2fb3
BLAKE2b-256 checksum
How to use checksums
e67faff8dfa405489829fb863a793767de37ef3cd91a12adf2c4f553ee33f511
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page