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.2.2.tar.gz
(20.6 kB
view details)
Built Distribution
unirule-0.2.2-py3-none-any.whl
(31.9 kB
view details)
File details
Details for the file unirule-0.2.2.tar.gz
.
File metadata
- Download URL: unirule-0.2.2.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 | 69c981837eacf327f49d6e8958201e136e0c86f7ec18947e7edaed7e0e2ca529 |
|
MD5 | c1bf1aee1e48e74770afbae459cc663c |
|
BLAKE2b-256 | b94ee517f39ad4afd8c90f97b5b633f074dd809f1988c15b46d4a4fe0b72ecbe |
File details
Details for the file unirule-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: unirule-0.2.2-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 | ca3f0c038322db95866eb3f5455a5311f9ddae40f76f520864c0f7db546151b8 |
|
MD5 | 2dfdabca887e3577ccfd0db7fcc6ea29 |
|
BLAKE2b-256 | 83240b74339322a22f984d4a8e5eb8582bbe948c1e8efaf382ed59890cff6365 |