This README has some GitHub-exclusive features, please read it there instead of on PyPI.
pygal_maps_world_neo
This is a fork of the seemingly unmaintained pygal_maps_world (last commit in July 2015), initially updated with the fixes Antoine Dusséaux (@a455bcd9) proposed in the original's PR #5 (early 2021) + some additional fixes and improvements (see CHANGELOG).
In the spirit of respecting the preferences of pygal's authors, this file has no type hints or type stubs. Type checking users will soon be able to get them via pygal-stubs (will go public as soon as it's done, please be patient).
Installation and usage
To install, simply do pip install pygal_maps_world_neo (or however you install packages from PyPI. This will also install pygal.)
Then, in your code (for now, since we haven't added any major new features, you can use it exactly like the original package), e.g.:
import pygal
worldmap_chart = pygal.maps.world.World()
worldmap_chart.title = 'Some countries'
worldmap_chart.add('F countries', ['fr', 'fi'])
worldmap_chart.add('M countries', ['ma', 'mc', 'md', 'me', 'mg',
'mk', 'ml', 'mm', 'mn', 'mo',
'mr', 'mt', 'mu', 'mv', 'mw',
'mx', 'my', 'mz'])
worldmap_chart.add('U countries', ['ua', 'ug', 'us', 'uy', 'uz'])
worldmap_chart.render()
See pygal's docs for a comprehensive guide (ignoring the Installation step.)
Contributing
PRs are welcome. Please follow the rules:
- Do not break the existing API in any way. If you want to add new features, please do so in a backward-compatible way. This fork should be a drop-in replacement for the original.
- Type checking-related changes will soon be welcome in pygal-stubs, but not here (see above).
- Review all AI-generated code.
To work on this project:
- Install Hatch if you don't have it already. This fork has migrated from
setup.pyto Hatchling. - Fork this repository and clone it.
- Make a new branch for your changes.
- Run
hatch shell. This will create a virtual environment, activate it, and install all of the dependencies (pygal itself + dev dependencies pytest, pyquery and black). Use that shell exclusively while working - Make your changes. Once you're done, run
hatch run check:allto test your code with pytest and autoformat with black. - Commit, push and open a PR asking to merge your fork's branch into this repository's
masterbranch. - Leave your hatch shell by using
exit(notdeactivate!)
To-do list
I'll add these fixes myself once I find the time. Right now I need to focus in getting pygal-stubs out the door and school. If you want to help, please open a PR with your changes. Thanks!
High-ish priority
- Make it so that the
1value does not appear in maps where it is not needed, e.g. in maps like this one - Fix the label that appears on hover, which after updating the SVG seems to be completely broken and I've haven't been able to fix it yet. The label instead of appearing on top of the country, it sometimes appears very far away from it, like in this example
Low priority
- Add more constants to the
i18nmodule, e.g. ASEAN, MERCOSUR, EU, etc. - (veery low priority as I know it'll be a mess to implement) add the ability for maps to have both countries and supranational groups, e.g. a map that shows the entire EU in one color while showing every other country as separate.
- Any other improvements you can think of. If you want to help, please open a PR with your changes. Thanks!
Metadata
Release files for pygal_maps_world_neo 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygal_maps_world_neo-1.1.1.tar.gz | 132.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygal_maps_world_neo-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 263.8 kB
Release files / pygal_maps_world_neo-1.1.1.tar.gz
| Download URL | pygal_maps_world_neo-1.1.1.tar.gz |
|---|---|
| Size | 132.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0422dc47361e3aac95a1e1d1ba94a112420e45cec76a5546b35627b41a8c4af
|
|
BLAKE2b-256 checksum How to use checksums |
60e0b4c4455372e07758c75b8c9e2143a05d85729f1eec832966f18e8f33af72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.14.7"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.5.7 9 Jun 2026","python":"3.14.7","system":{"name":"Windows","release":"11"}} HTTPX2/2.12.0
|
Release files / pygal_maps_world_neo-1.1.1-py3-none-any.whl
| Download URL | pygal_maps_world_neo-1.1.1-py3-none-any.whl |
|---|---|
| Size | 131.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1f26591ada384d89d866ba40dc4067ddeb8865a406764e737864032e71d1209
|
|
BLAKE2b-256 checksum How to use checksums |
c824fdd88cb753e511aa73bdeffd0bd82ccbc3cb22e4e448c09c2f9dacd44dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.14.7"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.5.7 9 Jun 2026","python":"3.14.7","system":{"name":"Windows","release":"11"}} HTTPX2/2.12.0
|