All ISO 3166 country codes for EU countries.
Project description
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.1.0 (06.01.2020)
Update development documentation.
Do not use Travis CI any more.
Add badge for supported Python versions.
1.0.1 (04.01.2020)
Update readme for release.
1.0.0 (04.01.2020)
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)
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
Built Distribution
Hashes for pyeucountrycodes-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea699fcdb53ab5e28d128523866c71877091f7197314ccab10c687e0d4a0ccd |
|
MD5 | d5934775378a6161442719e421547c95 |
|
BLAKE2b-256 | 939fb6f480115d790e3e3ef60009447c9ae9271c1da07b4d84ed4873aecef6e1 |