Skip to main content

uainsight

uainsight is a Python package for parsing and analyzing User-Agent strings. It provides easy integration with FastAPI, Django, and Flask.

Features

  • Parse User-Agent strings
  • Extract browser, operating system, and device information
  • Bot detection
  • Easy integration with FastAPI, Django, and Flask frameworks

Installation

Using Poetry (recommended):

poetry add uainsight

Using pip:

pip install uainsight

Quick Start

from uainsight import parse_user_agent

ua_string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
ua = parse_user_agent(ua_string)

print(f"Browser: {ua.browser.name} {ua.browser.version}")
print(f"OS: {ua.os.name} {ua.os.version}")
print(f"Device: {ua.device}")

Documentation

For full documentation, visit https://joongi007.github.io/uainsight/

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for uainsight 0.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 uainsight 0.1.0
File Size Uploaded Provenance Actions
uainsight-0.1.0.tar.gz 6.2 kB Without provenance Details for uainsight-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.9 kB

Release files / uainsight-0.1.0.tar.gz

Download URL uainsight-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
651026f82d7c8c4936428b6947eb4e545afa85f4144e15fdd2044de335462924
BLAKE2b-256 checksum
How to use checksums
0e02616be0e247253eb9a85e15f6fd185b8ec8c8d7e90432dacc9b47ab031439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2

Release files / uainsight-0.1.0-py3-none-any.whl

Download URL uainsight-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
126ce0b8d616e51f7c394c9947516848fc985cbb9afd4a56f946406aa36d71a9
BLAKE2b-256 checksum
How to use checksums
f01574f12b2a568b0687a81eaf91371c67ff4d006f2b7a5bdc2f1c8d0017034f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2

Security for uainsight 0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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