Installation ============ .. note:: TGBOX library **require** `Python `_ version **3.8 or above**. PyPI (pip) ---------- .. code-block:: console python3 -m pip install tgbox # Pure Python (very slow) python3 -m pip install tgbox[fast] # With C libraries Clone from GitHub ----------------- .. code-block:: console git clone https://github.com/NonProjects/tgbox python3 -m pip install ./tgbox/[fast] Optional dependencies --------------------- - Library can work in a **Pure Python** way, without `cryptography `_, by using `pyaes `_ and `ecdsa `_ only, but this will be **much slower** and **not so secure**. Pure Python is **not recommended** for use, but testing only is OK! - With `FFmpeg `_, library can **make previews** for media files and **extract duration** to attach it to the *RemoteBox File*. To work, it should be in your System ``PATH`` (`see more about PATH `_). We will call it as ``ffmpeg`` (:const:`tgbox.defaults.FFMPEG`) shell command via `subprocess `_. .. note:: The `cryptography `_ project has `wheels `_ for many systems. Big chance that you **will not need to compile a C code**, so always try to install ``tgbox[fast]``.