CorrelAid / pystatis

MIT License
9 stars 1 forks source link

Support Zensus 2022 #134

Closed bergnerjonas closed 2 months ago

bergnerjonas commented 4 months ago

The new zensus 2022 data release started: https://ergebnisse.zensus2022.de/datenbank/online The new documentation can be found here: https://ergebnisse.zensus2022.de/datenbank/online/docs/ZENSUS-Webservices_Einfuehrung.pdf Tasks:

bergnerjonas commented 4 months ago

Current workaround: manually configure ~/.pystatis/config.ini: [zensus] base_url = https://ergebnisse.zensus2022.de/api/rest/2020/ username = password = doku = https://ergebnisse.zensus2022.de/datenbank/online/docs/ZENSUS-Webservices_Einfuehrung.pdf

=> Note that one needs to register a new account under https://ergebnisse.zensus2022.de/datenbank/online/

pmayd commented 4 months ago

There is a second way by deleting your config, easiest with pystatis.config.delete_config(). Next time you import pystatis it will create a new default config with the updated base url. After we publish a new release. Or manually deleting it, of course. If you have a . Env file with your credentials a single call to setup_credentials refills everything.