semvec/pypi-packages huggingface dataset:
annotype 0.1.2
Marshmallow and Python 3 annotations
License: MIT
Keywords: annotation marshmallow type

Annotype: Python 3 annotations and marshmallow
==============================================

**Annotype** combines Python 3 annotations and Marshmallow for powerful
validation of function arguments.

.. code:: python

    from annotype import annotyped
    from marshmallow import (
        Schema,
        fields
    )


    class PersonSchema(Schema):
        firstname = fields.Str(required=True)
        lastname = fields.Str(required=True)

    @annotyped()
    def salute(person: PersonSchema):
        print 'Hello {} {}'.format(person['firstname'], person['lastname'])

    person = dict(firstname='John')

    # This will raise a ValidationError because lastname is not defined
    salute(person)

    @annotyped()
    def welcome(firstname: fields.Str(), lastname: fields.Str()):
        print 'Welcome {} {}'.format(firstname, lastname)

    # This will also raise a ValidationError because lastname is not a string
    welcome('Jane', 1)

In short, annotype allows you to validate data using the powerful
marshmallow library and the Python 3 annotations.

Get It Now
----------

::

    $ pip install -U annotype

Documentation
-------------

See marshmallow documentation available here
http://marshmallow.readthedocs.io/ .

Requirements
------------

-  Python >= 3.4
-  marshmallow >= 3.0.0

License
-------

MIT licensed. See the bundled
`LICENSE <https://github.com/cbourget/annotype/blob/pypi/LICENSE>`__
file for more details.
pycleanup 0.0.1
Clean up your working directory.
License: MIT
Keywords: Clean up

# pyclean
Clean up your working directory.

# Why?
Everyone uses commands like
```{r, engine='bash', count_lines}
find . -name \*.pyc -delete
```
or
```{r, engine='bash', count_lines}
find . -name "*.pyc" -exec rm -f {} \;
```
but I often switch me OS from Linux to Windows. Fist I would wrote different
scrips, but a python package is much nicer.

# Install
Uses pip to install.
```{r, engine='bash', count_lines}
pip install pyclear
```

# Uses
As command-line tool.
```{r, engine='bash', count_lines}
pyclear --help
```
or
```{r, engine='bash', count_lines}
python -m pyclear --help
```

As python function
```{r, engine='python', count_lines}
from pyclean.func import cleanup
dir = '.'
args = {'cache': True, 'egg': True}

cleanup(dir, args)
```