{"id":23291004,"url":"https://github.com/jplusplus/thenmap-python","last_synced_at":"2025-08-21T22:31:58.917Z","repository":{"id":57475093,"uuid":"97235528","full_name":"jplusplus/thenmap-python","owner":"jplusplus","description":"Simple Python wrapper around the Thenmap API","archived":false,"fork":false,"pushed_at":"2023-05-22T22:30:19.000Z","size":18,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-07T20:54:47.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://api.thenmap.net/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jplusplus.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-14T13:16:04.000Z","updated_at":"2019-08-23T12:33:58.000Z","dependencies_parsed_at":"2022-09-10T02:23:38.414Z","dependency_job_id":null,"html_url":"https://github.com/jplusplus/thenmap-python","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fthenmap-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fthenmap-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fthenmap-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplusplus%2Fthenmap-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jplusplus","download_url":"https://codeload.github.com/jplusplus/thenmap-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230537085,"owners_count":18241519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T05:13:50.830Z","updated_at":"2024-12-20T05:13:51.800Z","avatar_url":"https://github.com/jplusplus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A simple wrapper for the Thenmap API.\n\n\nInstalling\n==========\n\n.. code:: bash\n\n  pip install thenmap\n\n\nUsing\n=====\n\n.. code:: python\n\n  \u003e\u003e\u003e from thenmap import Thenmap\n\n  \u003e\u003e\u003e api = Thenmap()\n  \u003e\u003e\u003e swedish_municipalities = api[\"se-7\"]\n  \u003e\u003e\u003e swedish_municipalities.geojson  # defaults to current local date\n  {{u'crs': {u'type': u'name', ...}\n\n  \u003e\u003e\u003e swedish_municipalities.date = \"1975-05-03\"\n  \u003e\u003e\u003e swedish_municipalities.geojson\n  {{u'crs': {u'type': u'name', ...}\n\n  \u003e\u003e\u003e swedish_municipalities.in_which(\"13.46,59.38\")\n  '1780'\n\nFor more fine grained controll over the return geodata use the method get_geodata:\n\n.. code:: python\n\n  \u003e\u003e\u003e swedish_municipalities.get_geodata(date=\"1975-05-03\", format=\"topojson\")\n  {{u'crs': {u'type': u'name', ...}\n\nSee http://thenmap.net for more info on the API.\n\n\nDeveloping\n==========\n\nTo run tests:\n\n.. code-block:: python\n\n  python2 -m pytest test/*\n  python3 -m pytest test/*\n\n  \nChangelog\n=========\n\n- next\n\n  - Improved exception handling\n  - Added tests\n  - Specify required Shapely version\n  - Get rid of collections DeprecationWarning in Python 3.7+\n\n- 1.1.0\n\n  - Always get features from only one date. Default to current date\n  - Add Dataset.info method\n  - Make Python3.x compatible\n\n- 1.0.1\n  - Fixed import bug\n\n- 1.0.0\n  - First working version\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplusplus%2Fthenmap-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjplusplus%2Fthenmap-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplusplus%2Fthenmap-python/lists"}