Pycountry

Latest version: v24.6.1

Safety actively analyzes 688365 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

24.6.2.dev0

------------------------

None, yet.

24.6.1

-------------------

- **Breaking change**: Reverted the fallback to name when country common_name
or official_name attributes not available, which was added in 23.12.11.

- Fixed import of importlib_metadata to importlib.metadata

- Fixed bug causing parent subdivision codes to be returned with additional
country code preceding (i.e. GB-GB-ENG instead of GB-ENG)

- Update to iso-codes 4.16.0. (Thanks to musicinmybrain!)

23.12.11

---------------------

- ~~Added fallback to name when common_name or official_name country attributes
are missing~~ Reverted in v24.6.1.

- Added support for adding and removing country records, as well as casting to
dict

- Improve performance speed by checking for non-ascii chars before removing
accents

- Added search_fuzzy method to subdivisions

- Added type hinting, created py.typed file, and added mypy checks to CI

23.12.7

--------------------

- Dropped support for end-of-life Python 3.6 and 3.7.

- Added support for Python 3.11 and Python 3.12.

- Added dependency on importlib-resources for Python 3.8.

- Dropped implicit dependency on setuptools for pkg_resources.
(Thanks to D3X!)

- Update to iso-codes 4.15.0. (Thanks to alanorth!)

- Removes iso3166.mo files and opts for newer iso3166-1.mo and iso3166-3.mo
files for Country and Historic Country Translations respectively.

Warning: This requires an update in your application code when you previously
used to access the iso3166 gettext data.

22.3.5

-------------------

- Update to iso-codes 4.9.0.

22.1.10

--------------------

- Update to iso-codes 4.8.0. (Thanks to llimeht!)

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.