Mention cryptg as an optional dependency

This commit is contained in:
Lonami Exo 2018-02-17 12:14:23 +01:00
parent d581589313
commit 7c647b57e3
4 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1 @@
cryptg

View File

@ -33,6 +33,13 @@ If you don't have root access, simply pass the ``--user`` flag to the pip
command. If you want to install a specific branch, append ``@branch`` to command. If you want to install a specific branch, append ``@branch`` to
the end of the first install command. the end of the first install command.
By default the library will use a pure Python implementation for encryption,
which can be really slow when uploading or downloading files. If you don't
mind using a C extension, install `cryptg <https://github.com/Lonami/cryptg>`__
via ``pip`` or as an extra:
``pip3 install telethon[cryptg]``
Manual Installation Manual Installation
******************* *******************

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
pyaes
rsa

View File

@ -149,7 +149,10 @@ def main():
'telethon_generator', 'telethon_tests', 'run_tests.py', 'telethon_generator', 'telethon_tests', 'run_tests.py',
'try_telethon.py' 'try_telethon.py'
]), ]),
install_requires=['pyaes', 'rsa'] install_requires=['pyaes', 'rsa'],
extras_require={
'cryptg': ['cryptg']
}
) )