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.4.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.4-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txt2udp-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 cce0cb9cf3aa886ca4b935d5d1994d445e10ef63f5116f9bd4bac56299d08a89
MD5 692661ea4337b8ec21a7ae20fcfbb1dd
BLAKE2b-256 1a52a8db57d968904469070dac7585f5cacf36aba004de8f32f9fae0390c053a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txt2udp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68b7c360058fc65c0358fc6fef2d189f77179a6b6dd83c1bab9b29c74d1125b8
MD5 93bf091d43ee24cb3d9cc2b742b04c7a
BLAKE2b-256 0729674133871516d91a7da393df9aeabe95a3d947a73284038fe8953cdd1ecf

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