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


Release history Release notifications

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for atmodel, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size atmodel-0.1.0-py2.py3-none-any.whl (3.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size atmodel-0.1.0.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page