Skip to main content

Terminal UI manager for telemt on Debian, Ubuntu, Fedora, and Arch Linux

Project description

mtp-manager

Minimal terminal UI for managing telemt on Debian, Ubuntu, Fedora, and Arch Linux

PyPI Python 3.11+ Textual TUI telemt backend

Debian, Ubuntu, Fedora, or Arch Linux

English UI Russian UI Chinese UI

mtp-manager screenshot

Overview

mtp-manager is a lightweight TUI for installing, configuring, and operating a telemt-based MTProto proxy with Fake TLS support. It is designed for small VPS setups where a compact workflow matters more than a large control panel.

Highlights

  • install and update telemt
  • install a specific tag or commit
  • manage users and secrets
  • export raw, dd, and ee links
  • inspect service status and logs
  • run cleanup tasks for logs, cache, and runtime artifacts
  • switch the interface between English, Russian, and Chinese

Request Flow

The diagram below shows the high-level path of an MTProto message when telemt is used as the proxy layer with Fake TLS enabled.

mtproto arch

Installation

From PyPI

Install the latest published version from PyPI:

python3 -m pip install mtp-manager

Run the application:

mtp-manager

mtp-manager performs system-level operations such as service management, firewall updates, and cleanup tasks, so it is typically expected to run with root privileges.

From source

Clone the repository and use the bootstrap script:

source setup.sh
mtp-manager

setup.sh is meant to be sourced from bash or zsh. It prepares .venv, installs the project in editable mode, validates the entrypoint, and activates the environment in the current shell.

Requirements

  • Python 3.11+
  • Debian, Ubuntu, Fedora, or Arch Linux
  • systemd
  • root privileges for install, service, firewall, and cleanup operations

Project Layout

Path Purpose
src/app.py CLI entrypoint and internal service commands
src/bootstrap.py Dependency wiring and startup migration glue
src/controller.py Application actions used by the TUI
src/infra/ shell, locale, storage, firewall, public IP, systemd
src/models/ typed domain models
src/services/ install, runtime, diagnostics, cleanup, inventory
src/ui/backend.py UI backend abstraction used by the app entrypoint
src/ui/textual_app.py main TUI orchestration
src/ui/modals.py modal screens and shared popup UI
src/ui/dashboard.py dashboard rendering and host metrics
src/ui/actions.py action definitions and menu helpers
src/ui/lists.py sections, users, and secrets list helpers
src/i18n/ English, Russian, and Chinese catalogs

Managed Paths

Path Purpose
/etc/mtp-manager managed config directory
/var/lib/mtp-manager app data
/opt/telemt installed telemt binary
/etc/systemd/system/telemt.service main service unit
/etc/systemd/system/telemt-config-refresh.* config refresh service and timer
/etc/systemd/system/mtp-manager-cleanup.* cleanup service and timer

Notes

  • shell execution is routed through the infra layer
  • generated files are written atomically
  • managed systemd units invoke the installed mtp-manager entrypoint
  • migration logic for older mtproxy layouts is included

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

mtp_manager-1.0.0.tar.gz (75.5 kB view details)

Uploaded Source

Built Distribution

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

mtp_manager-1.0.0-py3-none-any.whl (88.3 kB view details)

Uploaded Python 3

File details

Details for the file mtp_manager-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for mtp_manager-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1610a3d564fa8ac695891eefda13c0053c21362fab759a87ef1fd8813f4807dc
MD5 20786b63fef920411572556cec7b007d
BLAKE2b-256 6af11ac93315e44e464a9eea54b5e9261e09372965869fb813b94797b8c3f3fe

See more details on using hashes here.

File details

Details for the file mtp_manager-1.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mtp_manager-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b11a646129c20d7c2582d5cf1574a1940c33cf4cd691c978dbe9959d19aa017
MD5 efe8b08988c906f2ee9b8328d7d7495c
BLAKE2b-256 8c9e908bf854c99764bb06ad3a4ff2fc9118354cc6782c8d8d5dd05027be9d87

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