Package: deutschland
DeutschlandA python package that gives you easy access to the most valuable datasets of Germany.InstallationpipinstalldeutschlandDevelopmentFor development poetry version>=1.2.0is required.Geographic dataFetch information about streets, house numbers, building outlines, …fromdeutschland.geoimportGeogeo=Geo()# top_right and bottom_left coordinatesdata=geo.fetch([52.530116236589244,13.426532801586827],[52.50876180448243,13.359631043007212])print(data.keys())# dict_keys(['Adresse', 'Barrierenlinie', 'Bauwerksflaeche', 'Bauwerkslinie', 'Bauwerkspunkt', 'Besondere_Flaeche', 'Besondere_Linie', 'Besonderer_Punkt', 'Gebaeudeflaeche', 'Gebaeudepunkt', 'Gewaesserflaeche', 'Gewaesserlinie', 'Grenze_Linie', 'Historischer_Punkt', 'Siedlungsflaeche', 'Vegetationslinie', 'Verkehrsflaeche', 'Verkehrslinie', 'Verkehrspunkt', 'Hintergrund'])print(data["Adresse"][0])# {'geometry': {'type': 'Point', 'coordinates': (13.422642946243286, 52.51500157651358)}, 'properties': {'postleitzahl': '10179', 'ort': 'Berlin', 'ortsteil': 'Mitte', 'strasse': 'Holzmarktstraße', 'hausnummer': '55'}, 'id': 0, 'type': 'Feature'}For the detailed documentation of this API seehereThe data is provided by theAdV SmartMapping. The team consists of participants from the German state surveying offices, the Federal Agency for Cartography and Geodesy (BKG), the German Federal Armed Forces (Bundeswehr ZGeoBW) and third parties from research and education.Company DataBundesanzeigerGet financial reports for all german companies that are reporting to Bundesanzeiger.
Morefromdeutschland.bundesanzeigerimportBundesanzeigerba=Bundesanzeiger()# search termdata=ba.get_reports("Deutsche Bahn AG")# returns a dictionary with all reports found as fulltext reportsprint(data.keys())# dict_keys(['Jahresabschluss zum Geschäftsjahr vom 01.01.2020 bis zum 31.12.2020', 'Konzernabschluss zum Geschäftsjahr vom 01.01.2020 bis zum 31.12.2020\nErgänzung der Veröffentlichung vom 04.06.2021',Big thanks to Nico Duldhardt and Friedrich Schöne, whosupported this implementation with their machine learning model.HandelsregisterThe code for the Handelsregister moved to thisrepo.Consumer Protection DataLebensmittelwarnungGet current product warnings provided by the german federal portal lebensmittelwarnung.de.fromdeutschland.lebensmittelwarnungimportLebensmittelwarnunglw=Lebensmittelwarnung()# search by content type and region, see documetation for all available paramsdata=lw.get("lebensmittel","berlin")print(data)# [{'id': 19601, 'guid': 'https://www.lebensmittelwarnung.de/bvl-lmw-de/detail/lebensmittel/19601', 'pubDate': 'Fri, 10 Feb 2017 12:28:45 +0000', 'imgSrc': 'https://www.lebensmittelwarnung.de/bvl-lmw-de/opensaga/attachment/979f8cd3-969e-4a6c-9a8e-4bdd61586cd4/data.jpg', 'title': 'Sidroga Bio Säuglings- und Kindertee', 'manufacturer': 'Lebensmittel', 'warning': 'Pyrrolizidinalkaloide', 'affectedStates': ['Baden-Württemberg', '...']}]Federal Job OpeningsNRWVERENAGet open substitute teaching positions in NRW fromhttps://www.schulministerium.nrw.de/BiPo/Verena/angebotefromdeutschland.verenaimportVerenav=Verena()data=v.get()print(data)# a full example data can be found at deutschland/verena/example.md# [{ "school_id": "99999", "desc": "Eine Schule\nSchule der Sekundarstufe II\ndes Landkreis Schuling\n9999 Schulingen", "replacement_job_title": "Lehrkraft", "subjects": [ "Fach 1", "Fach 2" ], "comments": "Bemerkung zur Stelle: Testbemerkung", "duration": "01.01.2021 - 01.01.2022", ...} ...]AutobahnGet data from the Autobahn.fromdeutschlandimportautobahnfromdeutschland.autobahn.apiimportdefault_apifrompprintimportpprintautobahn_api_instance=default_api.DefaultApi()try:# Auflistung aller Autobahnenapi_response=autobahn_api_instance.list_autobahnen()pprint(api_response)# Details zu einer Ladestationstation_id="RUxFQ1RSSUNfQ0hBUkdJTkdfU1RBVElPTl9fMTczMzM="# str |api_response=autobahn_api_instance.get_charging_station(station_id)pprint(api_response)exceptautobahn.ApiExceptionase:print("Exception when calling DefaultApi->get_charging_station:%s\n"%e)For the detailed documentation of this API seeherePresseportalNot available for now due to changes in the API.Auto-Generated API-ClientsbundesratFor the detailed documentation of this API seeherebundestagFor the detailed documentation of this API seeheredestatisFor the detailed documentation of this API seeheredwdFor the detailed documentation of this API seehereinterpolFor the detailed documentation of this API seeherejobsucheFor the detailed documentation of this API seehereladestationenFor the detailed documentation of this API seeheremudabFor the detailed documentation of this API seehereninaFor the detailed documentation of this API seeherepolizei_brandenburgFor the detailed documentation of this API seehererisikogebieteFor the detailed documentation of this API seeheresmardFor the detailed documentation of this API seeherestrahlenschutzFor the detailed documentation of this API seeheretravelwarningFor the detailed documentation of this API seeherezollFor the detailed documentation of this API seehere