semvec/pypi-packages huggingface dataset:
slumber-serializers 0.1.0
A set of Slumber serializers
License: MIT

===================
slumber-serializers
===================

A set of Slumber serializers

.. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master
   :target: https://travis-ci.org/tomi77/slumber-serializers
.. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg
   :target: https://coveralls.io/github/tomi77/slumber-serializers
.. image:: https://codeclimate.com/github/tomi77/slumber-serializers/badges/gpa.svg
   :target: https://codeclimate.com/github/tomi77/slumber-serializers
   :alt: Code Climate

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

Install package via ``pip``

.. sourcecode:: sh

   pip install slumber-serializers

Usage
=====

.. sourcecode:: python

   import slumber
   import slumber.serialize
   from slumber_serializers import CsvSerializer


   api = slumber.API('/api/v1/', serializer=slumber.serialize.Serializer(default='csv',
                                                                         serializers=[CsvSerializer()]),
                     format='csv')
   api.test(format='csv').get()

Available serializers
=====================

CSV serializer
--------------

Serialize to and deserialize from CSV.

Binary serializer
-----------------

Serialize to and deserialize from any binary format.
bottle-mysql 0.3.1
MySQL integration for Bottle.
License: MIT

Bottle-MySQL is a plugin that integrates MySQL with your Bottle
application. It automatically connects to a database at the beginning of a
request, passes the database handle to the route callback and closes the
connection afterwards.

To automatically detect routes that need a database connection, the plugin
searches for route callbacks that require a `db` keyword argument
(configurable) and skips routes that do not. This removes any overhead for
routes that don't need a database connection.

Results are returned as dictionaries.

Usage Example::

    import bottle
    import bottle_mysql

    app = bottle.Bottle()
    # dbhost is optional, default is localhost
    plugin = bottle_mysql.Plugin(dbuser='user', dbpass='pass', dbname='db')
    app.install(plugin)

    @app.route('/show/:<tem>')
    def show(item, db):
        db.execute('SELECT * from items where name="%s"', (item,))
        row = db.fetchone()
        if row:
            return template('showitem', page=row)
        return HTTPError(404, "Page not found")
drf-proxy-pagination 0.1.1
Pagination class for Django REST Framework to choose pagination class by query parameter
License: MIT

drf-proxy-pagination
======================================

|build-status-image| |pypi-version|

Overview
--------

Pagination class for Django REST Framework to choose pagination class by query parameter

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

-  Python (2.7, 3.3, 3.4)
-  Django (1.8+)
-  Django REST Framework (3.1+)

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

Install using ``pip``\ …

.. code:: bash

    $ pip install drf-proxy-pagination

In ``settings.py``, choose `ProxyPagination` as your default pagination class
and configure it:

.. code:: python

    REST_FRAMEWORK = {
        ...
        DEFAULT_PAGINATION_CLASS = 'pagination_proxy.ProxyPagination',
    }
    PROXY_PAGINATION_PARAM = 'pager'
    PROXY_PAGINATION_DEFAULT = 'rest_framework.pagination.LimitOffsetPagination'
    PROXY_PAGINATION_MAPPING = {
        'cursor': 'rest_framework.pagination.CursorPagination',
    }

Example
-------

http://api.example.org/accounts/ gives default pagination.
http://api.example.org/accounts/?pager=cursor gives CursorPagination for heavy queries.

Testing
-------

Install testing requirements.

.. code:: bash

    $ pip install -r requirements.txt

Run with runtests.

.. code:: bash

    $ ./runtests.py

You can also use the excellent `tox`_ testing tool to run the tests
against all supported versions of Python and Django. Install tox
globally, and then simply run:

.. code:: bash

    $ tox

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

To build the documentation, you’ll need to install ``mkdocs``.

.. code:: bash

    $ pip install mkdocs

To preview the documentation:

.. code:: bash

    $ mkdocs serve
    Running at: http://127.0.0.1:8000/

To build the documentation:

.. code:: bash

    $ mkdocs build

.. _tox: http://tox.readthedocs.org/en/latest/

.. |build-status-image| image:: https://secure.travis-ci.org/tuffnatty/drf-proxy-pagination.svg?branch=master
   :target: http://travis-ci.org/tuffnatty/drf-proxy-pagination?branch=master
.. |pypi-version| image:: https://img.shields.io/pypi/v/drf-proxy-pagination.svg
   :target: https://pypi.python.org/pypi/drf-proxy-pagination