semvec/pypi-packages huggingface dataset:
tilda-api 0.2.1
A python implementation of the Tilda.cc API
License: MIT

# Python Tilda.cc API

[![PyPI](https://img.shields.io/pypi/v/tilda-api.svg)](https://pypi.python.org/pypi/tilda-api)
[![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://travis-ci.org/dotzero/tilda-api-python)
[![Build Status](https://travis-ci.org/dotzero/tilda-api-python.svg?branch=master)](https://travis-ci.org/dotzero/tilda-api-python)
[![Code Coverage](https://scrutinizer-ci.com/g/dotzero/tilda-api-python/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/dotzero/tilda-api-python/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dotzero/tilda-api-python/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/dotzero/tilda-api-python/?branch=master)

As complete as possible implementation of Tilda.cc API.

The project provides an almost exhaustive access to the Tilda.cc API, through an *object oriented* Python interface.

## Features

* Get projects list
* Get project info
* Get project info for export
* Get pages list
* Get short page info and body html code
* Get full page info and full html code
* Get short page info for export and body html code
* Get full page info for export and body html code

## Requires

* python >= 2.6
* python >= 3.2

## Installation

### From Pypi

You can install tilda-api-python using:

    pip install tilda-api

### From source

    git clone https://github.com/dotzero/tilda-api-python
    cd tilda-api-python
    python setup.py install

## Usage

To create an instance of the tilda.Client:

    >>> import tilda
    >>> api = tilda.Client(public='000000000000', secret='999999999999')

To get projects list:

    >>> projects = api.get_projects_list()
    >>> projects[0].to_dict()
    ... or
    >>> projects[0].id
    >>> projects[0].title

To get project info:

    >>> project = api.get_project(project_id=00000)
    >>> project.to_dict()
    ... or
    >>> project.id
    >>> project.title

To get project info for export:

    >>> project = api.get_project_export(project_id=00000)
    >>> project.to_dict()
    ... or
    >>> project.id
    >>> project.title

To get pages list:

    >>> pages = api.get_pages_list(project_id=00000)
    >>> pages[0].to_dict()
    ... or
    >>> pages[0].id
    >>> pages[0].title

To get short page info and body html code:

    >>> page = api.get_page(page_id=00000)
    >>> page.to_dict()
    ... or
    >>> page.title
    >>> page.html

To get full page info and full html code:

    >>> page = api.get_page_full(page_id=00000)
    >>> page.to_dict()
    ... or
    >>> page.title
    >>> page.html

To get short page info for export and body html code:

    >>> page = api.get_page_export(page_id=00000)
    >>> page.to_dict()
    ... or
    >>> page.title
    >>> page.html

To get full page info for export and body html code:

    >>> page = api.get_page_full_export(page_id=00000)
    >>> page.to_dict()
    ... or
    >>> page.title
    >>> page.html

## License

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
ticking 0.4.0
A small timing utility library, handling framerates and rough benchmarks.
License: MIT

ticking
=======

Useful tools when dealing with clocks for timing and benchmarking. Will use a
different method for retrieving accurate, monotonic clock values (see source
for detail).

Tested on Python 2.7 and 3.3+. The latter is recommended because the ``time``
module contains much better access to OS timing functions.

Examples
--------

Simple framerate-limiter:

.. code-block:: pycon

    >>> import ticking
    >>> for frame, t in ticking.Clock(0.5):
    ...   print(frame, t)
    ...
    1 0.5
    2 1.0
    3 1.5
    ...


After dropping a frame, the clock is aligned again:

.. code-block:: pycon

    >>> import time
    >>> for frame, t in ticking.Clock(0.5):
    ...   print(frame, t)
    ...   time.sleep(0.8)  # drop a frame
    ...
    1 0.5
    3 1.5
    5 2.5

Measuring time:

.. code-block:: pycon

    >>> with ticking.Stopwatch('Demonstration') as sw:
    ...   time.sleep(1.3)
    ...
    >>> sw.total
    1.3013252970049507
    >>> print(sw)
    Demonstration: took 1.30s

Quick in-program profiling:

.. code-block:: pycon

    >>> with ticking.profiled('testprofile.prof'):
    ...   time.sleep(1.0)
    ...
    >>> import pstats
    >>> pstats.Stats('testprofile.prof').print_stats()
    Wed Jun  8 11:21:38 2016    testprofile.prof

             5 function calls in 1.001 seconds

       Random listing order was used

       ncalls  tottime  percall  cumtime  percall filename:lineno(function)
            1    0.000    0.000    0.000    0.000 {method 'disable' of '_lsprof.Profiler' objects}
            1    1.001    1.001    1.001    1.001 {built-in method sleep}
            1    0.000    0.000    0.000    0.000 /usr/lib/python3.4/contextlib.py:63(__exit__)
            1    0.000    0.000    0.000    0.000 {built-in method next}
            1    0.000    0.000    0.000    0.000 /home/marc/Documents/github.com/mbr/ticking/ticking.py:137(profiled)
iso639 0.1.4
ISO639-2 support for Python.
License: MIT

iso639
======
A simple (really simple) library for working with ISO639-2 language codes.
Tested for Python 2.7 & 3.4.

Includes data from Congress library: http://www.loc.gov/standards/iso639-2/php/code_list.php (+ updates)

Installation
------------
The easiest way is using `pip`:

    pip install iso639

Alternatives
------------
* **pycountry**: https://bitbucket.org/flyingcircus/pycountry - a more-featured package
* **iso639**: https://github.com/noumar/iso639 - another package with the same name

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

```python
import iso639

>>> iso639.to_name('sv')
u'Swedish'

>>> iso639.to_native('sv')
u'svenska'
```

For more examples, see doctests in the source code.

Acknowledgments
---------------
@hosford42 - adding the native language support
adaptpath 0.3.7
convinent script to adapt python's sys.path
License: MIT
Keywords: adaptpath adaptedpath adapt-path adapt path

# Description
convinent script to adapt python's sys.path

# Install
    pip install adaptpath

# Usage
    * Say we have dir-tree below:
        a / b / c.py
        x / y / z.py
    
    * Now suppose we are in "z.py" and we want to do this:
        from a.b import c
    
    * We can put the lines below ahead of "z.py"
        from adaptpath import adaptpath
        adaptpath.adapt_from_path(2, __file__)
        
# Test
    pytest test