Skip to main content

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-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

govuk-country-register-0.2.2.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

govuk_country_register-0.2.2-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

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