Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erdogant/worldmap
This python package enables to color different countries in the world or the regions per country.
https://github.com/erdogant/worldmap
coloring coloring-graph countries graphics plot python svg worldmap
Last synced: 4 months ago
JSON representation
This python package enables to color different countries in the world or the regions per country.
- Host: GitHub
- URL: https://github.com/erdogant/worldmap
- Owner: erdogant
- License: other
- Created: 2019-12-29T22:24:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T18:23:09.000Z (over 1 year ago)
- Last Synced: 2024-09-14T18:28:12.378Z (5 months ago)
- Topics: coloring, coloring-graph, countries, graphics, plot, python, svg, worldmap
- Language: Python
- Homepage: https://erdogant.github.io/worldmap
- Size: 12.1 MB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# Worldmap
[](https://img.shields.io/pypi/pyversions/worldmap)
[](https://pypi.org/project/worldmap/)
[](https://github.com/erdogant/googletrends/blob/master/LICENSE)
[](https://github.com/erdogant/worldmap/network)
[](https://github.com/erdogant/worldmap/issues)
[](http://www.repostatus.org/#active)
[](https://pepy.tech/project/worldmap/month)
[](https://pepy.tech/project/worldmap)
[](https://erdogant.github.io/worldmap/)``worldmap`` is a light weighted Python package that enables easy coloring of countries and/or regions in the world.
For this package, the svg images from https://www.w3.org are utilized, processed and colored.
It requires downloading the svg files a single time and then works offline.#
**⭐️ Star this repo if you like it ⭐️**
##### Install worldmap from PyPI
```bash
pip install worldmap
```#### Import worldmap package
```python
import worldmap as wm
```
#### [Documentation pages](https://erdogant.github.io/worldmap/)
On the [documentation pages](https://erdogant.github.io/worldmap/) you can find detailed information about the working of the ``worldmap`` with many examples.
### Examples
#
* [Example: color the different regions in a country](https://erdogant.github.io/worldmap/pages/html/Examples.html)
#
* [Example: color the different in the worldmap](https://erdogant.github.io/worldmap/pages/html/Examples.html#coloring-of-country-in-worldmap)
#
* [Example: Retrieve all Map Names](https://erdogant.github.io/worldmap/pages/html/Examples.html#retrieve-all-map-names)
#
* [Example: Retrieve county Names](https://erdogant.github.io/worldmap/pages/html/Examples.html#retrieve-county-names)
#
* [Example: Convert county name to abbrevation](https://erdogant.github.io/worldmap/pages/html/Examples.html#convert-country-to-abbrevation)
#
* [Example: Convert abbrevation to county name](https://erdogant.github.io/worldmap/pages/html/Examples.html#convert-abbrevations-to-county-names)
### References:
* http://www.w3.org/Consortium/Legal/copyright-software### Maintainers
* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)### Contribute
* All kinds of contributions are welcome!
* If you wish to buy me a Coffee for this work, it is very appreciated :)