semvec/pypi-packages huggingface dataset:
agua 0.1.1
Compare data in columns with other columns with the help of comparator functions
License: MIT
Keywords: agua,testing,data,csv

|Agua| # Agua

A system that helps you test the coverage and accuracy of your data
applications.

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

.. code:: shell

    pip install agua

Example Usage
=============

.. code:: shell

    cd example
    agua test

.. code:: shell

    Test results for example.csv
            Column: name vs final_name
    Coverage (3/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇   75.00%
    Accuracy (2/3): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇   66.67%

            Column: age vs test_age
    Coverage (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  100.00%
    Accuracy (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  100.00%

            Column: fruit vs test_fruit
    Coverage (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  100.00%
    Accuracy (4/4): ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  100.00%

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

Check out ``example/agua.yml`` for configuration options.

To compare columns, you may use one of the existing comparators or
specify a python path to a callable. Check out ``agua/comparators.py``
for example comparators.

List built-in comparators with,

.. code:: shell

    agua list

Any keyword arguments that need to be passed to the comparator may be
specified with a ``kwargs`` parameter

Graphs are printed with a slightly modified version of
`termgraph <https://github.com/mkaz/termgraph>`__

.. |Agua| image:: ./logo.png?raw=true
statsd-telegraf 3.2.1.post1
A fork of pystatsd package with Telegraf-compatible tag support.
License: MIT

===========================================================
A Python statsd client with Telegraf-compatible tag support
===========================================================

statsd_ is a friendly front-end to Graphite_. This is a Python client
for the statsd daemon. More specifically, this is a fork of jsocol's
pystatsd client, with the addition of support for DogTag-compatible
tags.

:Code:          https://github.com/toddjames/statsd-tags
:License:       MIT; see LICENSE file
:Issues:        https://github.com/toddjames/statsd-tags/issues
:Documentation: https://statsd-tags.readthedocs.io/

Quickly, to use:

.. code-block:: python

    >>> import statsd
    >>> c = statsd.StatsClient('localhost', 8125)
    >>> c.incr('foo')  # Increment the 'foo' counter.
    >>> c.timing('stats.timed', 320)  # Record a 320ms 'stats.timed'.

You can also add a prefix to all your stats:

.. code-block:: python

    >>> import statsd
    >>> c = statsd.StatsClient('localhost', 8125, prefix='foo')
    >>> c.incr('bar')  # Will be 'foo.bar' in statsd/graphite.

DogTag-compatible tags are supported, as well:

.. code-block:: python

    >>> import statsd
    >>> c = statsd.StatsClient('localhost', 8125)
    >>> c.gauge('baz', 42, tags=['production', 'fqdn': 'example.org'])


Installing
==========

The easiest way to install statsd is with pip!

You can install from PyPI::

    $ pip install statsd-tags

Or GitHub::

    $ pip install -e git+https://github.com/toddjames/statsd-tags#egg=statsd

Or from source::

    $ git clone https://github.com/toddjames/statsd-tags
    $ cd statsd-tags
    $ python setup.py install


Docs
====

There are lots of docs in the ``docs/`` directory and on ReadTheDocs_.


.. _statsd: https://github.com/etsy/statsd
.. _Graphite: https://graphite.readthedocs.io/
.. _ReadTheDocs: https://statsd-tags.readthedocs.io/en/latest/index.html
funniesting 0.3
The funniest joke in the world
License: MIT

-------------
This repo is used to demonstrate the python packaging and distribution by using setuptools

python 2 is focused

-------------

Key points:

1. By using the setuptools/setup, python packaging could be performed by editing the 
simple setup.py file. 

To be install the python package, just run:

pip install .    #### to use pip3 in python3 env

or 

pip install -e .

2. Setuptools has easy way to distribute the package via PyPI

python setup.py register       ## used to register on PyPi and upload
python setup.py sdist upload   ## package name should be unique in PyPi

3. Others

MANIFEST.in 
    will include all the files needed (except the source code)
install_requires = [] 
    will specify the dependent packages
entry_points={} 
    will be used for command line script
    the function hooked here will be copied to the system path for calling
scripts=[]
    will be used for command line scirpt as above
    for example, export the bin/joke-scripts to system path for calling
include_package_data=True 
    will enable the copy of other non-sourcecode file during installation
iprir 0.3.0.dev0
Retrieve, store and query information about Regional Internet Registries
License: MIT
Keywords: IP RIR

iprir
=====

Retrieve, store and query information about Regional Internet Registries

|Build_Status| |codecov| |PyPI_Version| |Python_Version|

.. |Build_Status| image:: https://travis-ci.org/account-login/iprir.svg?branch=master
    :target: https://travis-ci.org/account-login/iprir
.. |codecov| image:: https://codecov.io/gh/account-login/iprir/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/account-login/iprir
.. |PyPI_Version| image:: https://badge.fury.io/py/iprir.svg
    :target: https://badge.fury.io/py/iprir
.. |Python_Version| image:: https://img.shields.io/pypi/pyversions/iprir.svg
    :target: https://badge.fury.io/py/iprir

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

.. code-block:: bash

    pip install iprir


Usage
-----

Query by ip:

.. code-block:: python

    >>> import iprir
    >>> from ipaddress import IPv4Address, IPv6Address
    >>> iprir.by_ip(IPv4Address('8.8.8.8'))
    RIRRecord(country='US', type='ipv4', start='8.0.0.0', value='16777216', status='allocated')

Attributes of :code:`RIRRecord`:

.. code-block:: python

    >>> record = iprir.by_ip(IPv4Address('8.8.8.8'))
    >>> record.ipv4
    IPv4Address('8.0.0.0')
    >>> record.ipv4_network
    IPv4Network('8.0.0.0/8')
    >>> record.length
    16777216
    >>> record.as_int
    134217728

Use IpSet:

.. code-block:: python

    >>> us = iprir.by_country('ipv4', 'US')
    >>> IPv4Address('8.8.4.4') in us
    True
    >>> IPv4Address('1.2.3.4') in us
    False
    >>> from iprir.ipset import IpSet
    >>> db = iprir.get_db()
    >>> us_and_ca_v6 = IpSet(db.by_country('ipv6', 'US') + db.by_country('ipv6', 'CA'))
    >>> IPv6Address('2001:4860:4860::8888') in us_and_ca_v6
    True

Update database:

.. code-block:: bash

    # update text db and sqlite db
    python3 -m iprir.updater

    # show more choices
    python3 -m iprir.updater -h