A fast and easy adblockplus parser and matcher based on adblock-rust package
Project description
A fast and easy adblockplus parser and matcher based on adblock-rust package
Table of Contents
About The Project
This library is a Python binding to the adblock-rust library that was written by Brave's browser team. The binding uses pyo3 to interact with the rust package.
Built With
Installation
pip3 install braveblock
Usage
import braveblock
# Initialize the engine loaded with a rules list
# One can download easylist and load its lines into the engine
braveblock.Adblocker(
rules=[
"-advertisement-icon.",
"-advertisement/script.",
]
)
# This function checks whether the specified url should be blocked
adblocker.check_network_urls(
url="http://example.com/-advertisement-icon.",
source_url="http://example.com/helloworld",
request_type="image",
)
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Gal Ben David - gal@intsights.com
Project Link: https://github.com/intsights/Braveblock
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file braveblock-0.5.1-cp311-none-win_amd64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp311-none-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8182a0b629a0cce7d00fca04d8a43fb50cf39d8c32409f23ebf27a4c65c0278f |
|
MD5 | a8c82640b807984271dcd50399560166 |
|
BLAKE2b-256 | dbfecdc7a956e1bd2633501234f577379a81b2e7140cf6d2f2a46f3a2a33d9c6 |
File details
Details for the file braveblock-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d464154214f2bc2053c2406d3f8e1b42f047da578eb838b331d8b946682b9945 |
|
MD5 | df0e5152e1f0611551eba76f8fd4d3dd |
|
BLAKE2b-256 | 9624a022dfa65731c364d2a972755ee5af6b79c79cef1a4e5207f965ada93360 |
File details
Details for the file braveblock-0.5.1-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70feae35ee255cc4e188e3de4cd8c9a30394b071aeceb06d9a54890957300914 |
|
MD5 | e0ee3b6d1e41326f47a05a55c2e28f6a |
|
BLAKE2b-256 | 9290412c1060396f696dee4cf3e3c15cefbca816d67d63c7edb2c8a83162b7d4 |
File details
Details for the file braveblock-0.5.1-cp311-cp311-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp311-cp311-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a90251b73ff0160bfc0dee0655b02179eaf8689af72eecf44a138a677229d8 |
|
MD5 | 4fca34940d28e438ddb0f8aa6b318013 |
|
BLAKE2b-256 | c63ca35f412df2f6cfaf81c9e36685bcd54cab31bd264d06e8efad356efa3458 |
File details
Details for the file braveblock-0.5.1-cp310-none-win_amd64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp310-none-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8460d20ba71e20d8d9dd1ea7dd6becb010697d493551c8c9e05a81175461a21 |
|
MD5 | 3d7df3116a821c621ef84aaf2f56350a |
|
BLAKE2b-256 | 441d06c43c29590a863ec50a78915982f02c4ec49451ee7af63518eef62f5f83 |
File details
Details for the file braveblock-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4f22aacdeb907d338db663b3709ef120bd703621ce25450de48d182c3ad5e8 |
|
MD5 | 738035db0e8bce89d1d41c4f459ff8e5 |
|
BLAKE2b-256 | 253182c8f4b4a6ed003d11ac5592b6af4d4144d80ce989b59dfe69c903d6ba39 |
File details
Details for the file braveblock-0.5.1-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d39105c9c60ff3ba7375c3237ca589f2f5de75333c032f29db7189d5b5fe282 |
|
MD5 | 010bcc8f2833120dc6fe4f9bf7f8a9d1 |
|
BLAKE2b-256 | 94296b34a86c81d0d131808815a83315372943e55ccc1bb3385761914d51ae5f |
File details
Details for the file braveblock-0.5.1-cp310-cp310-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp310-cp310-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d576b0936fdc7c5390fbca744fb25626ef58f56b8d4eb63c5ddfd2e6c77e1074 |
|
MD5 | cc1a73a34920852bea3be4d96ec8754d |
|
BLAKE2b-256 | 52686d919be681dcc1082b7ba413caae795ed5a25f84296c048e1d657d2c4c49 |
File details
Details for the file braveblock-0.5.1-cp39-none-win_amd64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp39-none-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd3d3c8805c8618dc6de5ed30acb0d71007203474580d2a81b525d1ef8e25ea |
|
MD5 | df02e8d706c2e43307d11943c068bd6b |
|
BLAKE2b-256 | df63724ffe1d97c6316992fe3ce7ea358bffcec0323ca00c77dcbfc5779a4eab |
File details
Details for the file braveblock-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4287281f6df15baad7ef8d06bf46a3d315f5bdd8e897a1c56ef8b48b594486 |
|
MD5 | d1192f3d04b68393b0a9c5a5164f01f8 |
|
BLAKE2b-256 | 82a504f11f692705613de0fb8d215f33cb3cfda9e8ef49d951ff5bb976a30e57 |
File details
Details for the file braveblock-0.5.1-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 093ada56bf80c2391972636056199a23de50b57475607df98f36017575c7feba |
|
MD5 | d3e9526ef438db0beea2026020e5e143 |
|
BLAKE2b-256 | 54c632877ae62069e975c467f2a262ac16157b23a6bc4a6d6e99fe37acfbcb84 |
File details
Details for the file braveblock-0.5.1-cp39-cp39-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b63f0bdc4b97c4be2317554a6141c1bd35bc995612bad4fec11f02e7263a5f19 |
|
MD5 | 609244ece07233f401bfc1eb927f4623 |
|
BLAKE2b-256 | 66acba153a72a6dbed1bf76588a86bab6bf24dcb8f46a5a2014dbc52b945b353 |
File details
Details for the file braveblock-0.5.1-cp38-none-win_amd64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp38-none-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba8e4886679e68134076b8d0734348363a23071a26e1b4dda9cc4dd7df4c24d |
|
MD5 | e7f6920462bb6054fea16ac5a012229a |
|
BLAKE2b-256 | 09596ea8c29e582a704f02c94b31e6d19045e79bd13584fbc1ca4afc1b1d8276 |
File details
Details for the file braveblock-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3462fb33eb42e7fc153567dcf735fa745a539a076c4e477d44dcb4acb90af40d |
|
MD5 | 906d1e7eb46ce7bdade1e076147aedb9 |
|
BLAKE2b-256 | cfa32ef22d1e3082ff20c603a880865e8740cc8b42d13ff67a55793f740be10e |
File details
Details for the file braveblock-0.5.1-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04e5b3738f54d1e5b81aa7e91e1ec882bab67c61923900ae5feffc24d618dabd |
|
MD5 | 65d723584be904d8194f27aabb9fc2a9 |
|
BLAKE2b-256 | 573bbafc52b59e5f60b46bc56cd34e80a24a9d15a3d75ad93db1899a017f2be6 |
File details
Details for the file braveblock-0.5.1-cp38-cp38-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7ff46c5b9a3fb6cf6af663d5c3cb6e42d6eae835fbc94d5c28aa9cbb3e04f7 |
|
MD5 | 655a0c91b739340022c5fdc7fb9490b9 |
|
BLAKE2b-256 | de8293d6c2e94be0d28e06fab3d283dd41a4396a330b60748a24b2a95796b6d6 |
File details
Details for the file braveblock-0.5.1-cp37-none-win_amd64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp37-none-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca0570f9bb0a3950f13683cd0660dc8201425c6cb660e9b749a28843dd10001 |
|
MD5 | 79dac1512787d40c00d41eae2b875932 |
|
BLAKE2b-256 | 97b322140f024151eef9503e676c60645a203a6c21cd2aeb9d841acc96c75c44 |
File details
Details for the file braveblock-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b661fc0b4bc37e2144e47f0ab9209a4ea2575425cb5911bbd2caba827a265ab8 |
|
MD5 | 09161536ebb61ed89540252f843e3b1b |
|
BLAKE2b-256 | 90c1fa04e85e0e6e24e74ca654acc7cc86238cd594dcbf587c5d2275e13c2c00 |
File details
Details for the file braveblock-0.5.1-cp37-cp37m-macosx_11_0_arm64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp37-cp37m-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7m, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6d502754393ecd1f6957c3d23f82b86b41cabf1d86104846a30f977f8fa09e |
|
MD5 | 8c3a56034c45171a8238c8696c1f6fb8 |
|
BLAKE2b-256 | f783dae1c6247b0a6543e04f40772d182e27807d281e4e33608a1554b5549236 |
File details
Details for the file braveblock-0.5.1-cp37-cp37m-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: braveblock-0.5.1-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 343c049e420f6380ec716d6e373d78a64e9debdad149dcdf54357e8a4f07cc29 |
|
MD5 | d04e00d63226263ef2b6afc051d453ca |
|
BLAKE2b-256 | 61bc303dad209d04bbfcbc50479418644c4f55bc13f893ceb0a949814f82ba7a |