Skip to main content

Monkey patches for setting user-agent header.

# Importing hooks automatically handles monkey patching
from setuseragent import hooks
# We can set to a specific value
hooks.set_user_agent("my-new-user-agent")
# Or we can set it with a package version
hooks.set_distribution('my-package')
# or using meta package name
hooks.set_distribution(__package__)

If using Django, can optionally set the site name as part of the package

# in settings.py

INSTALLED_APPS = [
    ...,
    "setuseragent.django",
    "django.contrib.sites",
]

# Optionally can configure a specific package to lookup.
# otherwise defaults to the value of DJANGO_SETTINGS_MODULE
USER_AGENT_DISTRIBUTION = __package__

Metadata

Release files for setuseragent 0.7.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 setuseragent 0.7.0
File Size Uploaded Provenance Actions
setuseragent-0.7.0.tar.gz 2.4 kB Without provenance Details for setuseragent-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.0 kB

Release files / setuseragent-0.7.0.tar.gz

Download URL setuseragent-0.7.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
26facbf78cf149381c519b6d29cff6cb359a60b7648c9f085721a2895de64494
BLAKE2b-256 checksum
How to use checksums
9b44109fedce11e897f214b0d586cac6d6e77378105b452a39da1dcc25619f71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / setuseragent-0.7.0-py3-none-any.whl

Download URL setuseragent-0.7.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
336096abfce523762ba9b9b593a0684cf807825440fd76b3bd31e068c13fdcb7
BLAKE2b-256 checksum
How to use checksums
15d60aefe28f79519c32901fc71c39edd02c0fce44b4d5db5d01207581e64ed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for setuseragent 0.7.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.

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