Redis backend for Telethon session storage
Project description
A Telethon session storage implementation backed by Redis.
Usage
This session implementation can store multiple Sessions in the same key hive.
Installing
pip3 install teleredis
Upgrading
pip3 install -U teleredis
Quick start
from telethon import TelegramClient from teleredis 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_id = 12345 api_hash = '0123456789abcdef0123456789abcdef' redis_connector = redis.Redis(host='localhost', port=6379, db=0, decode_responses=False) session = RedisSession('session_name', redis_connector) client = TelegramClient(session, api_id, api_hash) client.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
teleredis-0.1.3.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file teleredis-0.1.3.tar.gz.
File metadata
- Download URL: teleredis-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95e27569ed73dfb2a6ba7a13fa492dc2004b396c0f8511fedee380f1e3a95ea
|
|
| MD5 |
01a190bb344f6cbe49414b8957e14812
|
|
| BLAKE2b-256 |
446e0609adc7dbb62aab03f00f70759369b76711b07151d190730c06fcd62a8a
|
File details
Details for the file teleredis-0.1.3-py3-none-any.whl.
File metadata
- Download URL: teleredis-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dedbc43d3032953285af9635292d8762986470653e9c14993c5da3ac63d4fb2f
|
|
| MD5 |
5f392dcc461915d27fc58234591e6f3e
|
|
| BLAKE2b-256 |
58563008926aab3ae3e816b2c25895f28666d694e74d846457e7ec17913924c8
|