semvec/pypi-packages huggingface dataset:
twutil 0.2.2
Utilities for manipulating tweets
License: BSD
Keywords: twutil

twutil
======

A set of utilities for handling Twitter data.

Installing
----------

``pip install twutil``

Twitter API calls rely on the
`TwitterAPI <https://github.com/geduldig/TwitterAPI>`__ Python library.

To use OAuth, you'll need to set the following environmental variables:

| ``TW_CONSUMER_KEY``
| ``TW_CONSUMER_SECRET``
| ``TW_ACCESS_TOKEN``
| ``TW_ACCESS_TOKEN_SECRET``




History
-------
0.2.2 (2015-10-08)
++++++++++++++++++
* add get_friends

0.2.1 (2015-10-06)
++++++++++++++++++
* Properly specify requirements.

0.2.0 (2015-10-06)
++++++++++++++++++
* Backward compatibility for python2


0.1.9 (2014-12-08)
++++++++++++++++++
* Convert to Python3
* Support to collect friends

0.1.8 (2014-12-08)
++++++++++++++++++
* Get members of a Twitter list
* Improvements to tokenizer.
* Lookup screen names in bulk.


0.1.7 (2014-05-15)
++++++++++++++++++
* Fetch followers
* Enhanced error handling
* Bug fixes

0.1.6 (2014-05-02)
++++++++++++++++++
* Update versions


0.1.5 (2014-05-02)
++++++++++++++++++
* Bug fixes
* Skip missing users

0.1.4 (2014-05-02)
++++++++++++++++++
* Bug fixes
* Fail more gracefully

0.1.3 (2014-05-01)
++++++++++++++++++
* Small doc changes


0.1.2 (2014-05-01)
++++++++++++++++++

* Switch to TwitterAPI
* Support search and track by user
* rename api module to collect

0.1.0 (2014-03-29)
++++++++++++++++++

* First release on PyPI.
django-smart-pagination 1.0.1
Generate pagination links in Django Templates
License: BSD
Keywords: django pagination page links

=======================
django-smart-pagination
=======================

Generate pagination links for Django

Instead of displaying links to all the pages at once, django-smart-pagination calculates a limited subset of them.

Works with Django Templates and Jinja2.

-----
Usage
-----

First add ``smart_pagination`` to your installed apps:

.. code:: python

    INSTALLED_APPS = [
        'smart_pagination'
    ]

Use a pagination block passing the ``Page`` object, the number of links (literal of variable)
and the name to associate the ``smart_pagination.Paginator`` object.

.. code-block:: django

    {% load pagination_tags %}
    {% paginate page_obj num_links paging %}
    <ul>
        {% for page in paging.pages %}
        <li class="{% if page.is_current %}current{% endif %}">{{ page.number }}</li>
        {% endfor %}
    </ul>
    {% endpaginate %}

The ``Paginator`` object contains the following properties:

===== =================================================================
first First ``Page``. Will be ``None`` if it is already the first page.
prev  Previous ``Page``. Will be ``None`` if there is no previous page.
pages List of pages.
next  Next ``Page``. Will be ``None`` if there is no next page.
last  Last ``Page``. Will be ``None`` if it is already the last page.
===== =================================================================

.. code-block:: django

    {% load pagination_tags %}
    {% paginate page_obj num_links paging %}
    <ul>
        {% if paging.first %}
        <li>First - {{ paging.first.number }}</li>
        {% endif %}

        {% if paging.prev %}
        <li>Previous - {{ paging.prev.number }}</li>
        {% endif %}

        {% for page in paging.pages %}
        <li class="{% if page.is_current %}current{% endif %}">{{ page.number }}</li>
        {% endfor %}

        {% if paging.next %}
        <li>Next - {{ paging.next.number }}</li>
        {% endif %}

        {% if paging.last %}
        <li>Last - {{ paging.last.number }}</li>
        {% endif %}
    </ul>
    {% endpaginate %}

If you are sending the page_kwarg as a query parameter, you can optionally pass a fourth argument with the name
of the page_kwarg and the ``Paginator`` will provide the query string without the page_kwarg:

.. code-block:: django

    {% load pagination_tags %}
    {% paginate page_obj num_links paging 'page' %}
    <ul>
        {% for page in paging.pages %}
        <li><a href="?page={{ page.number }}&{{ paging.query }}">{{ page.number }}</a></li>
        {% endfor %}
    </ul>
    {% endpaginate %}
skinfer 0.2.0
Simple tool to merge JSON schemas
License: BSD
Keywords: skinfer json-schema json schema inferer merger

============================================
Skinfer - tool for working with JSON schemas
============================================

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

.. image:: https://travis-ci.org/scrapinghub/skinfer.png?branch=master
        :target: https://travis-ci.org/scrapinghub/skinfer

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


Simple tool to infer and/or merge JSON schemas

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

Features
--------

* Generating schema in **JSON Schema draft 4** format
* Inferring schema from multiple samples
* Merging schemas - nice for generating schema in Map-Reduce fashion
  or updating an old schema with new data


Example of using `skinfer` to generate a schema from a list of samples::

    $ cat samples.jsonl
    {"name": "Claudio", "age": 29}
    {"name": "Roberto", "surname": "Gomez", "age": 72}
    $ skinfer --jsonlines samples.jsonl
    {
        "$schema": "http://json-schema.org/draft-04/schema",
        "required": [
            "age",
            "name"
        ],
        "type": "object",
        "properties": {
            "age": {
                "type": "number"
            },
            "surname": {
                "type": "string"
            },
            "name": {
                "type": "string"
            }
        }
    }


Install with::

    $ pip install skinfer

Or, if you don't have ``pip``, you can still install it with::

    $ easy_install skinfer




History
-------


0.2.0 (2015-08-10)
------------------

* Renamed entry-point script schema_inferer -> skinfer
* Added json_validator
* Dropped Python 2.6 support
* Added more tests


0.1.2 (2015-08-04)
------------------

* Bugfix: removed buggy -o argument
* Automated PyPI release via Travis


0.1.1 (2015-05-01)
------------------

* Support more complex string-type schemas
* Attempt to infer JSON lines format instead of just failing
* API cleanup: no need for long imports anymore
* Updated documentation, added docstrings
* Fixed merging schema for arrays with tuple vs list validation
* Fixed compatibility issues with Python 2.6
* Improved test coverage, added end-to-end tests


0.1.0 (2015-03-03)
---------------------

* First release on PyPI.