Skip to main content

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.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unirule-0.3.0-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file unirule-0.3.0.tar.gz.

File metadata

  • Download URL: unirule-0.3.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

Hashes for unirule-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ddd9fb7f9f2a8d6d37019ec2ff8574ab3adc120e65a68294c345fa3fc08b384
MD5 0725cd1de0de03320fe7ca43746ca931
BLAKE2b-256 44be3d98f2bd8d6f1416c189fc54671f828bc4f507dc75d57a31ccd2d85301de

See more details on using hashes here.

File details

Details for the file unirule-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: unirule-0.3.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

Hashes for unirule-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6376ab3ce87d62af2c5eb05e5bed1f27ab5cf5388b20d1520265104c823acee
MD5 2e5097c91e6e452ff895ed211870972f
BLAKE2b-256 5a0d876f44b1ce36e7457615134d11fc13d93264348fadc4b7e53e734115decd

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