semvec/pypi-packages huggingface dataset:
inbloom 0.2.2
Portable, cross language Bloom Fitler implementation, with compatible libraries in Java and Go
License: BSD

inbloom (Python)
================

-  https://github.com/EverythingMe/inbloom/tree/master/py
-  https://pypi.python.org/pypi/inbloom/

Package inbloom implements a portable bloom filter that can export and
import data to and from implementations of the same library in different
languages.

This implementation is a C extension which wraps libbloom
(https://github.com/jvirkki/libbloom)

Installation
------------

.. code:: bash

    pip install inbloom

Usage
-----

.. code:: python

    import inbloom

    bf = inbloom.Filter(entries=100, error=0.01)
    bf.add("abc")
    bf.add("def")

    assert bf.contains("abc")
    assert bf.contains("def")
    assert not bf.contains("ghi")

    bf2 = inbloom.Filter(entries=100, error=0.01, data=bf.buffer())
    assert bf2.contains("abc")
    assert bf2.contains("def")
    assert not bf2.contains("ghi")

Serialization
'''''''''''''

.. code:: python

    import inbloom
    import binascii

    payload = '620d006400000014000000000020001000080000000000002000100008000400'
    assert binascii.hexlify(inbloom.dump(inbloom.load(binascii.unhexlify(payload)))) == payload
js.responsiveiframe 1.0
Fanstatic packaging of responsiveiframe
License: BSD

js.responsiveiframe
*******************

Introduction
============

This library packages `responsiveiframe`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`responsiveiframe`: http://npr.github.io/responsiveiframe/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.responsiveiframe``) are published to some URL.


How to use?
===========

You can import ``responsiveiframe`` from ``js.responsiveiframe`` and ``need`` it where you want
these resources to be included on a page::

  >>> from js.responsiveiframe import responsiveiframe
  >>> responsiveiframe.need()


CHANGES
*******

1.0 (2015-08-03)
================

- Initial release.
godaddycli 0.1.4
Command Line Interface to GoDaddy.com based on PyGoDaddy Library
License: BSD
Keywords: godaddycli

===============================
GoDaddy Command Line Interface
===============================

.. image:: https://img.shields.io/travis/wkoszek/godaddycli.svg
        :target: https://travis-ci.org/wkoszek/godaddycli

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


Command Line Interface to GoDaddy.com based on PyGoDaddy Library

* Free software: BSD license
* Documentation: https://github.com/wkoszek/godaddycli

Features
--------

* TODO




History
-------

0.1.4 (2015-08-03)

* made VERSION.rst be used for versioning.

0.1.3 (2015-08-03)

* added some docs.

0.1.2 (2015-08-02)

* correctly installed the godaddycli in bin/ directory

0.1.1 (2015-08-02)

* added correct dependency on pygodaddy

0.1.0 (2015-08-02)
---------------------

* First release on PyPI.
tornado-celery 0.3.5
Celery integration with Tornado
License: BSD

Celery integration with Tornado
===============================

.. image:: https://img.shields.io/pypi/v/tornado-celery.svg
    :target: https://pypi.python.org/pypi/tornado-celery

.. image:: https://img.shields.io/pypi/dm/tornado-celery.svg
        :target: https://pypi.python.org/pypi/tornado-celery

tornado-celery is a non-blocking Celery client for Tornado web framework

Usage
-----

Calling Celery tasks from Tornado RequestHandler: ::

    from tornado import gen, web
    import tcelery, tasks

    tcelery.setup_nonblocking_producer()

    class AsyncHandler(web.RequestHandler):
        @asynchronous
        def get(self):
            tasks.echo.apply_async(args=['Hello world!'], callback=self.on_result)

        def on_result(self, response):
            self.write(str(response.result))
            self.finish()

Calling tasks with generator-based interface: ::

    class GenAsyncHandler(web.RequestHandler):
        @asynchronous
        @gen.coroutine
        def get(self):
            response = yield gen.Task(tasks.sleep.apply_async, args=[3])
            self.write(str(response.result))
            self.finish()

**NOTE:** Currently callbacks only work with AMQP and Redis backends.
To use the Redis backend, you must install `tornado-redis
<https://github.com/leporo/tornado-redis>`_.

tornado-celery can be launched as a web server: ::

    $ cd tornado-celery
    $ python -m tcelery --port=8888 --app=examples.tasks --address=0.0.0.0

Execute a task asynchronously: ::

    $ curl -X POST -d '{"args":["hello"]}' http://localhost:8888/apply-async/examples.tasks.echo/
    {"task-id": "a24c9e38-4976-426a-83d6-6b10b4de7ab1", "state": "PENDING"}

Get the result: ::

    $ curl http://localhost:8888/tasks/result/a24c9e38-4976-426a-83d6-6b10b4de7ab1/
    {"task-id": "a24c9e38-4976-426a-83d6-6b10b4de7ab1", "state": "SUCCESS", "result": "hello"}

Execute a task and get the result: ::

    $ curl -X POST -d '{"args":[1,2]}' http://localhost:8888/apply/examples.tasks.add/
    {"task-id": "fe3cc5a5-d11b-4b17-a6e2-e7fd2fba7ec6", "state": "SUCCESS", "result": 3}

Execute a task with timeout: ::

    $ curl -X POST -d '{"args":[5],"timeout":1}' http://localhost:8888/apply/examples.tasks.sleep/
    {"task-id": "9ca78e26-bbb2-404c-b3bb-bc1c63cbdf41", "state": "REVOKED"}

Installation
------------

To install, simply: ::

    $ pip install tornado-celery

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

Documentation is available at `Read the Docs`_

.. _Read the Docs: http://tornado-celery.readthedocs.org


Running the Tests
-----------------

To run the tests for the AMQP backend: ::

    $ python examples/tasks.py worker
    $ cd examples && python -m tcelery -A tasks
    $ python tests/functests.py

To run the tests for the Redis backend, first make sure redis is running, then: ::

    $ CELERY_RESULT_BACKEND=redis:// python examples/tasks.py worker
    $ cd examples && CELERY_RESULT_BACKEND=redis:// python -m tcelery -A tasks
    $ python tests/functests.py