mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 02:43:45 +03:00
Mention cryptg as an optional dependency
This commit is contained in:
parent
d581589313
commit
7c647b57e3
1
optional-requirements.txt
Normal file
1
optional-requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
cryptg
|
|
@ -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
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
pyaes
|
||||||
|
rsa
|
5
setup.py
5
setup.py
|
@ -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']
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user