Skip to main content

annots is the package that allow to use Python 3.6 variable annotations in handy way.

Project description

Annots

https://img.shields.io/pypi/v/annots.svg https://img.shields.io/travis/infernion/annots.svg Documentation Status Updates

annots is the package that allow to use Python 3.6 variable annotations in handy way. Thanks for inspiration to attrs library.

When you wrap a class with annots decorator

import annot

@annot.s
class Account:
    __tablename__ = 'account'

    username: str
    password: str

Annots add class attribute annotations into __init__

class Account:
    def __init__(self, username, password):
        self.username = str
        self.password = str

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.2 (2017-01-09)

  • Fix value initialization error

  • Add type annotation for args into __init__ function

  • Update test

0.1.1 (2017-01-08)

  • Add few tests

0.1.0 (2017-01-08)

  • First release on PyPI.

  • Working version with basic annotation support

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

annots-0.1.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

annots-0.1.2-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file annots-0.1.2.tar.gz.

File metadata

  • Download URL: annots-0.1.2.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for annots-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8ecdf1cdb19d5b091ab740deee63809ca1045553b51c4dbb42b7d9edfd5529e5
MD5 d9e70089f20311346a0940ffba1510da
BLAKE2b-256 0229e789c09cc3e8132ef2223fcc64c8ce5fff2fcb16670f04268cc62452e88f

See more details on using hashes here.

File details

Details for the file annots-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for annots-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a07f23dea5be4df7f6f72124447d6fda1d57d7c9ce415e3ef18efe171b1f21c0
MD5 8251ba92eac7786e366b2bd97fcfe371
BLAKE2b-256 9c39d2793bc566e7bf349961639d869935a31e7da99ac4b64a229727a2572469

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