semvec/pypi-packages huggingface dataset:
queuing 0.3.1
Multithreating producent-consumer solution
License: MIT

# queuing
Multithreating producent-consumer solution

Example
```python
import queuing
import time
import logging

logging.basicConfig(level=logging.DEBUG, format='%(asctime)s [%(levelname)5s] %(name)s %(message)s')


@queuing.consumer(instances=5)
def m1(no):
    time.sleep(1)
    print("m1 {}".format(no))
    queuing.broker.send('m2', {
        'no': no,
        'sqno': no * no,
    })
    [queuing.broker.send('m3', {
        'no': no,
    }) for i in range(0, 10)]


@queuing.consumer(instances=2)
def m2(no, sqno):
    time.sleep(2)
    print("m2 {} {}".format(no, sqno))


@queuing.consumer(instances=1)
def m3(no):
    print("m3 {}".format(no))


if __name__ == '__main__':
    for i in range(0, 10):
        queuing.broker.send('m1', {
            'no': i
        })

    queuing.broker.loop()

```
DrawTurksHead 0.3.5
Draw... Turk's head knots!
License: MIT

.. GENI: intro
.. GENERATED SECTION, MANUAL EDITS WILL BE LOST

*DrawTurksHead* is a Python (2.7) library to draw `Turk's head knots <http://en.wikipedia.org/wiki/Turk%27s_head_knot>`_.
An `interactive demo <http://jacquev6.github.io/DrawTurksHead/demo.html>`_ is available.

.. END OF GENERATED SECTION

.. GENI: info
.. GENERATED SECTION, MANUAL EDITS WILL BE LOST

It's licensed under the `MIT license <http://choosealicense.com/licenses/mit/>`_.
It's available on the `Python package index <http://pypi.python.org/pypi/DrawTurksHead>`_.
Its `documentation <http://jacquev6.github.io/DrawTurksHead>`_
and its `source code <https://github.com/jacquev6/DrawTurksHead>`_ are on GitHub.

.. END OF GENERATED SECTION

.. GENI: badges
.. GENERATED SECTION, MANUAL EDITS WILL BE LOST

Questions? Remarks? Bugs? Want to contribute? `Open an issue <https://github.com/jacquev6/DrawTurksHead/issues>`_!

.. image:: https://img.shields.io/travis/jacquev6/DrawTurksHead/master.svg
    :target: https://travis-ci.org/jacquev6/DrawTurksHead

.. image:: https://img.shields.io/coveralls/jacquev6/DrawTurksHead/master.svg
    :target: https://coveralls.io/r/jacquev6/DrawTurksHead

.. image:: https://img.shields.io/codeclimate/github/jacquev6/DrawTurksHead.svg
    :target: https://codeclimate.com/github/jacquev6/DrawTurksHead

.. image:: https://img.shields.io/scrutinizer/g/jacquev6/DrawTurksHead.svg
    :target: https://scrutinizer-ci.com/g/jacquev6/DrawTurksHead

.. image:: https://img.shields.io/pypi/dm/DrawTurksHead.svg
    :target: https://pypi.python.org/pypi/DrawTurksHead

.. image:: https://img.shields.io/pypi/l/DrawTurksHead.svg
    :target: https://pypi.python.org/pypi/DrawTurksHead

.. image:: https://img.shields.io/pypi/v/DrawTurksHead.svg
    :target: https://pypi.python.org/pypi/DrawTurksHead

.. image:: https://img.shields.io/pypi/pyversions/DrawTurksHead.svg
    :target: https://pypi.python.org/pypi/DrawTurksHead

.. image:: https://img.shields.io/pypi/status/DrawTurksHead.svg
    :target: https://pypi.python.org/pypi/DrawTurksHead

.. image:: https://img.shields.io/github/issues/jacquev6/DrawTurksHead.svg
    :target: https://github.com/jacquev6/DrawTurksHead/issues

.. image:: https://img.shields.io/github/forks/jacquev6/DrawTurksHead.svg
    :target: https://github.com/jacquev6/DrawTurksHead/network

.. image:: https://img.shields.io/github/stars/jacquev6/DrawTurksHead.svg
    :target: https://github.com/jacquev6/DrawTurksHead/stargazers

.. END OF GENERATED SECTION

Quick start
===========

Install from PyPI::

    $ pip install DrawTurksHead

Are you're good to go::

    $ python -m DrawTurksHead

(This will create a ``turkshead.png`` file in the current directory)

Examples (from the `interactive demo`_)
=======================================

.. image:: http://dyn.vincent-jacques.net/turkshead?leads=4&bights=7&line_width=20&inner_radius=25&width=400&height=400

.. image:: http://dyn.vincent-jacques.net/turkshead?leads=6&bights=9&line_width=10&inner_radius=90&width=400&height=400