semvec/pypi-packages huggingface dataset:
pyroredis 0.1.1
Redis backend for Pyrogram session storage
License: MIT
Requires Python: ~=3.4
Keywords: telegram pyrogram session sessions redis

Telethon Redis session
===========================

A `Pyrogram`_ session storage implementation backed by Redis.

Note: The hooks will not work until `Pyrogram`_ merge `#6b37046`_ or use patched `my pyrogram patched version`_.

.. _Pyrogram: https://github.com/pyrogram/pyrogram
.. _my pyrogram patched version: https://github.com/ezdev128/pyrogram
.. _#6b37046: https://github.com/pyrogram/pyrogram/commit/6b37046254d79274ab589d9a80ff166429e3dc67

Usage
-----
This session implementation can store multiple Sessions in the same key hive.



Installing
----------

    .. code-block:: sh

        pip3 install pyroredis


Upgrading
----------

    .. code-block:: sh

        pip3 install -U pyroredis


Quick start
-----------
    .. code-block:: python

        from pyrogram import Client
        from pyroredis import RedisSession
        import redis

        # These example values won't work. You must get your own api_id and
        # api_hash from https://my.telegram.org, under API Development.
        api_key = 12345
        api_hash = '0123456789abcdef0123456789abcdef'
        session_name = "798xxxxxxx7"

        redis_connector = redis.Redis(host='localhost', port=6379, db=0, decode_responses=False)
        redis_session = RedisSession(redis_connector)
        client = Client(session_name=session_name, api_key=(api_key, api_hash))
        client.load_session_hook = redis_session.load_session
        client.save_session_hook = redis_session.save_session
        client.start()
doit-redis 0.1
Redis backend for doit
License: MIT
Requires Python: >=3.5
Keywords: doit

# Redis backend for [doit](https://github.com/pydoit/doit).

This plugin for [doit](https://github.com/pydoit/doit) add a new `redis`
backend, using the [redis-py](https://github.com/andymccurdy/redis-py) client.

This allows to have a more suitable backend for multi-processing, and it even
allows to run multiple doit processes in parallel.

Install:
```
$ pip install doit-redis
```

Usage:
```
DOIT_CONFIG = {
    'backend': 'redis',
    'dep_file': 'redis://[:password]@localhost:6379/0',  # optional
}
```
doit-report 0.1
Show ASCII or HTML report for doit task execution status
License: MIT
Requires Python: >=3.5
Keywords: doit

# Report command for [doit](https://github.com/pydoit/doit).

This plugin for [doit](https://github.com/pydoit/doit) add a new `report`
command, which shows an ASCII or HTML report with the task execution status.

Install:
```
$ pip install doit-report
```

Usage:
```
$ doit report
$ doit report --html=out.html
```

This plugin uses [Astropy](https://github.com/astropy/astropy/)'s
[Table](http://docs.astropy.org/en/latest/table/index.html) class to create
a table and print it either to the console in ASCII format or to an HTML page.
Astropy is an heavy dependency (it requires Numpy) for this small plugin, but it
was the easiest way to go for now and I didn't find similar features in
a lighter package.

Note that doit does not save the execution status after each task ends, but only
when `doit run` exits. This is an issue for long-running tasks, and would need
either something like [#228](https://github.com/pydoit/doit/pull/228) or a better
backend.

Example console output:

![console output](https://user-images.githubusercontent.com/311639/34677091-4be1ae52-f48f-11e7-83c7-94d259193176.png)

And HTML:

![HTML output](https://user-images.githubusercontent.com/311639/34677129-69749560-f48f-11e7-96bf-d9f3e994eb04.png)