A simple wrapper for the Thenmap API.
Installing
pip install thenmap
Using
>>> from thenmap import Thenmap
>>> api = Thenmap()
>>> swedish_municipalities = api["se-7"]
>>> swedish_municipalities.geojson # defaults to current local date
{{u'crs': {u'type': u'name', ...}
>>> swedish_municipalities.date = "1975-05-03"
>>> swedish_municipalities.geojson
{{u'crs': {u'type': u'name', ...}
>>> swedish_municipalities.in_which("13.46,59.38")
'1780'
For more fine grained controll over the return geodata use the method get_geodata:
>>> swedish_municipalities.get_geodata(date="1975-05-03", format="topojson")
{{u'crs': {u'type': u'name', ...}
See http://thenmap.net for more info on the API.
Changelog
1.1.0 - Always get features from only one date. Default to current date - Add Dataset.info method - Make Python3.x compatible
1.0.1 - Fixed import bug
1.0.0 - First working version
Metadata
Release files for thenmap 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| thenmap-1.1.0.tar.gz | 3.7 kB | Without provenance | Details |
Release files / thenmap-1.1.0.tar.gz
| Download URL | thenmap-1.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc9c7e3a37318c7c815b90461af6e89f28579f0c810d9438e24b7c09aa66a295
|
|
BLAKE2b-256 checksum How to use checksums |
1399b1b92fd3a6e7cc0f6f1fece3d76171e484951ff36860b8256999d4d1fdcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for thenmap 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.