Rule converter for proxy platforms.
Project description
unirule
Rule converter for proxy platforms.
unirule supports rules in text formats only. For binary formats, we recommend MetaCubeX/geo.
Install
unirule requires Python >= 3.10 .
pip install unirule
Usage
unirule -h
usage: unirule [-h] -i {singbox,dlc,meta-domain-yaml,meta-domain-text,meta-ipcidr-yaml,meta-ipcidr-text,adguard-dns,adguard-dns-multiout} -o
{singbox,dlc,meta-domain-yaml,meta-domain-text,meta-ipcidr-yaml,meta-ipcidr-text} [-p]
input_path output_path
positional arguments:
input_path "stdin" or path to the input file
output_path "stdout" or path to the output file
options:
-h, --help show this help message and exit
-i {singbox,dlc,meta-domain-yaml,meta-domain-text,meta-ipcidr-yaml,meta-ipcidr-text,adguard-dns,adguard-dns-multiout}, --input-type {singbox,dlc,meta-domain-yaml,meta-domain-text,meta-ipcidr-yaml,meta-ipcidr-text,adguard-dns,adguard-dns-multiout}
type of the input file
-o {singbox,dlc,meta-domain-yaml,meta-domain-text,meta-ipcidr-yaml,meta-ipcidr-text}, --output-type {singbox,dlc,meta-domain-yaml,meta-domain-text,meta-ipcidr-yaml,meta-ipcidr-text}
type of the output file
-p, --pedantic mark all warnings as errors
Develop
This project uses Rye.
git clone https://github.com/TargetLocked/unirule.git
cd unirule
rye sync
For more information, please refer to the manual of Rye.
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
unirule-0.2.0.tar.gz
(20.6 kB
view details)
Built Distribution
unirule-0.2.0-py3-none-any.whl
(31.9 kB
view details)
File details
Details for the file unirule-0.2.0.tar.gz
.
File metadata
- Download URL: unirule-0.2.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ceae9a1f095dd33b9fea10ad9ab4d9d5c105757e85912b7a2304134e0de410 |
|
MD5 | 8e9046649e3fe1609394481f8c0cc91d |
|
BLAKE2b-256 | dff9771cf852fb2fc1c4cc9b0d98e05fd9ff097d08324460156225b51df6f5e6 |
File details
Details for the file unirule-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: unirule-0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 785bce9f9060533ab11e914ceebfaccaf12b58efd34d4580bb9faec46f464c32 |
|
MD5 | 2dc8e122065e88ec2cfe5c20b688d2b2 |
|
BLAKE2b-256 | d6880a4642aae276526045ea52a09f6c8740192c31fd93aec879b4401dfa3a4a |