semvec/pypi-packages huggingface dataset:
github4.py 2.0.0
Python wrapper for the GitHub API
License: MIT
Requires Python: >=3.7.0,<4.0.0

github4.py
==========

|PyPI| |Python Version| |License|

|Read the Docs| |Tests| |Codecov|

|pre-commit| |Black|

.. |PyPI| image:: https://img.shields.io/pypi/v/github4.py.svg
   :target: https://pypi.org/project/github4.py/
   :alt: PyPI
.. |Python Version| image:: https://img.shields.io/pypi/pyversions/github4.py
   :target: https://pypi.org/project/github4.py
   :alt: Python Version
.. |License| image:: https://img.shields.io/pypi/l/github4.py
   :target: https://opensource.org/licenses/MIT
   :alt: License
.. |Read the Docs| image:: https://img.shields.io/readthedocs/github4/latest.svg?label=Read%20the%20Docs
   :target: https://github4.readthedocs.io/
   :alt: Read the documentation at https://github4.readthedocs.io/
.. |Tests| image:: https://github.com/staticdev/github4.py/workflows/Tests/badge.svg
   :target: https://github.com/staticdev/github4.py/actions?workflow=Tests
   :alt: Tests
.. |Codecov| image:: https://codecov.io/gh/staticdev/github4.py/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/staticdev/github4.py
   :alt: Codecov
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Black


github4.py an actively developed wrapper around the GitHub API that forks github3.py_.

Note: This library currently works with Python 3.7+ or pypy3. For older versions, please use github3.py_ version 1.3.0.

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

You can install *github4.py* via pip_ from PyPI_:

.. code:: console

   $ pip install github4.py

Dependencies
------------

- dateutil_
- requests_
- uritemplate_

.. _dateutil: https://github.com/dateutil/dateutil
.. _requests: https://github.com/kennethreitz/requests
.. _uritemplate: https://github.com/sigmavirus24/uritemplate

Contributing
------------

Contributions are very welcome.
To learn more, see the `Contributor Guide`_.

License
-------

Distributed under the terms of the MIT_ license,
*github4.py* is free and open source software.

Issues
------

If you encounter any problems,
please `file an issue`_ along with a detailed description.

Credits
-------

Original author of github3.py_ is Ian Stapleton Cordasco (sigmavirus24_).

.. _sigmavirus24: https://github.com/sigmavirus24
.. _github3.py: http://stackoverflow.com/questions/tagged/github3.py
.. _MIT: http://opensource.org/licenses/MIT
.. _PyPI: https://pypi.org/
.. _file an issue: https://github.com/staticdev/github4.py/issues
.. _pip: https://pip.pypa.io/
.. _Contributor Guide: CONTRIBUTING.rst
iot.io-client 0.4.12
A client library designed for connecting to a iot.io server instance.
License: MIT
Requires Python: >=3.7

# iot.io Client
### iot.io Overview
This project aims to create a lightweight and intuitive system for connecting
IoT devices to a central server for small IoT system implementations and hobbyists.

The framework focuses on providing easy to use system of libraries so the end user does
not need to understand the protocol implementation, though this also is fairly simple.

The format of the framework is somewhat reminiscent of [Socket.IO](https://socket.io/) 
where handlers functions are defined and executed and run as events are triggered.


### Quickstart Guide (Client)
This is an example of a simple IoTClient instance which connects to a server accepting
"echo" clients ping the server every 5 seconds with a message and print the server's response.

```python
from iotio_client import IoTClient
import threading
import time

# create client
client = IoTClient("echo_test_client", "echo")


# define a handler for "echo_response" events
@client.on("echo_response")
def echo(data):
    print("'echo_response' from Server: '" + str(data) + "'\n")


def send():
    client.ensure_open()

    # loop while client is connected
    while client.connected:
        message = input("Enter a value to send to the server: ")

        # send message over the echo channel
        client.send("echo", message)
        print("")
        time.sleep(1)


# start background send task
send_thread = threading.Thread(None, send)
send_thread.start()

# connect client
client.run("localhost:5000", use_tls=False)
send_thread.join()
```

If you would like to see the matching quick-start guide for an example
server go [here](https://github.com/dylancrockett/iot.io).