semvec/pypi-packages huggingface dataset:
dhtcplib 0.2.1
A simple TCP client/server framework
License: MIT


Dhtcplib
--------

dhtcplib makes threaded TCP servers and connections to servers really easy.

```````````````

::

from time import sleep
from dhtcplib import dhtcp

'''
	Start the server
'''
class MyHandlerClass:
    def handle(data):
        print("Handler got data: ", data)
        return(data)

# Using a defined class with a 'handle' method to route requests 
my_serv = dhtcp("127.0.0.1", 9000, RouterClass=MyHandlerClass)
my_serv.start()

try:
    while True:
        print("Do something in your main thread while the server slaves away!")
        sleep(5)

except KeyboardInterrupt:

    '''
        Shutdown the server
    '''
    my_serv.kill()


And Easy to Install
```````````````````

::

    $ pip3 install dhtcplib
pytest-Inomaly 0.2.5
A simple image diff plugin for pytest
License: MIT

pytest-Inomaly
===================================

[![Build Status](https://ci.digitaloctave.com/api/badges/oly/pytest-inomaly/status.svg)](https://ci.digitaloctave.com/oly/pytest-inomaly)

A simple image diff plugin for pytest currently provides two new methods, use full for testing image related code and making sure the results do not change unexpectedly.

 - pytest.idiff - returns true or false 
 - pytest.idiff_variance - returns the difference between the two images
     
     
Requirements
------------
Requires scipy and pytest to calculate the differences.

 - scipy
 - pytest


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

You can install "pytest-Inomaly" via `pip`_ from `PyPI`_::

    $ pip install pytest-Inomaly


Usage
-----


Assert images are identical.

    assert idiff(path_to_first_image, path_to_second_image) is True

Assert images are almost identical, allow some variation for anti aliasing or similar.

    assert idiff(path_to_first_image, path_to_second_image, tolerance=0.1) is True

Same as the above two method but will return the difference as a value instead of true or false.

    assert idiff_tolerance(path_to_first_image, path_to_second_image, tolerance=0.1) == 3.14


Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the `MIT`_ license, "pytest-Inomaly" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.
prequest 1.0.0
Light wrapper around the requests library that facilitates data backup to a configurable data source.
License: MIT

prequest
========

.. image:: https://travis-ci.org/Data-Mechanics/prequest.svg?branch=master
    :target: https://travis-ci.org/Data-Mechanics/prequest

Light wrapper around the ``requests`` library that facilitates data backup to a configurable data source.

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

``prequest`` can be installed using ``pip``::

    $ pip install prequest

Usage
=====

To make a GET request::

    import prequest
    resp = prequest.get('https://your_url.com')