Skip to main content
https://badge.fury.io/py/acdh-histogis.svg

acdh-histogis is a python package providing a high level api to interact with [HistoGIS](https://histogis.acdh.oeaw.ac.at/)

Installation

pip install acdh-histogis

Use:

from histogis.histogis import HistoGis as hg

# by geonames (id or URL)

hg().query_by_service_id(id="https://www.geonames.org/2772400/", when='1860-12-12', polygon=False)

# by wikidata (id or URL)

hg().query_by_service_id(id="https://www.wikidata.org/wiki/Q41329", when='1860-12-12', polygon=False)

# by GND (id or URL)

hg().query_by_service_id(service="gnd", id="4074255-6", when='1860-12-12', polygon=False)

# returns:

{
'id': 8118,
'wikidata_id': '',
'name': 'Linz (Stadt)',
'alt_name': '',
'source': 'https://histogis.acdh.oeaw.ac.at/api/source/93/?format=json',
'source_name': 'Cisleithania Districts 1880',
'administrative_unit': 'https://histogis.acdh.oeaw.ac.at/api/skosconcepts/135/?format=json',
'adm_name': 'Statutarstadt',
'start_date': '1850-01-01',
'end_date': '1918-10-31',
...
}

Licensing

All code unless otherwise noted is licensed under the terms of the MIT License (MIT). Please refer to the file LICENSE in the root directory of this repository.

History

0.0.5 (2020-03-25)

  • some modifications to dump data methods added

  • function to create singel JSONL file from single files added

0.0.4 (2019-04-02)

  • dump data methods added

0.0.3 (2019-03-26)

  • code refactoring

  • new methods

  • query_by_service_id to fetch data by geonames, gnd and wikidata ID/URL

0.0.2 (2019-03-11)

  • fetch_geonames_rdf and query_by_geonames_id methods added

0.0.1 (2019-03-11)

  • First version

Metadata

Release files for acdh-histogis 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acdh-histogis 0.0.5
File Size Uploaded
acdh-histogis-0.0.5.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acdh-histogis 0.0.5
File Interpreter ABI Platform
acdh_histogis-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / acdh-histogis-0.0.5.tar.gz

Download URL acdh-histogis-0.0.5.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ca582cd4f9d02aa79e5777ec0c401d6e256d87d54bcb816eda9cb3bb3a4ec4b7
BLAKE2b-256 checksum
How to use checksums
fe7546dbb43d27e78ce4a39270548ad4aaa4789e3238113cbc35aa311251eacd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Release files / acdh_histogis-0.0.5-py3-none-any.whl

Download URL acdh_histogis-0.0.5-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
071a401c1f76572b6becb36ff2894aac393a9bb24b8afb626cdc5037b1a19a79
BLAKE2b-256 checksum
How to use checksums
db9df8171706506965f9452db07c60701d7af18807dee74a120445a37b780823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page