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 ~2900 known crawlers plus a keyword heuristic for unknown bots (~94% 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.0.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.0.0
File Size Uploaded Provenance Actions
uaid-1.0.0.tar.gz 513.7 kB With provenance Details for uaid-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 629.1 kB

Release files / uaid-1.0.0.tar.gz

Download URL uaid-1.0.0.tar.gz
Size 513.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f2b3dea67f2e281c3cb6145c304369b6b67381662096e0760dd048c04d22fb0
BLAKE2b-256 checksum
How to use checksums
c5b50733a2dd5431b3436272abef12f067acbaba98447f0374056665223367dd
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.0.0-py3-none-any.whl

Download URL uaid-1.0.0-py3-none-any.whl
Size 115.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c330152b926d7040955e79fd96d387f21824d7677f2b51e7395bdfa1e42dbcd7
BLAKE2b-256 checksum
How to use checksums
e524b0944f00e80d0c8128c1f099ccbebfa599cc88b86925ca4d834e6c7339a2
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.0.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.0.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