A library to check for AI Bot Authentication using the latest HTTP header Signature.
Project description
Web Bot Auth Python
Implementation of Web Bot Auth in Python.
Read the story behind Web Bot Auth, or find out more about how to Identify Bots with HTTP Message Signatures.
Installation
Install via uv
uv add bot-auth
or pip
pip install bot-auth
Development
Requirements
- Python 3.13
- uv - Python package manager
Build
To build bot-auth package
uv sync
uv build
Run examples
In the examples folder there are examples of how to use Bot Auth with popular scraping libraries like
scrapy or crawl4ai.
Each example is a project, see the README in each example folder to run it.
cd examples/crawl4ai-hook
uv run main.py
Lint
This codebase uses ruff and Black for linting.
To run a check, use
uv run ruff check .
uv run black --check .
To format the codebase
uv run ruff format .
uv run black .
Security Considerations
This software has not been audited. Please use at your sole discretion.
License
This project is under the Apache 2.0 license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be Apache 2.0 licensed as above, without any additional terms or conditions.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bot_auth-0.3.1.tar.gz.
File metadata
- Download URL: bot_auth-0.3.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e544083e4579c29e17603292aa03a49f8f4dab236bb615c5c366dacd17cf9f71
|
|
| MD5 |
ba7d420480a283bb54aa732a3027c15f
|
|
| BLAKE2b-256 |
fbe2cb1f684ec665e6566bf40ff602334fe17534781fd9500f3f27ec06cd5efe
|
File details
Details for the file bot_auth-0.3.1-py3-none-any.whl.
File metadata
- Download URL: bot_auth-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7e7b90d01eb6e02c50a120a6348f47d31e1347c5a357f48ee786c1bb6f4feab
|
|
| MD5 |
be3a7496330a5b2f592c9c343a6337f9
|
|
| BLAKE2b-256 |
aab2ec31d3956c93bd617238bae3ab40ad7327dbee63b53dcb9429e9176acde3
|