Mia Herkt 9e997bcbdd PyO3: Build flavor-specific versions
Not doing so would break distro wheels.
2026-04-20 02:15:20 +02:00
2026-04-14 20:40:50 +02:00
2026-04-15 07:17:55 +02:00
2026-04-14 21:33:02 +02:00
2022-02-26 22:06:53 +01:00
2026-04-14 21:33:02 +02:00
2026-04-14 21:33:02 +02:00
2026-04-14 20:40:50 +02:00

python-adblock

Python wrapper for Brave's adblocking library, which is written in Rust.

Building from source

Build dependencies

Build Dependency Versions Arch Linux Url
Python >=3.7 python -
Rust >=1.56 rust -
Maturin >=0.10 maturin https://github.com/PyO3/maturin

PEP 517

The python-adblock library is PEP 517 compatible, so you can build and install it from source, simply by running

pip install .

from the root of this directory.

Wheels

To create a wheel for this library, run the following command

maturin build --release --no-sdist --out dist/

the result can be found in the dist/ directory.

Developing

I use Poetry for development. To create and enter a virtual environment, do

poetry install
poetry shell

then, to install the adblock module into the virtual environment, do

maturin develop

Documentation

Rust documentation for the latest master branch can be found at https://arnidagur.github.io/python-adblock/docs/adblock/index.html.

License

This project is licensed under either of

at your option.

Description
Brave's adblock library in Python. This repository is used for openSUSE’s package while upstream is unresponsive.
Readme 38 MiB
Languages
Rust 59.5%
Python 38.8%
HTML 1.2%
Shell 0.5%