semvec/pypi-packages huggingface dataset:
openean 0.1.2
Unofficial API wrapper for Open EAN/GTIN Database
License: MIT

# OpenEAN
Library to use the api of the Open EAN/GTIN Database

serves as API wrapper for the api of [this EAN/GTIN database service](https://opengtindb.org/)

## Getting started
Install the library from pypi via `pip install openean`

Then you need an user_id for the service; [more info how you get that](https://opengtindb.org/userid.php)

There is also an id for small tests: "400000000" as described here https://opengtindb.org/faq.php#g

```python
from openean.OpenEAN import OpenEAN


userID = 400000000  #user your own id here

openean = OpenEAN(userID)

barcode_num = 1111 #barcode number of you product

items = openean.parse(barcode_num)
#items is a list of possible products associated with the code
# the properties of each item are described here https://opengtindb.org/api.php

#only to show you structure of working results
#not needed for use
from pprint import pprint
for item in items:
    pprint(vars(item))
```

## Thanks to
The creators of the API for making this possible and please consider donating to ["Kueste gegen Plastik"](https://www.kueste-gegen-plastik.de/unterstuetzen/) if you like this service to help the creators of the database running it.
mafs 0.2.1
Quickly conjure up virtual fileysystems
License: MIT

# MagicFS (mafs)

MagicFS is an easy-to-use library that allows anyone to easily create virtual
filesystems using FUSE.

MagicFS allows you to redirect file requests, so instead of the request going to
an underlying storage medium like a hard drive, the request goes to a program
that you've written.

If you like the idea of playing around with virtual filesystems, but have been
put off by the complexity of it all, then this library could be for you. You can
easily create whole, feature-complete filesystems in just a few lines of code.
No need for painstakingly dealing with folder structures and buffers, mafs
manages all the low-level details, provides sane defaults, and lets you focus on
the functionality.

## Installation

MagicFS is available on [pypi](https://pypi.org/project/mafs/), and can be
easily installed with pip.

	$ pip3 install mafs

## Examples

All of the examples are listed in `examples/`. Here's a demo of running the
`places.py` example.

	$ mkdir fs
	$ python3 examples/places.py fs
	$ ls fs
	place  shortcut
	$ ls fs/place
	here  there
	$ cat fs/place/here
	this is here
	$ cat fs/place/there
	this is there
	$ cat fs/place/anywhere
	this is anywhere!
	$ fusermount -u fs

## Development

To download MagicFS for development, execute the following commands:

	$ git clone https://github.com/jedevc/mafs.git
	$ cd mafs
	$ pip3 install -r requirements.txt

To launch mafs with an example, execute the following:

	$ PYTHONPATH=. python3 examples/places.py fs -fg

Note the use of the `PYTHONPATH` environment variable to include the
library, and the use of the `-fg` flag to run mafs in the foreground for
easier debugging.

### Tests

To run the tests for MagicFS, install nose, and then use it to run the tests.

	$ pip install nose
	$ nosetests

If you make any changes, please run the tests before you commit to ensure that
you haven't broken anything.
gevent-eventemitter 2.1
Implements EventEmitter using gevent
License: MIT
Keywords: gevent event emitter ee greenlet

EventEmitter with gevent
~~~~~~~~~~~~~~~~~~~~~~~~

|pypi| |coverage| |master_build|

This module implements EventEmitter with gevent.

Installation
============

To install the latest release from ``pypi``::

    pip install gevent-eventemitter

Usage
=====

``EventEmitter`` can be used as mixin, or on it's own. Here is an example as mixin:

.. code:: python

    from eventemitter import EventEmitter

    class MyClass(EventEmitter):
        pass

    instance = MyClass()


Registering a callback

.. code:: python

    def do_stuff():
        print "Hello world!"

    instance.on('my event', do_stuff)

    instance.emit('my event')

Or as decorator

.. code:: python

    @instance.on('my event')
    def do_stuff():
        print "Hello world!"

With ``once`` the callback will be called, you guessed it, only once.

.. code:: python

    @instance.once('my event')
    def do_stuff(var):
        print "Hello %s!" % var

    instance.emit('my event', 'Earth')  # arguments can be passed along events
    instance.emit('my event')  # do_stuff won't be called

It's possible to block wait for an event.
 If there are event arguments they will be returned as a ``tuple``

.. code:: python

    my_args = instance.wait_event('my event')
    my_args = instance.wait_event('my event', timeout=5)  # wait at most 5seconds

On timeout ``wait_event`` will return ``None``, or raise ``gevent.Timeout`` if ``raises=True``

.. code:: python

    my_args = instance.wait_event('my event', timeout=5)
    if my_args is None:
        print "Timeout!"

    try:
        my_args = instance.wait_event('my event', timeout=5, raises=True)
    except gevent.Timeout:
        print "Timeout!"

To remove a callback, or all callbacks.

.. code:: python

    instance.remove_listener('my event', do_stuff)
    instance.remove_all_listeners()                 # absolutely all listeners
    instance.remove_all_listeners('my event')       # all listners for the event

Listening for ``None`` event will result in catching all events.


.. |pypi| image:: https://img.shields.io/pypi/v/gevent-eventemitter.svg?style=flat&label=latest%20version
    :target: https://pypi.python.org/pypi/gevent-eventemitter
    :alt: Latest version released on PyPi

.. |coverage| image:: https://img.shields.io/coveralls/rossengeorgiev/gevent-eventemitter/master.svg?style=flat
    :target: https://coveralls.io/r/rossengeorgiev/gevent-eventemitter?branch=master
    :alt: Test coverage

.. |master_build| image:: https://img.shields.io/travis/rossengeorgiev/gevent-eventemitter/master.svg?style=flat&label=master%20build
    :target: http://travis-ci.org/rossengeorgiev/gevent-eventemitter
    :alt: Build status of master branch