Skip to main content

Python class to talk to DOVA ladekast REST API

Project description

dova-ladekast-fetcher

Simple Python package to talk to DOVA Ladekast API.

Goal

The goal of the package is to have an easy interface to use the API in Python.

Python package is developed within Provincie Zuid-Holland. The "DOVA Ladekast API" is developed by DOVA (dova.nu). To get access to the DOVA Ladekast please reach DOVA.

Quick start

Requirements

  1. pip install dova-ladekast-fetcher

Sample code

import getpass
import dova-ladekast-fetcher.api as dlf

# Initiate connection for further sessions
baseUrl = "dova-ladekast-url"
username = getpass.getpass(prompt='DOVA Ladekast username:')
password = getpass.getpass(prompt='DOVA Ladekast password:')
l = ladekast(baseUrl, username, password)

# Download specific dataset
dynamicDatasetUID = "GUID"          # <--- fill in GUID of dataset --->
filePath = "output_directory"       # <--- fill in path to store data --->
# Download the file
l.download(f'ladekast/v1/getdata/{dynamicDatasetUID}', filePath)

Development

Package is hosted on GitHub. After each change increase version number and create a new Release on GitHub. The pipeline will trigger a release to PyPi (see status batch above).

Collaborate?

Send a PR!

Disclaimer

The developers of this package are not affiliated with DOVA.

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

dova-ladekast-fetcher-0.0.2.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

dova_ladekast_fetcher-0.0.2-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

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