semvec/pypi-packages huggingface dataset:
annots 0.1.2
annots is the package that allow to use Python 3.6 variable annotations in handy way.
License: MIT license
Keywords: annots annotations typing

===============================
Annots
===============================


.. image:: https://img.shields.io/pypi/v/annots.svg
        :target: https://pypi.python.org/pypi/annots

.. image:: https://img.shields.io/travis/infernion/annots.svg
        :target: https://travis-ci.org/infernion/annots

.. image:: https://readthedocs.org/projects/annots/badge/?version=latest
        :target: https://annots.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://pyup.io/repos/github/infernion/annots/shield.svg
     :target: https://pyup.io/repos/github/infernion/annots/
     :alt: 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


* Free software: MIT license
* Documentation: https://annots.readthedocs.io.


Features
--------

* TODO

Credits
---------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _attrs: https://github.com/hynek/attrs
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage



=======
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
ezlog 0.8
Helpful wrappers for logging
License: MIT license
Keywords: logging,wrapper,performance

# (E)a(z)y (log)ging

Wrappers to make eazy logging of functions and members calls.
Allow to track parameters, exceptions and performance of functions.

# Installation

Simple as `pip3 install ezlog`

# Some examples on how to use it

To log function call
```python
from ezlog.wrappers import log_call

@log_call()
def test(a, b):
    print("test_fiunction_called")
    return 4

test(2, "test")
```

To log class member call
```python
from ezlog.wrappers import log_member_call

 class A:
	@log_member_call()
    def test(self, a, b, **kwargs):
		print("test_called")

a=A()
a.test(2, 4, test={"d":"t", "c":"o"})
```

# Customization

Default behavior can be overriden using followin module wide parameters:

- default_log_level 
  Override for default logging level.

- default_performance_measure 
  Override default behavior for measuring performance or not.

- default_logging 
  Override default logger.

- default_eps
  Limit for prevent spamming extremely low measurements.

- default_one_line_log
  Override default logging style.
  If True - log only one line (Called (args), result)
  If False(default) - log in 2 lines (Calling... Done).

- default_log_arguments
  Override default settings to log arguments or not.

- default_log_result
  Override default settings to log function result or not.