semvec/pypi-packages huggingface dataset:
matterbabble 1.0.1
Connect Discourse threads to Matterbridge.

============
Matterbabble
============

Matterbabble is an API client for Discourse_ and Matterbridge_.  It
mirrors Discourse posts in a topic to Matterbridge messages on a
gateway, and vice versa.  It works well with the `Discourse Babble`_
plugin, which formats a thread as a chat room.

.. _Discourse: https://discourse.org/
.. _Matterbridge: https://github.com/42wim/matterbridge
.. _Discourse Babble: https://discourse-babble.com/

Installation and Usage
----------------------

To install, execute::

	pip install matterbabble

To run, execute::

	python -m matterbabble CONFIGPATH

providing the path to a Matterbabble configuration file as described
below.

Configuration
-------------

Matterbabble is configured with a ``configparser`` INI file.

Example::

	[discourse]
	address = https://forum.bitphoenixsoftware.com/
	username = matterbridge
	token = 0dwdmaddzludwvntpg7gss6dxdem7byemre3krw86k60n39vn1ni7wganakpzjd0
	fmt = {username}: {message}

	[matterbridge]
	address = http://127.0.0.1:4242/
	token = oTUaGHctYYve28nYNMzLZszJvT1RD3kXLlZwPLULEaTFMRrGyvFzdvOdpsuQYFEhD84qL9PP5FJvGFOsQINESs1keaLO8SnvQNHHM6wq41mwHVX0NNKaBXD5uDaDhZ4p

	[connections]
	lounge = /babble/topics/68

	[logging]
	level = INFO

discourse
~~~~~~~~~

The ``discourse`` section must contain an address and API key for a
Discourse forum, and the username of the user you want the client to run
as.  You can also change the format used for messages going to Discourse
(the ``fmt`` key is optional).

matterbridge
~~~~~~~~~~~~

The ``matterbridge`` section must contain the ``BindAddress`` of a
`Matterbridge API`_ instance.  If you added a ``Token`` to the API,
you must also include that here.

connections
~~~~~~~~~~~

The ``connections`` section maps Matterbridge gateways to Discourse
topics.  The ID of a topic is the last component of the URL after you
navigate to it on Discourse, and the correct format is ``/topics/{id}``.
You can find a Babble chat room's ID by clicking on it in the admin
chat manager.  The format for those is ``/babble/topics/{id}``.

logging
~~~~~~~

The optional ``logging`` section can contain ``basicConfig`` options
for ``logging`` in Matterbabble.  You can set ``level`` to ``INFO`` to
log raw objects sent through Matterbabble to ``stderr``.

.. _Matterbridge API: https://github.com/42wim/matterbridge/wiki/Api

Caveat Emptor
-------------

Inline images in the Discourse post are currently replaced with links
before being sent to the gateway because they generally aren't
supported by chat rooms.  Maybe there will be a better solution to this
problem in future.

Copyright
---------

Copyright 2019 Declan Hoare

Licensed under Apache License 2.0.
NO WARRANTY
remotsylib 0.0.2
A Remotsy python lib for use the Restfull API
Keywords: Remotsy infrared remote control smarthome

Remotsy python library |Build Status| |Codacy Badge|
====================================================

`Remotsy <https://www.remotsy.com>`_ is an infrared blaster device, is cloud controlled,
this a Python library to control the Remotsy device via Rest API.

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

  $ pip install remotsylib

Example
========

.. code-block:: python

    from remotsylib.api import API

    if __name__ == "__main__":

        client = API()

        #Do the login and get the token
        token = client.login(args.username, args.password)

        #Get the list of the controls
        lst_ctl = client.list_controls()
        for ctl in lst_ctl:
            print "id %s Name %s" % (ctl["_id"], ctl['name'])


Authentication
==============

You can use your remotsy username and password, but for security is recomended to generate
a application password, logon in https://home.remotsy.com and use the option App Passwords.


Documentation API
-----------------

The API documentation and links to additional resources are available at
https://www.remotsy.com/help


.. |Build Status| image:: https://travis-ci.org/jorgecis/RemotsyLib.svg?branch=master
   :target: https://travis-ci.org/jorgecis/RemotsyLib
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/79fb3255b464442983bb5b6b6fdecd98
   :target: https://app.codacy.com/app/jorgecis/RemotsyLib?utm_source=github.com&utm_medium=referral&utm_content=jorgecis/RemotsyLib&utm_campaign=Badge_Grade_Settings
python-proxy-utils 0.1.0
Python Proxy Utils

# Python Proxy Utils

A set of python 3 utils to help with web scraping. Currently only a free
proxy utility is implemented. It can be used as a proxy rotator or however
you like.

## Install

```bash
pip install python-proxy-utils
```

## ProxyHelper Example Usage

When the class is initialised it scrapes a list of free proxies from a
number of free proxy list websites concurrently using aiohttp.


```python
>>> from proxy_utils import ProxyHelper
>>> p = ProxyHelper()
>>> p.get_count()
13224
>>> p.get_random()
'http://103.9.188.143:56368'
>>>
>>> import requests
>>> random_proxy = p.get_random()
>>> proxies = {'http': random_proxy, 'https': random_proxy}
>>> r = requests.get('http://example.com', proxies=proxies)
```

### Free Proxy Lists Used

This class currently uses the below free lists. At the time of writing
this these lists usually produced around 13,000 proxies.

- proxy-list.download
- free-proxy-list.net

## Todo
- Testing
- Add ProxyHelper method that returns the proxies in the format requests wants it in
- Add more free proxy lists
- Add a clean method to the proxy helper to remove bad proxies
- Add a UserAgentHelper

## Author
Jeremy Storer <storerjeremy@gmail.com>