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)")
# {'name': 'Googlebot', '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.

Robots.txt stats

A daily workflow reads the robots.txt of the top 25,000 Tranco sites and publishes two files to the robots release:

  • robots-today.json: fetch status counts, per user agent how many sites block it fully, partially or allow it (and set a crawl delay), Content-Signal counts, and per site the blocked and partially blocked agents.
  • robots-history.json: per date and user agent, the share of sites that restrict it.

Metadata

Release files for uaid 1.3.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.3.0
File Size Uploaded Provenance Actions
uaid-1.3.0.tar.gz 622.1 kB With provenance Details for uaid-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 784.6 kB

Release files / uaid-1.3.0.tar.gz

Download URL uaid-1.3.0.tar.gz
Size 622.1 kB
Tags Source
SHA-256 checksum
How to use checksums
715a7c2c818c0644833f0cdf71655c152e86b3fd997e4deb2205cfcee043dfae
BLAKE2b-256 checksum
How to use checksums
e50e1b8ae2151ceeaf72e40e7fd05c2a1f85e0863ad120cfc28fd4d034ba6200
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 20, 2026.

Transparency log

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

Download URL uaid-1.3.0-py3-none-any.whl
Size 162.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d48e4d2f5445123812480e8dbb9695717ae27c28191038ac236debe4157bb24
BLAKE2b-256 checksum
How to use checksums
3ae318f347e3f1f0454677f1041d81f9d32db50b3a283321c003c3ce351a3ad9
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 20, 2026.

Transparency log

Security for uaid 1.3.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.3.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 20, 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