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
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
Release history Release notifications | RSS feed
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
File details
Details for the file dova-ladekast-fetcher-0.0.2.tar.gz
.
File metadata
- Download URL: dova-ladekast-fetcher-0.0.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b348e58e2c91464879ae4385fe0834cf9a056fc0c0d437513afb9acb08487638 |
|
MD5 | d43622f2ad83ac55f8e88a366e0b25dc |
|
BLAKE2b-256 | ee6c01a5ee6218a8dd8afb7444e1c7523d3e7f9dc508eefa97396f3bbb4face9 |
File details
Details for the file dova_ladekast_fetcher-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: dova_ladekast_fetcher-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781640e43373a0d5a88097d82f5c30e55e556297577408f47635573a0d45222a |
|
MD5 | 17e1620f667194c0cfbf8a106c11a4fc |
|
BLAKE2b-256 | 1b1722760f07fd30dd5d40020663b33e56be4e9935734f4f3da270dfa8dacb44 |