Django Telethon Session
A Telethon session storage implementation backed for Django ORM to use telethon in django projects.
Tested with:
- Python 3.7+
- Django 2.2+
Use the following command to install using pip:
pip install django-telethon-session
Usage example
Usage is very simple, just follow three simple steps below
Add Django-Telethon-Session to your installed apps
First add django telethon session to your installed apps in your django project settings:
INSTALLED_APPS = [
...,
'django_telethon_session',
...
]
Migrate the database
Then run migrate command to create migrations in database.
python manage.py migrate
Use custom session
Use the session in django_telethon_session.sessions to initialize telegram client:
from django_telethon_session.sessions import DjangoSession
client = TelegramClient(DjangoSession())
Feel free to send pull requests or report issues!
Metadata
Release files for django-telethon-session 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_telethon_session-0.9.tar.gz | 8.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_telethon_session-0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.7 kB
Release files / django_telethon_session-0.9.tar.gz
| Download URL | django_telethon_session-0.9.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa074b7d1e478797dfc5640b3979c2bd36ef2ab3a506b3db47a618a6b766c569
|
|
BLAKE2b-256 checksum How to use checksums |
1103b03dc29763fbfd26c2261845a62a6c24850cefea19401d8bffc31f807f02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Release files / django_telethon_session-0.9-py3-none-any.whl
| Download URL | django_telethon_session-0.9-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a6c2b4e8d1170ad384be1725f8110599aca1601701e3e08063dafdb374de176
|
|
BLAKE2b-256 checksum How to use checksums |
b73c89d3ad50528801d128ff7a72f51e0bcfb0506175aba1e8ffe5688ee5560d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for django-telethon-session 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.