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

govuk-country-register-0.3.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

govuk_country_register-0.3.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file govuk-country-register-0.3.0.tar.gz.

File metadata

  • Download URL: govuk-country-register-0.3.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for govuk-country-register-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0e4ef7e02f4bae41d605748092b5373628b3390a70bdc92b280d796a14ad2d8c
MD5 a3a34f5932e9e1d28badd56fc8e9f74f
BLAKE2b-256 bfbfce3b3ad3f56b7457c6bebd82ba446b8397d48c0f2d39edeb86fa9ed7676d

See more details on using hashes here.

File details

Details for the file govuk_country_register-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: govuk_country_register-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for govuk_country_register-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af4441dbef528bf3e2e33e1a556423b0dcf336dc0f6622f4b0efa6c83f239ea1
MD5 dbbf69c7163547c223aa4de4fa6c1ac2
BLAKE2b-256 ec6c1f2d39b2e6cf221a432743756140e344696b4dd82279ecb6297509af1cf8

See more details on using hashes here.

Supported by

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