Skip to main content

Monkey patches for setting user-agent header.

Project description

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

from setuseragent.django import set_distribution
set_distribution(__package__)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

setuseragent-0.2.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

setuseragent-0.2.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file setuseragent-0.2.0.tar.gz.

File metadata

  • Download URL: setuseragent-0.2.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for setuseragent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a7bee7323e1fa02acc8b651bcfd6a8bdacf0f8f78deeedbf705b70190ba64236
MD5 05e4e4f0c36131c2451b0c6b7b7d2c65
BLAKE2b-256 b7b313d5b0243079cad04b7e4b6f0c4091dae23aaffb0eb4e6732e020a89df97

See more details on using hashes here.

File details

Details for the file setuseragent-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for setuseragent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75d6468a4fdd226a8d6e9c7fdd45bea1e5f5ab7a03b17436358d40ed13a427fa
MD5 3883f9654deaa43d66a257528789b747
BLAKE2b-256 faf5f06d661f7afa3b56b1aa01535468f8714784c6715f8fb0f835efe5bd8268

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page