semvec/pypi-packages huggingface dataset:
flake8-polyfill 1.0.2
Polyfill package for Flake8 plugins
License: MIT

=============================
 Polyfill for Flake8 Plugins
=============================

``flake8-polyfill`` is a package that provides some compatibility helpers for
Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously.


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

.. code-block:: bash

    pip install flake8-polyfill


Usage
=====

Option Handling
---------------

One problem area with compatibility with Flake8 2.x and 3.x is the registering
options and receiving the parsed values.

Flake8 3.0 added extra parameters to the ``add_option`` method which don't
have the same effect on Flake8 2.x. To accomodate the change, this polyfill
module allows you to do:

.. code-block:: python

    from flake8_polyfill import options

    class MyFlake8Plugin(object):
        @classmethod
        def add_options(cls, parser):
            options.register(parser, '--my-long-option-name',
                             parse_from_config=True,
                             comma_separated_list=True,
                             default='...',
                             help='...')
            options.register(parser, '-m', '--my-other-long-option-name',
                             parse_from_config=True,
                             normalize_paths=True,
                             default='...',
                             help='...')

        @classmethod
        def parse_options(cls, values):
            cls.my_long_option_name = values.my_long_option_name
            cls.my_other_long_option_name = values.my_other_long_option_name

And have the code work the same way on both versions.

Retrieving Standard In
----------------------

Until Flake8 2.6, getting the code on standard in from a plugin has been
simple:

.. code-block:: python

    import pep8

    stdin = pep8.get_stdin_value()

In 2.6 you now have to know whether to use ``pep8`` or ``pycodestyle`` since
Flake8 2.6 made a hard change to ``pycodestyle``.

The reason you need to know which module to use is because standard in can be
exhausted and Flake8 does some work to cache the value so that call always
returns the desired data.

In 3.0, Flake8 no longer monkey-patches those modules.

To accommodate this, this package provides:

.. code-block:: python

    from flake8_polyfill import stdin

    stdin.monkey_patch('all')
    stdin.monkey_patch('pep8')
    stdin.monkey_patch('pycodestyle')

This allows you to have the polyfill module monkey-patch what you want so it
is always monkey-patched. It will also do so in an intelligent way.

Version Comparison
------------------

Flake8 2.x did not include an object that would allow for easy version
comparison. Flake8 3.0, however, added a ``__version_info__`` attribute. For
consistency, Flake8 Polyfill will turn 2.x's version string into a tuple
suitable for comparison.

.. code-block:: python

    from flake8_polyfill import version

    if (2, 4) <= version.version_info < (2, 6):
        # ...
    elif (2, 6) <= version.version_info < (3, 0):
        # ...
    elif (3, 0) <= version.version_info < (4, 0):
        # ...


License
=======

MIT


Creator
=======

Ian Cordasco
udprelay 0.2.1
another simple udp realy server and client
License: MIT

# A simple Udp relay server & client
============================================================


.. image:: https://travis-ci.org/whatArePeopleDownloading/udpRelay.svg?branch=master
    :target: https://travis-ci.org/whatArePeopleDownloading/udpRelay

.. code:: python

    extera header for client (8 Bytes)
    +------+-------------------------------+
    | flag |      Ip address(v4)  | port   |
    |2 byte|        4 bytes       | 2 bytes|
    +--------------------------------------+
phg 3.0.0
Password hasher and generator
License: MIT

phg - Password hasher and generator
===================================

.. image:: https://travis-ci.org/hvnsweeting/phg.svg?branch=master
    :target: https://travis-ci.org/hvnsweeting/phg

Installation
------------

By using pip::

    pip install phg

Example
-------

Generate a random password, default to 16 characters::

  $ phg
  xz2jlVQoSLT8+V_+

Generate 20 random characters password::

  $ phg -l 20
  L`>jDtSHc+b5)Ef07.^s

Generate random password which may contain single quotes or double quotes::

  $ phg -q
  D5!&xG73\&n\&"BC

Generate multiple passwords for multiple users::

  $ phg hvn htl daivq tuda namnh thanhnt
  hvn: DyZ9CCzaK!B5m-ms
  htl: R;#SF(6dkr>)0pNI
  daivq: !Bk6}tX.qlO/:?{2
  tuda: z7.(}qZ:9[IMv,op
  namnh: z(Dj5BRv/al>}O=j
  thanhnt: w8,oG-e!uRV$CiE6

Generate password and hash it with an external command (uses password
as STDIN)::

  $ phg hvn -c 'shasum -a 512256' -i  # -i for stdin
  hvn: 7Qm?i250R\06>&^*
  ca6a3fa6a2e8bf2929f085c9bb043cf7aaec50e7cd532193634972869c9e0988  -

This is corresponding to generate password then pass it to command specified
in ``-c`` through pipeline.
Notice: shasum is command on OSX.

Generate password and hash it with an external command, password used as
command argument,
this mainly targets command that does not support reading from STDIN::

  $ phg hvn -c '/tmp/addprefix'
  hvn: 93k/0E{cZVc6jWz/
  PREFIX93k/0E{cZVc6jWz/

Generate passwords for many users, construct a message that you can sent
over Markdown powered chat app such as Slack, Mattermost::

  $ phg -m -s https://grafana.pymi.vn hvn nvh pikachu pukachi
  Address https://grafana.pymi.vn User: hvn Passwd: ``$8pZTMWX~NU5Z-2e``
  Address https://grafana.pymi.vn User: nvh Passwd: ``S%]JWO-_bS]:w7QI``
  Address https://grafana.pymi.vn User: pikachu Passwd: ``7^_c+e<|_%`RLMf2``
  Address https://grafana.pymi.vn User: pukachi Passwd: ``E@EC5XcQPoN$+>57``

Authors
-------

Viet Hung Nguyen <hvn@familug.org>
bnet 0.2
Battle.net API Wrapper
License: MIT
Keywords: battle.net,wow,warcraft,pypi,sc2,setup,api


Battle.net API for Python
=========================


Usage:
------

.. code-block:: python

    >>> from api.connection import BattleNetConnection
    >>> connection = BattleNetConnection(apikey=<BATTLE_NET_APIKEY>)
    >>> client = conn.client()
    >>> client.get_auction_data(server)


Documentation:
--------------
https://dev.battle.net/io-docs


Tests:
------

.. code-block:: sh

   $ export BATTLE_NET_APIKEY=<BATTLE_NET_APIKEY>
   $ make test
arxiv-checker 1.4.4
Cross check the most recent arxiv mailing against a list of authors.
License: MIT
Keywords: arXiv science research journal

arxiv-checker
============

A Python module to search arXiv.org. You can cross check a list of authors or keywords against either the most recent arXiv mailing or a given month/year.  Works with python 2.7 and python 3.

To install::

    pip install arxiv-checker

To check the most recent mailings of several arXiv subjects against a list of authors::

    import arxivchecker
    papers = arxivchecker.check_authors(['astro-ph', 'gr-qc', 'physics'], ['Smith, John', 'Doe, Jane'])

When displayed, each paper lists the title, a clickable url link to the abstract, and the author list. 

To check against a long list of names, use a file::

    papers = arxivchecker.check_authors(['astro-ph', 'gr-qc', 'physics'], 'names.txt')

If instead of names, you want to check each paper against a list of keywords in the title and abstract use::

    papers = arxivchecker.check_keywords('astro-ph', ['Planet Formation','Hot Jupiter'])

You can also grab all of the papers first using the scrape_arxiv function::

    papers = arxivchecker.scrape_arxiv('astro-ph')
    results = arxivchecker.check_authors_from_papers(papers, 'Doe, Jane')

Similarly, for checking keywords::

    papers = arxivchecker.scrape_arxiv('astro-ph')
    results = arxivchecker.check_keywords_from_papers(papers, ['GJ876','Gilese-876'])

If you want to grab all of the papers from a given month you can supply the year and month arguments::

    papers = arxivchecker.scrape_arxiv('astro-ph',year=2016,month=6) # June 2016
    papers = arxivchecker.scrape_arxiv('astro-ph',year=2016,month='May') # May 2016

Or grab all of the papers for a given year::

    papers = arxivchecker.scrape_arxiv('astro-ph',year=2016,month='all')

Note however that this can take a while to complete (there could be more than 10,000 papers), and arXiv discourages against crawling through the website. 

Finally, to run straight from the command line::

    python -c "import arxivchecker; arxivchecker.check_authors('astro-ph', 'authors.txt') > results.txt

To email the results use the Unix mail command::

    mail -s "Arxiv Mailing" email@gmail.com < results.txt

The arxivchecker requires the request and bs4 modules.
retox 1.5.0
A parallel service for tox
License: MIT

Retox
=====

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

.. image:: https://img.shields.io/travis/tonybaloney/retox.svg
        :target: https://travis-ci.org/tonybaloney/retox

.. image:: https://codecov.io/gh/tonybaloney/retox/branch/master/graph/badge.svg
        :target: https://codecov.io/gh/tonybaloney/retox

.. image:: https://pyup.io/repos/github/tonybaloney/retox/shield.svg
     :target: https://pyup.io/repos/github/tonybaloney/retox/
     :alt: Updates

.. image:: https://pyup.io/repos/github/tonybaloney/retox/python-3-shield.svg
     :target: https://pyup.io/repos/github/tonybaloney/retox/
     :alt: Python 3

A command line service that runs your tox tests in parallel, using threading and multicore CPUs.

See your tox environments in a dashboard and automatically watch source folders for file changes and re-run tests.

See : https://github.com/tonybaloney/retox/raw/master/docs/_static/screenshot.jpeg for an example screenshot

.. image:: https://github.com/tonybaloney/retox/raw/master/docs/_static/retox_demo.gif

Requirements
------------

Linux users may need to install libncurses5-dev before using Tox. If you see an error "ImportError: No module named '_curses'" this is because of the Requirement.

Usage
-----

To install, run 

.. code-block:: bash

    pip install retox

Then from any project that has a `tox.ini` file setup and using tox, you can simply run

.. code-block:: bash

    retox 

This will start the service, from where you can press (b) to rebuild on demand.

Watching folders
----------------

Retox can watch one or many directories for file changes and re-run the tox environments when changes are detected

.. code-block:: bash

    retox -w my_project_folder -w my_test_folder

Excluding paths
---------------

Retox will ignore files matching a given regex:

.. code-block:: bash

    retox -w my_project_folder --exclude='.*\.(swp|pyc)$'

Tox support
-----------

Any tox arguments can be given to the command, and using --help to get a full list of commands. Tox arguments will be passed to all virtualenvs

.. code-block:: bash

    retox -e py27,py36

multicore configuration
-----------------------

The number of concurrent processes in the threadpool can be set using the -n parameter.
By default this will be equal to the number of CPU's on the OS. If you want to expand or throttle this, use the
flag to change the size of the threadpool.

.. code-block:: bash

    retox -n 4

Logging
-------

2 files will be created - .retox.log, which is a file for all runs of the logs for the virtual environments. This can be handy to tail to see live output
.retox.json - a JSON file with the virtualenv tasks and specific command output.

Credits
-------

This was inspired by the detox project, which was created by the tox development team. I worked and then significantly changed the way it works
to support re-running environments with ease.