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.2.tar.gz (13.1 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.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txt2udp-0.1.2.tar.gz
  • Upload date:
  • Size: 13.1 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.2.tar.gz
Algorithm Hash digest
SHA256 7f848a1cd669b355e0fd5385e71144937930a382cf8e92ad45699e7673d14cff
MD5 3f32b2ea99062c9ca2c369dbc0a585ab
BLAKE2b-256 7a8985c3672432fddaddebd0a5847f2eca2259a13e429b9ae7ff36051ce051c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txt2udp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c0245391037aab9bbf6d1f51bc3244588ab24fb04906442480512d8de772b6
MD5 b785bc938a771b83c13d9ee3ebdb8cda
BLAKE2b-256 37e968cd05d4fba61c1363bd92d6c7ab0c6754f03e269c9a608f1fd4ff558490

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