Jinja2 filter to look up country codes using the GOV.UK country and territory registers
Project description
govuk-country-register
Jijna2 filter that uses GOV.UK Registers to look up country codes.
The register data is included in the package so no external requests are required. This package will be updated when new register data is released.
Usage
import jinja2
from govuk_country_register import to_country
to_country("UK") # "United Kingdom"
jinja_env = jinja2.Environment()
jinja_env.filters["to_country"] = to_country
Version History
2019-08-16 version 0.5.0
- Update country data
2019-06-06 version 0.4.0
- Refactor code to load CSVs from a Python package
2019-06-06 version 0.3.1
- Fix bug where unicode characters would cause issues on systems with the default locale
2019-03-14 version 0.3.0
- Update country data
2019-02-12 version 0.2.2
- Fix PyPI readme
2019-02-12 version 0.2.1
- Initial release
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
Built Distribution
Close
Hashes for govuk-country-register-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45bf75570e91e8df7ed023cc17d9b7a54e4dacccd60cc2d15cc617e5ddd8aa69 |
|
MD5 | 4a0fb13c9b5954c97e10f5691eef2f53 |
|
BLAKE2b-256 | ba0281721993d8f489117e593f7f8ee9612365de7cad03fc469441b17e996132 |
Close
Hashes for govuk_country_register-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc96aa5fc9127338f102dd21dd11115db4818ad6db19feeb51f6651404078ba |
|
MD5 | f882125115f788c3e03002a8ef7cfb01 |
|
BLAKE2b-256 | 0b7a5ede236b169fe04a7a00a23434ff37aa470a4f996be642b879bec3f59695 |