semvec/pypi-packages huggingface dataset:
coid 0.1.1
Id codecs.
License: BSD

====
coid
====

.. image:: https://travis-ci.org/bninja/coid.png
   :target: https://travis-ci.org/bninja/coid
   
.. image:: https://coveralls.io/repos/bninja/coid/badge.png?branch=master
   :target: https://coveralls.io/r/bninja/coid?branch=master

Simple codecs for ids. Can be useful when you represent ids differently between
domains.

Get it:

.. code:: bash

   $ pip install coid

use it:

.. code:: python

   import uuid
   import coid
   
   id = uuid.uuid4()
    
   id_codec = coid.Id(prefix='BLA-', encoding='base58')
   assert id == id_codec.decode(id_codec.encode(id))
ciao 0.1.0
Michael Corleone says ...
License: BSD

====
coid
====

.. image:: https://travis-ci.org/bninja/coid.png
   :target: https://travis-ci.org/bninja/coid

.. image:: https://coveralls.io/repos/bninja/ciao/badge.png
   :target: https://coveralls.io/r/bninja/ciao

Simple resource throttling. Get it:

.. code:: bash

   $ pip install coid

use it e.g. like:

.. code:: python

   import datetime
   
   import ciao
   import sqlalchemy as sa

   db_engine = sa.create_engine('postgres://mikey:corleone@localhost/study')
   
   db_throttle = ciao.Throttle(
     duration=datetime.timedelta(seconds=30),
     exc=(
         sa.exc.OperationalError,
         sa.exc.DisconnectionError,
         sa.exc.InvalidRequestError,
         sa.exc.InterfaceError,
         sa.exc.DatabaseError,
         sa.exc.DBAPIError,
     ),
   )
   
   if not db_throttle:
      with db_throttle:
         db_engine.execute('SELECT * FROM slippers WHERE name = "mine"')
skipdict 1.0
Python dictionary object permanently sorted by value.
License: BSD

SkipDict
========

A skip dict is a Python dictionary which is permanently sorted by
value. This package provides a fast, idiomatic implementation written
in C with an extensive test suite.

The data structure uses a `skip list
<http://en.wikipedia.org/wiki/Skip_list>`_ internally.

An example use is a leaderboard where the skip dict provides
logarithmic access to the score and ranking of each user, as well as
efficient iteration in either direction from any node.

Compatible with Python 2.7+ and Python 3.3+.


Usage
-----

The skip dict works just like a normal dictionary except it maps only
to floating point values::

  from skipdict import SkipDict

  skipdict = SkipDict(maxlevel=4)

  skipdict['foo'] = 1.0
  skipdict['bar'] = 2.0

The ``SkipDict`` optionally takes a dictionary or a sequence of
``(key, value)`` pairs::

  skipdict = SkipDict({'foo': 1.0, 'bar': 2.0})
  skipdict = SkipDict(('foo', 1.0), ('bar', 1.0), ('bar', 1.0))

Note that duplicates are automatically aggregated to a sum. To
illustrate this, we can count the occurrences of letters in a text::

  skipdict = SkipDict(
      (char, 1) for char in
      "Everything popular is wrong. - Oscar Wilde"
  )

  # The most frequent letter is a space.
  skipdict.keys()[-1] == " "

The ``skipdict`` is sorted by value which means that iteration and
standard mapping protocol methods such as ``keys()``, ``values()`` and
``items()`` return items in sorted order.

Each of these methods have been extended with optional range arguments
``min`` and ``max`` which limit iteration based on value. In addition,
the iterator objects support the item and slice protocols:

>>> skipdict.keys(min=2.0)[0]
'bar'
>>> skipdict.keys(max=2.0)[1:]
['bar']

Note that the methods always return an iterator. Use ``list`` to
expand to a sequence:

>>> iterator = skipdict.keys()
>>> list(iterator)
['bar']

The ``index(value)`` method returns the first key that has exactly the
required value. If the value is not found then a ``KeyError``
exception is raised.

>>> skipdict.index(2.0)
'bar'


Alternatives
------------

Francesco Romani wrote `pyskiplist
<https://bitbucket.org/mojaves/pyskiplist>`_ which also provides an
implementation of the skip list datastructure for CPython written
in C.

Paul Colomiets wrote `sortedsets
<https://github.com/tailhook/sortedsets>`_ which is an implementation
in pure Python. The randomized test cases were adapted from this
package.


License
-------

Copyright (c) 204 Malthe Borch <mborch@gmail.com>

This software is provided "as-is" under the BSD License.


Changes
-------

1.0 (2014-09-26)
----------------

- Initial public release.
besnappy 0.1.0
An unofficial client library for the BeSnappy HTTP API.
License: BSD

BeSnappy HTTP API client
=======================

An unofficial client library for the `BeSnappy`_ HTTP API.

.. _BeSnappy: https://github.com/BeSnappy/api-docs

|gha-ci|_ |gha-cover|_

.. |gha-ci| image:: https://travis-ci.org/westerncapelabs/besnappy.png?branch=develop
.. _gha-ci: https://travis-ci.org/westerncapelabs/besnappy

.. |gha-cover| image:: https://coveralls.io/repos/westerncapelabs/besnappy/badge.png?branch=develop
.. _gha-cover: https://coveralls.io/r/westerncapelabs/besnappy

Issues can be filed in the GitHub issue tracker. Please don't use the issue
tracker for general support queries.

Note: API coverage is currently extremely low.
webobentrypoints 0.1.0
PasteDeploy entry points for WebOb WSGI apps and filters.
License: BSD
Keywords: webobentrypoints

===============================
WebOb Entry points
===============================

.. image:: https://badge.fury.io/py/webobentrypoints.png
    :target: http://badge.fury.io/py/webobentrypoints

.. image:: https://travis-ci.org/regebro/webobentrypoints.png?branch=master
        :target: https://travis-ci.org/regebro/webobentrypoints

.. image:: https://pypip.in/d/webobentrypoints/badge.png
        :target: https://pypi.python.org/pypi/webobentrypoints


**PasteDeploy entry points for WebOb WSGI apps**

* Free software: BSD license
* Documentation: https://webobentrypoints.readthedocs.org.

Features
--------

WebOb includes several WSGI apps that you can use as a part of your
application. However, it does not include ready to use entry points for usage
in PasteDeploy ini files, for usage with for example
[Gearbox](https://pypi.python.org/pypi/gearbox)

This module provides these entry points and the small wrappers needed.

The entry points provided are:

egg:webobentrypoints#staticdir


Example usage
-------------

Here is an example of a ini file configuration using the staticdir and the proxy apps::

    [server:main]
    use = egg:gearbox#wsgiref
    host = 0.0.0.0
    port = 5000

    [composite:main]
    use = egg:rutter#urlmap
    /static = static
    / = content

    # Serve the /static directory from local disk
    [app:static]
    use = egg:webobentrypoints#staticdir
    path = %(here)s/theme

    # Otherwise display http://webob.org/ as the content
    [app:content]
    use = egg:webobentrypoints#proxy
    address = http://webob.org/
    suppress_http_headers = accept-encoding connection




History
-------

0.1.0 (2014-09-25)
------------------

* First release on PyPI.