Skip to main content

Web Bot Auth Python

GitHub License Code style: black

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

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.

Metadata

Release files for bot-auth 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bot-auth 0.3.1
File Size Uploaded
bot_auth-0.3.1.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bot-auth 0.3.1
File Interpreter ABI Platform
bot_auth-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / bot_auth-0.3.1.tar.gz

Download URL bot_auth-0.3.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e544083e4579c29e17603292aa03a49f8f4dab236bb615c5c366dacd17cf9f71
BLAKE2b-256 checksum
How to use checksums
fbe2cb1f684ec665e6566bf40ff602334fe17534781fd9500f3f27ec06cd5efe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / bot_auth-0.3.1-py3-none-any.whl

Download URL bot_auth-0.3.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7e7b90d01eb6e02c50a120a6348f47d31e1347c5a357f48ee786c1bb6f4feab
BLAKE2b-256 checksum
How to use checksums
aab2ec31d3956c93bd617238bae3ab40ad7327dbee63b53dcb9429e9176acde3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page