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.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 uaid 1.1.1
File Size Uploaded Provenance Actions
uaid-1.1.1.tar.gz 615.9 kB With provenance Details for uaid-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 777.1 kB

Release files / uaid-1.1.1.tar.gz

Download URL uaid-1.1.1.tar.gz
Size 615.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3c828af100c1f6f0e94b86649fd9eb7e126eb0c11ec1bb928b8253fb194e87da
BLAKE2b-256 checksum
How to use checksums
792e3a1d3cdbc5d85404215cf7f8e09f815138ea639472f5fa7c8f7f08106687
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 15, 2026.

Transparency log

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

Download URL uaid-1.1.1-py3-none-any.whl
Size 161.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
679cb840eb0435f66ab37fcc73ab3ef5f66ce9a561bc25652b1fc5424fc86861
BLAKE2b-256 checksum
How to use checksums
26cee76dc5de647e0a6e4dfff62c52c267395f272d2f4581fa50e90133a5033b
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 15, 2026.

Transparency log

Security for uaid 1.1.1

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.1.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 15, 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