Skip to main content

CI via GitHub Actions PyPI - Python Version Current version on PyPI

pyeucountrycodes

A list of EU country codes following the ISO 3166-1 / Alpha-2 code.

usage

pip install pyeucountrycodes

>>> from eu_country_codes import COUNTRY_CODES
>>> "FR" in COUNTRY_CODES
True

scope

It is intended to keep this package very simple.

If you need to access the names of the countries, maybe even in different languages, please refer to the excellent pycountry:

https://pypi.org/project/pycountry/

word of caution

Please note, that although Great Britain left the EU, e.g. Northern Ireland is still treated - partly - as if it would still belong to the EU.

contribution, feature requests and bug reports

Please use https://github.com/jugmac00/pyeucountrycodes

development and run tests

$ python3 -m venv .venv
$ . .venv/bin/activate

$ pip install -U pip
$ pip install flit pytest

$ git clone git@github.com:jugmac00/pyeucountrycodes.git
$ cd pyeucountrycodes/
$ flit install

$ pytest .

release history

1.3.0 (20.12.2022)

Add support for Python 3.11.

Remove support for Python 3.6.

1.2.0 (07.11.2021)

Add support for Python 3.10.

1.1.0 (06.01.2021)

Update development documentation.

Do not use Travis CI any more.

Add badge for supported Python versions.

1.0.1 (04.01.2021)

Update readme for release.

1.0.0 (04.01.2021)

Test with GitHub actions.

Add support for Python 3.7, 3.8 and 3.9.

Drop support for Python 2.

Update usage example.

Remove GB from the list of EU countries.

0.7.0 (15.01.2019)

Initial release.

sources

List of countries:

https://en.wikipedia.org/wiki/Member_state_of_the_European_Union (visited on 04.01.2021)

Iso codes:

https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes (visited on 15.01.2019)

Release files for pyeucountrycodes 1.3.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 pyeucountrycodes 1.3.0
File Size Uploaded
pyeucountrycodes-1.3.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyeucountrycodes 1.3.0
File Interpreter ABI Platform
pyeucountrycodes-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / pyeucountrycodes-1.3.0.tar.gz

Download URL pyeucountrycodes-1.3.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2e0c803da65a3ea69e4c62757430bd0887d62039afd399dd4cff0ab54c285590
BLAKE2b-256 checksum
How to use checksums
08b816b828666be5058db4a1d2e86812b2147eb4ae79b3d7a32ff25f19600cfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release files / pyeucountrycodes-1.3.0-py3-none-any.whl

Download URL pyeucountrycodes-1.3.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae058066102b831ac2120881d2b3b5980ecb101657379461c3b4635181705595
BLAKE2b-256 checksum
How to use checksums
5f4c4e69cf8aaa9b12b1cf7fc38419366e70f6b6066646d9607085cb814ec2cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.7.0

2 release files

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