Skip to main content

All ISO 3166 country codes for EU countries.

Project description

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


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


pip install pyeucountrycodes

>>> from eu_country_codes import COUNTRY_CODES


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:

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

development and run tests

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

$ pip install -U pip
$ pip install flit pytest

$ git clone
$ 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.


List of countries: (visited on 04.01.2021)

Iso codes: (visited on 15.01.2019)

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

pyeucountrycodes-1.3.0.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

pyeucountrycodes-1.3.0-py3-none-any.whl (3.1 kB view hashes)

Uploaded py3

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