Name | countries-dictionary JSON |
Version |
1.0.2
JSON |
| download |
home_page | None |
Summary | Provides a dictionary contains all members and observer states of the United Nations and information about them |
upload_time | 2025-07-17 09:43:42 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | GPLv3 |
keywords |
countries
dictionary
united nations
states
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Countries Dictionary provides a dictionary contains all members and observer states of the United Nations and information about them:
- Continent(s) of the countries' mainland
- Area in square kilometre
- Population
- Nominal GDP in dollar
I created this module as a source of countries' information that is easy to access and use by coders using any programming language (as it can be converted into JSON).
After importing it:
```
from countries_dictionary import countries
```
you can do many things with the dictionary, such as convert it into a JSON string:
```
json.dumps(countries, indent=4)
```
calculate GDP per capita of a country:
```
countries["Vietnam"]["nominal GDP"] / countries["Vietnam"]["population"]
```
population density:
```
countries["Russia"]["population"] / countries["Russia"]["area"]
```
Raw data
{
"_id": null,
"home_page": null,
"name": "countries-dictionary",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "countries, dictionary, united nations, states",
"author": null,
"author_email": "Ng\u00f4 Tr\u1ea7n Quang Thi\u1ec7n <quangthienngotran@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/fa/37/6ad1edcd15dd447acfc5bf4193cfcc1920faa353c9eb65edb76733870767/countries_dictionary-1.0.2.tar.gz",
"platform": null,
"description": "Countries Dictionary provides a dictionary contains all members and observer states of the United Nations and information about them:\r\n- Continent(s) of the countries' mainland\r\n- Area in square kilometre\r\n- Population\r\n- Nominal GDP in dollar\r\n\r\nI created this module as a source of countries' information that is easy to access and use by coders using any programming language (as it can be converted into JSON).\r\n\r\nAfter importing it:\r\n```\r\nfrom countries_dictionary import countries\r\n```\r\nyou can do many things with the dictionary, such as convert it into a JSON string:\r\n```\r\njson.dumps(countries, indent=4)\r\n```\r\ncalculate GDP per capita of a country: \r\n```\r\ncountries[\"Vietnam\"][\"nominal GDP\"] / countries[\"Vietnam\"][\"population\"]\r\n```\r\npopulation density: \r\n```\r\ncountries[\"Russia\"][\"population\"] / countries[\"Russia\"][\"area\"]\r\n```\r\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "Provides a dictionary contains all members and observer states of the United Nations and information about them",
"version": "1.0.2",
"project_urls": null,
"split_keywords": [
"countries",
" dictionary",
" united nations",
" states"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8c7db91b81d959437d8cd12ee0127e3f9711bbaa671b1a34935b017c3e930b03",
"md5": "7fa15a9ce85ce48bd60c64a6d13d6460",
"sha256": "1d3dda22237d2f1954bf6d6d74fd4c11fa0de25b872cf133e09bb98b0ac8198f"
},
"downloads": -1,
"filename": "countries_dictionary-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7fa15a9ce85ce48bd60c64a6d13d6460",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 19324,
"upload_time": "2025-07-17T09:43:40",
"upload_time_iso_8601": "2025-07-17T09:43:40.543343Z",
"url": "https://files.pythonhosted.org/packages/8c/7d/b91b81d959437d8cd12ee0127e3f9711bbaa671b1a34935b017c3e930b03/countries_dictionary-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "fa376ad1edcd15dd447acfc5bf4193cfcc1920faa353c9eb65edb76733870767",
"md5": "f7f077f3ddda769f022a72d38326b7e1",
"sha256": "7c32ee3da79476ca90a374f50ec9fe6a4f4ee5e0af387ef93b21cb7bc3b93898"
},
"downloads": -1,
"filename": "countries_dictionary-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "f7f077f3ddda769f022a72d38326b7e1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 19465,
"upload_time": "2025-07-17T09:43:42",
"upload_time_iso_8601": "2025-07-17T09:43:42.792312Z",
"url": "https://files.pythonhosted.org/packages/fa/37/6ad1edcd15dd447acfc5bf4193cfcc1920faa353c9eb65edb76733870767/countries_dictionary-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 09:43:42",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "countries-dictionary"
}