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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: acceptlang-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 696e337f175a40ea66d4d540a88f00cc701c2afe0760fcc51ee90a0c543949e4
MD5 322485ebfca25192747e4d9e22ef6fcb
BLAKE2b-256 08b2c09d4f4ea7b795952e2f427f5386fd5aabe4377b5234563a0bfc055d8b0b

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