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_botchecks ~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 (Noneor"") counts as a bot.identifyreturns the most specific known crawler, orNone.rdnslists 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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uaid-1.1.2.tar.gz | 615.7 kB | With provenance | Details for uaid-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uaid-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for uaid-1.1.2-py3-none-any.whl |
Total release size: 776.8 kB
Release files / uaid-1.1.2.tar.gz
| Download URL | uaid-1.1.2.tar.gz |
|---|---|
| Size | 615.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef703721da985e7c07fe9e2c4f2907f3b14bafec5872ff7e39f7fd20f461bfe1
|
|
BLAKE2b-256 checksum How to use checksums |
bec48d37be633757d7a3ee033ae606cbdeb9ca7e1fea5bed56d6f72546de4618
|
| 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 logRelease files / uaid-1.1.2-py3-none-any.whl
| Download URL | uaid-1.1.2-py3-none-any.whl |
|---|---|
| Size | 161.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00687806ca9d361baf2b991c2e0daf41f578c0ea51724b0deb4299601697a5db
|
|
BLAKE2b-256 checksum How to use checksums |
ef1a7a845bb14596b1796532e2f70405e47e88e44fd271c18440c52d677a3bc6
|
| 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 logSecurity for uaid 1.1.2
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.
Attestation for uaid-1.1.2.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 logA 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.