Skip to main content

A simple tool for forwarding UDP datagrams through a text-only protocol/interface.

Project description

TXT2UDP

TXT2UDP 是一个简单的工具,用于通过文本协议/接口转发 UDP 数据报。

TXT2UDP is a simple tool for forwarding UDP datagrams through a text-only protocol/interface.

安装 Install

使用以下命令安装 TXT2UDP:

Install TXT2UDP using the following command:

pip install txt2udp

使用 Usage

使用以下命令以默认配置启动 TXT2UDP:

Start TXT2UDP with default configuration using the following command:

txt2udp

或者,您可以通过以下命令以命令行工具的方式使用 TXT2UDP:

Alternatively, you can use TXT2UDP as a command line tool using the following command:

txt2udp-cli --help

配置 Configuration

TXT2UDP 可通过环境变量进行配置,并将自动加载.env文件中的环境变量。

TXT2UDP can be configured using environment variables, and environment variables in a .env file will be automatically loaded.

以下是 TXT2UDP 支持的配置项:

The following are the configuration options supported by TXT2UDP:

# 运行模式 Mode
TXT2UDP_MODE=server # 服务端 Server
#TXT2UDP_MODE=client # 客户端 Client

# 主机和端口 Host and Port
TXT2UDP_HOST=127.0.0.1 # Listen Host for Client, Connect Host for Server
TXT2UDP_PORT=12345 # Listen Port for Client, Connect Port for Server

# 插件及其参数 Plugins and their Arguments
TXT2UDP_PLUGIN=txt2udp.plugins.stdio # Standard I/O Plugin
#TXT2UDP_PLUGIN=txt2udp.plugins.mitm # MitmProxy Plugin
#TXT2UDP_PLUGIN_ARGS="proxy_port=8081" # Arguments for Plugin

# 日志配置 Logging Configuration
TXT2UDP_LOG_DIR=logs # 日志目录 Logging Directory
TXT2UDP_LOG_LEVEL=INFO # 日志级别 Logging Level

插件 Plugins

目前 TXT2UDP 内置了以下插件:

Currently, TXT2UDP has the following built-in plugins:

  • txt2udp.plugins.stdio:标准输入输出插件,用于在终端中输入和输出数据。Stdio plugin for input and output data in the terminal.

  • txt2udp.plugins.mitm:MitmProxy 插件,通过 MitmProxy 截取通过 Websocket 的终端连接。MitmProxy plugin for intercepting terminal connections via Websocket.

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

txt2udp-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

txt2udp-0.1.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file txt2udp-0.1.0.tar.gz.

File metadata

  • Download URL: txt2udp-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for txt2udp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ae3986ce1a19f60996980b54983f7ca22864f9a7e2de65e291e4aabebf2ce2d
MD5 e97020a867f874b07e2c879312913e8c
BLAKE2b-256 9cfbf1ed334e1d23464de1e9d585086718d43dc957db5c2f16878bd144f20823

See more details on using hashes here.

File details

Details for the file txt2udp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: txt2udp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for txt2udp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0caba2de1abd3e11a78beb964677e00cc4ba5c988fe9a060de7e8ac9aedaac64
MD5 7c65252b55082704910208c557e75188
BLAKE2b-256 ab1138e5b3bd9b59215cc6c2e8b97422430a1a8fcd23b79f823f22298e486fcf

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