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
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.3.1.tar.gz
(23.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
unirule-0.3.1-py3-none-any.whl
(31.9 kB
view details)
File details
Details for the file unirule-0.3.1.tar.gz.
File metadata
- Download URL: unirule-0.3.1.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e73ae7466da9d9ed0c58183d0ffdce85a1f1abd9dc93997132f04dee52e59f3d
|
|
| MD5 |
5ca080edb89dfb909cbdb113325f9ad1
|
|
| BLAKE2b-256 |
e49cc3debd680d18c500f690c42983b11ad9973252f341bdc9737411e9ab7ba2
|
File details
Details for the file unirule-0.3.1-py3-none-any.whl.
File metadata
- Download URL: unirule-0.3.1-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
288f5eba3b0de9a7a96aed1d616fba693bdf423c871762e6ba702ccbfa0747b3
|
|
| MD5 |
3f3c1d0534c7b781382677d68801c3f0
|
|
| BLAKE2b-256 |
6f3b1f039a0a3945c097b298937099a11b62f6ea2c6ac74114ee5c5465e2d42e
|