Skip to main content

A Command Line Interface to the TGBOX

Project description

A Command Line Interface to the TGBOX

This is a CLI implementation of the TGBOX — an encrypted cloud storage built around the Telegram.

TGBOX-CLI supports all features of the tgbox protocol, adding additional ones
like basic Encrypted Chat and support for unlimited file size (4GB+) uploads.

List of the TGBOX-CLI commands

Installation

Install with PIP

If you have Python 3 on your machine, you can install latest stable release of the tgbox-cli from PyPI:

# Drop [fast] to obtain *slow*, pure-Python build
pip install -U tgbox-cli[fast]

Clone & Install

Alternatively, you can clone this repository and install from the source. This may give you more control over the code:

python -m venv tgbox-cli-env
cd tgbox-cli-env && . bin/activate

git clone https://github.com/NotStatilko/tgbox-cli
pip install ./tgbox-cli[fast]

Builds

We provide GitHub actions repository designed specifically to build the tgbox-cli executables. You
can either get your builds there, or consult the Manual Build chapter.

Manual Build

To build tgbox-cli, you need to have at least Python 3.9 installed on your machine. It is not required, but we use FFmpeg to make previews and extract duration of media files. If you want your executable to support these features, — you should download ffmpeg executable and place it in specific directory before build. We have GitHub Actions repository that is created specifically for building the minimal FFmpeg executables. You can either use them (recommended), or download a build for your machine from official FFMpeg website.

python -m venv tgbox-cli-env
cd tgbox-cli-env && . bin/activate

pip install pyinstaller

git clone https://github.com/NonProjects/tgbox
cd tgbox/tgbox/other # Place ffmpeg executable here

cd ../../.. # Move back

git clone https://github.com/NotStatilko/tgbox-cli
pip install ./tgbox-cli

pip install ./tgbox[fast]

cd tgbox-cli/pyinstaller
pyinstaller tgbox_cli.spec

# Run the executable and show info
dist/tgbox-cli cli-info 

Please note that You can also set TGBOX_CLI_NON_ONEFILE env variable to build without packing
into one executable file. You can freely remove the tgbox-cli-env folder after build is complete.

Usage

TGBOX-CLI is your typical Command-Line application. You can run it just by typing executable name in Terminal:

tgbox-cli

This should return you a list of commands. The help command will give you a full course over TGBOX-CLI.
Use it (as well as --help option on every command) if you don't know anything about this application:

tgbox-cli help

Bug reports

Feel free to report some bugs (I believe there can be many) on the GitHub Issue tab. Any encountered error should be written to the logfile. Use the logfile-open command and attach its contents to the bug report (make sure nothing private is in there).

Thanks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgbox_cli-1.6.0.tar.gz (102.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgbox_cli-1.6.0-py3-none-any.whl (135.7 kB view details)

Uploaded Python 3

File details

Details for the file tgbox_cli-1.6.0.tar.gz.

File metadata

  • Download URL: tgbox_cli-1.6.0.tar.gz
  • Upload date:
  • Size: 102.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tgbox_cli-1.6.0.tar.gz
Algorithm Hash digest
SHA256 2b79cfc03ac4b5b26d32cfc37cd756781f2939e45cd28ed9aa4d7cf47a22d8d8
MD5 31bd8e377fee0b96c94d5b6efb653c07
BLAKE2b-256 298b1d13d3140dee83e342a91ea448e0507e74c4a07910a703cbe6cb7db6437e

See more details on using hashes here.

File details

Details for the file tgbox_cli-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: tgbox_cli-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 135.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tgbox_cli-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee48c274f1c3611384a60ab714f2c6aa9e07dbce72cefda43c59bae39eca5a75
MD5 28886cbd156e070c93cdc1fc0e822f60
BLAKE2b-256 a16b3153b7b044f163928105bab8f1d74d92f67d845b5b52744c33146ea9e182

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page