A Python CLI program that collects Zensus GIS data from Germany and imports it into PostgreSQL
Project description
German census data, now in PostgreSQL!
zensus2pgsql
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 git+ssh://git@github.com:/travishathaway/zensus2pgsql.git
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 take 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
- Create a pull request to accomplish either of the two above
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zensus2pgsql-0.1.0.tar.gz.
File metadata
- Download URL: zensus2pgsql-0.1.0.tar.gz
- Upload date:
- Size: 157.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e76e583a473e2ebd50ea392d69c977b2d1638f22a8b1345d68cbb6f51c501a
|
|
| MD5 |
9b8f42d88a0302ad7126bd159775f522
|
|
| BLAKE2b-256 |
7d8f4e19acaf66950fb7656be1229f6a3808d6f913ca1258b99c2791586209fd
|
Provenance
The following attestation bundles were made for zensus2pgsql-0.1.0.tar.gz:
Publisher:
publish.yml on travishathaway/zensus2pgsql
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zensus2pgsql-0.1.0.tar.gz -
Subject digest:
58e76e583a473e2ebd50ea392d69c977b2d1638f22a8b1345d68cbb6f51c501a - Sigstore transparency entry: 715971854
- Sigstore integration time:
-
Permalink:
travishathaway/zensus2pgsql@62768bc0b38c529708ffab66eabe0a70cff0b020 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/travishathaway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@62768bc0b38c529708ffab66eabe0a70cff0b020 -
Trigger Event:
release
-
Statement type:
File details
Details for the file zensus2pgsql-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zensus2pgsql-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5244c4d873e84fa3a23323933b149064ca7c48e3dc43581544c450e1dedffc4
|
|
| MD5 |
a4c5716d7f81454e1980786d72fb555f
|
|
| BLAKE2b-256 |
99830e61c6ea9167fe11a78affd77e14cd1fdc244df237294ead240ec7e10af1
|
Provenance
The following attestation bundles were made for zensus2pgsql-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on travishathaway/zensus2pgsql
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zensus2pgsql-0.1.0-py3-none-any.whl -
Subject digest:
a5244c4d873e84fa3a23323933b149064ca7c48e3dc43581544c450e1dedffc4 - Sigstore transparency entry: 715971862
- Sigstore integration time:
-
Permalink:
travishathaway/zensus2pgsql@62768bc0b38c529708ffab66eabe0a70cff0b020 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/travishathaway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@62768bc0b38c529708ffab66eabe0a70cff0b020 -
Trigger Event:
release
-
Statement type: