Skip to main content

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

Metadata

Release files for govuk-country-register 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for govuk-country-register 0.5.0
File Size Uploaded Provenance Actions
govuk-country-register-0.5.0.tar.gz 7.7 kB Without provenance Details for govuk-country-register-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for govuk-country-register 0.5.0
File Interpreter ABI Platform Actions
govuk_country_register-0.5.0-py3-none-any.whl Python 3 none any Details for govuk_country_register-0.5.0-py3-none-any.whl

Total release size: 17.2 kB

Release files / govuk-country-register-0.5.0.tar.gz

Download URL govuk-country-register-0.5.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
45bf75570e91e8df7ed023cc17d9b7a54e4dacccd60cc2d15cc617e5ddd8aa69
BLAKE2b-256 checksum
How to use checksums
ba0281721993d8f489117e593f7f8ee9612365de7cad03fc469441b17e996132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / govuk_country_register-0.5.0-py3-none-any.whl

Download URL govuk_country_register-0.5.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fc96aa5fc9127338f102dd21dd11115db4818ad6db19feeb51f6651404078ba
BLAKE2b-256 checksum
How to use checksums
0b7a5ede236b169fe04a7a00a23434ff37aa470a4f996be642b879bec3f59695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Security for govuk-country-register 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page