semvec/pypi-packages huggingface dataset:
itertools-len 1.0
Building blocks for iterators, preserving their :func:`len`\ s.
Requires Python: >= 3.6

itertools-len
=============

|pkg| |docs| |ci| |cov|

.. |pkg| image:: https://img.shields.io/pypi/v/itertools-len
   :target: https://pypi.org/project/itertools-len
.. |docs| image:: https://readthedocs.org/projects/itertools-len/badge/?version=latest
   :target: https://itertools-len.readthedocs.io
.. |ci| image:: https://travis-ci.com/flying-sheep/itertools-len.svg?branch=master
   :target: https://travis-ci.com/flying-sheep/itertools-len
.. |cov| image:: https://codecov.io/gh/flying-sheep/itertools-len/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/flying-sheep/itertools-len

Have you ever been annoyed that the length information of ``itertools`` have not been preserved?

This module faithfully wraps every one of them (together with ``map``) where ``len`` can be derived:

>>> from itertools_len import chain, product
>>> len(chain('abc', [1, 2]))
5
>>> len(product('abc', [1, 2]))
6
ImageThief 2.0.3
Get files from server running on default route
Keywords: raspberrypi,image-processing,image-getter

IMAGE THIEF
===============

This is a python library for capturing files over default route (http://0.0.0.0)

Functions:
----------
* Capture files from raspberryPi and access on your system.
* Capture files on one system and access on other.

Installation :
--------------

Python
-------

::

    python -m pip install imagethief --user


Server Demo:
~~~~~~~~~~~~

::

    from ImageThief import Thief

    app = Thief(name=__name__)


    app.add_plan('/image','image')
    app.add_plan('/audio','audio')

    app.steal()


Client Demo:
~~~~~~~~~~~~
::

   from requests import get
    from ImageThief import Decoder as fileSaver

    url = 'http://localhost:5000'
    plan = '/audio'

    a = get(url + plan, headers={'Ext': '.mp3', 'filename': 'sampa.mp3'}).json()

    secondfile = 'some.mp3'
    if a['message'] == 'OK':
        fileSaver(a['data'], secondfile)
        print('File Saved with name ' + secondfile)
    else:
        print('Error')