Skip to main content

uaid

Identify crawlers and bots by user agent. Plain substring matching, no regex, no dependencies.

pip install uaid
import uaid

uaid.is_bot("curl/8.4.0")  # True

uaid.identify("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
# {'description': 'Google search indexing bot', 'tags': ['search-engine'], 'url': ..., 'rdns': [...]}
  • is_bot checks ~4500 known crawlers plus a keyword heuristic for unknown bots (~92% recall, ~0.1% false positives on 30k real browser user agents). A missing user agent (None or "") counts as a bot.
  • identify returns the most specific known crawler, or None.
  • rdns lists forward-confirmed reverse DNS suffixes for verifying a crawler's IP.
  • ~15 µs per call through a trigram index, ~20 ms import time.

Data

crawlers.json is the source database. Each match rule is tested against the lowercased user agent: a string must be contained, a leading ^ anchors it to the start, a nested list requires all parts. The wheel ships a compact, pre-indexed version generated at build time.

Metadata

Release files for uaid 1.1.0

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

Source distribution (sdist)

Source distribution for uaid 1.1.0
File Size Uploaded Provenance Actions
uaid-1.1.0.tar.gz 615.5 kB With provenance Details for uaid-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uaid 1.1.0
File Interpreter ABI Platform Actions
uaid-1.1.0-py3-none-any.whl Python 3 none any Details for uaid-1.1.0-py3-none-any.whl

Total release size: 776.5 kB

Release files / uaid-1.1.0.tar.gz

Download URL uaid-1.1.0.tar.gz
Size 615.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9e6247975f60b15b41bb68810b1ddf64cb5ad40eedc95890282a4812fc41cf01
BLAKE2b-256 checksum
How to use checksums
28d222eef7b91843052378c847ca5712c7c5452f9e59c02d2d2123680e3e060a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / uaid-1.1.0-py3-none-any.whl

Download URL uaid-1.1.0-py3-none-any.whl
Size 161.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d22d95bbb732fada63994c5fa4c9869c32369101442cf914aa62efa3d0e67d8c
BLAKE2b-256 checksum
How to use checksums
0fd9cb576cef0cb70c6bbda923fb7b6dd8a432383e045abb535ab6181beb55e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for uaid 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for uaid-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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