跳转到主要内容

所有欧盟国家的ISO 3166国家代码。

项目描述

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

pyeucountrycodes

遵循ISO 3166-1 / Alpha-2代码的欧盟国家代码列表。

用法

pip install pyeucountrycodes

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

范围

本包旨在保持非常简单。

如果您需要访问国家名称,甚至可能在不同的语言中,请参考优秀的 pycountry

https://pypi.ac.cn/project/pycountry/

注意事项

请注意,尽管大不列颠离开了欧盟,例如北爱尔兰仍然部分地被视为仍属于欧盟。

贡献、功能请求和错误报告

请使用 https://github.com/jugmac00/pyeucountrycodes

开发和运行测试

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

发布历史

1.3.0 (20.12.2022)

添加对Python 3.11的支持。

移除对Python 3.6的支持。

1.2.0 (07.11.2021)

添加对Python 3.10的支持。

1.1.0 (06.01.2021)

更新开发文档。

不再使用Travis CI。

添加支持Python版本徽章。

1.0.1 (04.01.2021)

更新发布说明。

1.0.0 (04.01.2021)

使用GitHub actions进行测试。

添加对Python 3.7、3.8和3.9的支持。

放弃对Python 2的支持。

更新用法示例。

从欧盟国家列表中删除GB。

0.7.0 (15.01.2019)

初始发布。

来源

国家列表

https://en.wikipedia.org/wiki/Member_state_of_the_European_Union (访问于2021年1月4日)

ISO代码

https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes (访问于2019年1月15日)

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

pyeucountrycodes-1.3.0.tar.gz (4.0 kB 查看哈希)

上传时间 源代码

构建分布

pyeucountrycodes-1.3.0-py3-none-any.whl (3.1 kB 查看哈希)

上传时间 Python 3

由以下组织支持