Skip to main content

A Python CLI program that collects Zensus GIS data from Germany and imports it into PostgreSQL

Project description

German census data, now in PostgreSQL!

Test Documentation Package version

A CLI program that imports German census CSV data (spelled "zensus" in German) into PostgreSQL with PostGIS geographic data types. All data is provided by the Statitisches Bundesamt of Germany. Currently, only data from the 2022 census is available.

If you want to download the raw data yourself or see the website it comes from, check out the link below:

Installing

To install this program, run:

pip install zensus2pgsql

Using

To get started using this tool, you'll first want to see what datasets are availble:

zensus2pgsql list

For now, the names of the data sets are only available in German, so please use translation software if you need help figuring out what they mean!

After you've fond a dataset to import, you can do so by running the following command:

zensus2pgsql create \
  --host localhost \
  --port 5432 \
  --user username \
  --schema public \
  heizungsart eigentuemerquote

The above command will import two dataset related to the type of heating a house uses and the percentage of those who own their home in a particular area.

Contributing

Contributions are welcome and can ake the following forms:

  • Creating a bug report if you've found an issue
  • Creating a feature request if you'd like to see new functionality added
  • Creating a pull request to accomplish either of the two above
  • Leaving a star on the repository

Before creating a pull request, I kindly ask that you either create a bug report or a feature request first, so I can sign off on having it added to the project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zensus2pgsql-0.2.0.tar.gz (514.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zensus2pgsql-0.2.0-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file zensus2pgsql-0.2.0.tar.gz.

File metadata

  • Download URL: zensus2pgsql-0.2.0.tar.gz
  • Upload date:
  • Size: 514.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zensus2pgsql-0.2.0.tar.gz
Algorithm Hash digest
SHA256 989e6d9750a97c67812693a77193f95b02fb4e70bfd3ec9ffde98f04bb9896a8
MD5 b989e5a1b4b9eed3dbbde4ab147c8be9
BLAKE2b-256 54c070cd502ce0a90e05e2b47dd1d4a0e062365a6b3de3f7e5fcee3f0313e3c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for zensus2pgsql-0.2.0.tar.gz:

Publisher: publish.yml on travishathaway/zensus2pgsql

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zensus2pgsql-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: zensus2pgsql-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zensus2pgsql-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48f6a416da726dcde53dc603e671f2ecd3241f1f9138322a400396bb0e1eba84
MD5 6bcf293d19f15047b063f850241860ca
BLAKE2b-256 3c5c04aa1b28942482e2bd43214a819ce8c245dad03b8570ac3a87be7ceb4154

See more details on using hashes here.

Provenance

The following attestation bundles were made for zensus2pgsql-0.2.0-py3-none-any.whl:

Publisher: publish.yml on travishathaway/zensus2pgsql

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page