semvec/pypi-packages huggingface dataset:
eurovision-country-selector 1.0.5.2016
Select a country for your EuroVision party.
License: MIT

EuroVision Country Selector
===========================

.. image:: https://travis-ci.org/mikejarrett/eurovision-country-selector.svg?branch=master
    :target: https://travis-ci.org/mikejarrett/eurovision-country-selector

Select a country for your EuroVision party.

Useage
======


.. code:: sh

  $ eurovision --people people.csv  --outfile whos-got-what.csv
  Mike -- Hungary (36)


.. code:: sh

    usage: eurovision-script.py [-h] [--countries [COUNTRIES]]
                                [--countrieslist [COUNTRIESLIST]]
                                [--people [PEOPLE]]
                                [--peoplelist PEOPLELIST [PEOPLELIST ...]]
                                [--outfile [OUTFILE]] [--loops LOOPS]

    Select countries for people when watching EuroVision.

    optional arguments:
      -h, --help            show this help message and exit
      --countries [COUNTRIES]
                            The csv file of countries to that are in the
                            competition.
      --countrieslist [COUNTRIESLIST]
                            Names of countries that are in the competition.
      --people [PEOPLE]     The csv file which contains people names and their
                            countries to exclude.
      --peoplelist PEOPLELIST [PEOPLELIST ...]
                            Names of people that will be attending the party.
      --outfile [OUTFILE]   The filename to save results to.
      --loops LOOPS         Number of times to loop the check.


Example Data
------------

* https://github.com/mikejarrett/eurovision-country-selector/tree/master/examples/
pyima 0.1
Python implementation of IMA ADPCM codec.
License: MIT

This module implements an audio codec IMA ADPCM suitable for use in
games or other audio applications. It support 256 bytes compressed blocks
with 505 4-bit samples at sample rate 8 KHz mono and 1010 bytes uncompressed
blocks with 505 16-bit samples at sample rate 8 KHz mono.
16-bit data samples encoded as 4-bit differences result in 4:1 compression format.
signaling 1.0.0
Simple signal/slot implementation
License: MIT

.. image:: https://img.shields.io/pypi/v/signaling.svg?style=flat-square
    :target: https://pypi.python.org/pypi/signaling
.. image:: https://img.shields.io/travis/mdomke/signaling/master.svg?style=flat-square
    :target: https://travis-ci.org/mdomke/signaling
.. image:: https://img.shields.io/pypi/l/signaling.svg?style=flat-square
    :target: https://pypi.python.org/pypi/signaling
.. image:: https://img.shields.io/coveralls/mdomke/signaling.svg?style=flat-square
    :target: https://github.com/mdomke/signaling

What is this?
=============

``signaling`` is a simple implementation of the `signal/slot pattern`_ as 
known from the `Qt framework`_.
It has no external requirements and 100% test-coverage.


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

The usual

.. code-block:: bash

  pip install signaling


How to use it?
==============

Consider that you have a function that should be called whenever a connected signal
is emitted, as illustrated by the following code block:

.. code-block:: python

  def slot(arg):
    print("Slot called with {}".format(arg))

  signal = Signal(args=['arg'])
  signal.connect(slot)
  signal.emit(arg=1)  # Slot called with 1

In fact you can connect multiple slots to the same signal, as long as they share the
same function signature.

Notice that the ``signaling`` library performs some sanity checks when connecting
slots and emitting signals.

* All slots connected to a signal have to provide the same argument specifiction as
  denoted by the ``args`` parameter of the ``Signal`` constructor.
* An ``emit``-call has to be made with the exact same arguments as specified with the
  ``Signal`` constructor.

So all of the below examples would raise an exception:

.. code-block:: python

  def slot_with_arg(arg):
    pass

  def slot_without_arg():
    pass

  # InvalidSlot: Slot 'slot_with_arg' has to callable without arguments
  Signal().connect(slot_with_arg)  

  # InvalidSlot: Slot 'slot_without_args' has to accept args ['arg'] or **kwargs.
  Signal(args['arg']).connect(slot_without_arg)

  s = Signal()
  s.connect(slot_without_args)
  # InvalidEmit: Emit has to be called without arguments.
  s.emit(foo=1)


.. _qt framework: http://www.qt.io/
.. _signal/slot pattern: https://en.wikipedia.org/wiki/Signals_and_slots
scrapy-proxy-rotator 0.1.0
Scrapy downloader middleware that rotates proxies.
License: MIT

=====
About
=====

.. image:: https://travis-ci.org/povilasb/scrapy-proxy-rotator.svg?branch=master
.. image:: https://coveralls.io/repos/github/povilasb/scrapy-proxy-rotator/badge.svg?branch=master :target: https://coveralls.io/github/povilasb/scrapy-proxy-rotator?branch=master

This is a `Scrapy <http://scrapy.org/>`_ downloader middleware that sets proxy
server for requests.
Currently proxy servers are rotated randomly.
In the future more rotation strategies will be supported.

Configuration
=============

Scrapy settings file::

    DOWNLOADER_MIDDLEWARES = {
        'scrapy_proxy_rotator.ProxyMiddleware': 1,
    }

    PROXY_ROTATOR = {
        'username': 'user1',
        'password': 'pass1',
        'proxies_file': 'proxies.txt',
    }

In proxies file proxy server must be formatted like this `http://host:port`.