Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithWittmann authored Oct 7, 2021
2 parents b4a4cb4 + cac5953 commit 91f05e9
Show file tree
Hide file tree
Showing 47 changed files with 13,459 additions and 4 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,43 @@ 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", ...} ...]


## Autobahn

Get data from the Autobahn.

```python
from deutschland import autobahn
from deutschland.autobahn.api import default_api

from pprint import pprint

autobahn_api_instance = default_api.DefaultApi()

try:
# Auflistung aller Autobahnen
api_response = autobahn_api_instance.list_autobahnen()
pprint(api_response)

# Details zu einer Ladestation
station_id = "RUxFQ1RSSUNfQ0hBUkdJTkdfU1RBVElPTl9fMTczMzM=" # str |
api_response = autobahn_api_instance.get_charging_station(station_id)
pprint(api_response)

except autobahn.ApiException as e:
print("Exception when calling DefaultApi->get_charging_station: %s\n" % e)
```


## Presseportal

For further information see: https://github.com/tcmetzger/pypresseportal

```python
from deutschland.presseportal import PresseportalApi

presseportal = PresseportalApi("YOUR_KEY_HERE")

stories = presseportal.get_stories()
```
1 change: 1 addition & 0 deletions deutschland/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
from .handelsregister.handelsregister import Handelsregister
from .lebensmittelwarnung.lebensmittelwarnung import Lebensmittelwarnung
from .verena.verena import Verena
from .bundesnetzagentur import *
27 changes: 27 additions & 0 deletions deutschland/autobahn/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# flake8: noqa

"""
Autobahn App API
Was passiert auf Deutschlands Bundesstraßen? API für aktuelle Verwaltungsdaten zu Baustellen, Staus und Ladestationen. Außerdem Zugang zu Verkehrsüberwachungskameras und vielen weiteren Datensätzen. # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""


__version__ = "1.0.0"

# import ApiClient
from deutschland.autobahn.api_client import ApiClient

# import Configuration
from deutschland.autobahn.configuration import Configuration

# import exceptions
from deutschland.autobahn.exceptions import OpenApiException
from deutschland.autobahn.exceptions import ApiAttributeError
from deutschland.autobahn.exceptions import ApiTypeError
from deutschland.autobahn.exceptions import ApiValueError
from deutschland.autobahn.exceptions import ApiKeyError
from deutschland.autobahn.exceptions import ApiException
3 changes: 3 additions & 0 deletions deutschland/autobahn/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# do not import all apis into this module because that uses a lot of memory and stack frames
# if you need the ability to import all apis from one package, import them with
# from deutschland.autobahn.apis import DefaultApi
Loading

0 comments on commit 91f05e9

Please sign in to comment.