Metadata-Version: 2.1
Name: acceptlang
Version: 0.0.4
Summary: A package for parsing Accept-Language tag received from (untrusted) client context.
Home-page: https://github.com/piotrszyma/acceptlang
Author: Piotr Szyma
Author-email: contact@piotrszyma.pl
Project-URL: Bug Reports, https://github.com/piotrszyma/acceptlang/issues
Project-URL: Source, https://github.com/piotrszyma/acceptlang
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.7, <4
Description-Content-Type: text/markdown
License-File: LICENCE

# 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

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

# Build and publish

```sh
python3 -m build --wheel
twine check dist/**
twine upload dist/
```
