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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: unirule-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 d289d7294f56d06fee42b578412135e9fd8443333c625ebaa8d8af6207d9bebc
MD5 857bda214a25a6d2c0632ea0c129c1dc
BLAKE2b-256 e376754fcaa326c039b08f00773bea1b371859a0cdb9264f5be525533e6aaea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unirule-0.2.1-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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a00feabb90ff549f25b8422254d320db5f9f8394b5044f4d6a5ab6f512069f1
MD5 bb465b82aa80f3bc11d2deba4d5e075a
BLAKE2b-256 de7ae16c59c8c2ccaa1237e04f656ded4e2cf7da1749326fbb346fb2063173ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page