Skip to main content

A package for parsing Accept-Language tag received from (untrusted) client context.

Project description

Simple package for parsing Accept-Language tag.

This package can be used in the server environment to parse the Accept-Language header.

Test cases and code copied from Django source code enhanced with typing.

Purpose of this code is to be able to use a battle-tested Accept-Language parsing logic in Python code without need to install Django package.

Local development

python3 -m venv venv
. venv/bin/activate
python3 -m pip install -r requirements.dev.txt

Build and publish

python3 -m build --wheel

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

acceptlang-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file acceptlang-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: acceptlang-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for acceptlang-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4872825c13ab581f61fe70692afc4d9b5f5eac85d3b7abca4ec204f041a91771
MD5 6d320669ae6d80a15f047a4989f6e8dd
BLAKE2b-256 8753c680b2aa3216f8f52762a645bcb0cad906d2c433242d17f67532e76d398c

See more details on using hashes here.

Supported by

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