Skip to content

dstrants/grdatapy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greek data API python client

This repo is a simple client for the greek open data platform written in python. This work is inspired by the similar endiavour writen in Go from @ppapapetrou76!

Note: I plan to add a cli, hopefully I will find the time to do so after adding all the available endpoints Note2: Some of the endpoints are greatly outdated. Always refer to the official site for the available time ranges.

Endpoints available

Health

Endpoint related to national health systems

Name Description client method Status
vaccinations CoVid 19 vaccination stats per region per day .vaccinations
efet_inpection Number of efet inpections per year .efet_inspections
pharmacists Number of existing, new, and retired pharmacists per quarter .pharmacists
pharmacies Number of existing, new, and closed pharmacies per quarter .pharmacies
doctors Number of existing, new, and retired doctors per quarter .doctors
dentists Number of existing, new, and retired dentists per quarter .dentists

Usage example

This section is a very minimal introduction into the client. I will try to generate the docs soon to offer a more complete documentation.

To iniate the client you need an API key that you can retrieve from here. After filling in the form, you will receive an email with personal api token. You can pass the token either as an argument to the Client class or as an enviroment varialbe GRDATA_API_KEY. If you do not pass the key as an argument the environment variable will be used as a fallback. If none of this is filled in the client will raise a ValueError.

# Using the token as argument
client = Client("my_api_key_value")

# doctors
client.doctors()

# Vaccinations                     # from date    # to date
vaccinations = client.vaccinations("2021-04-01", "2021-04-20")

# Basic aggregation per date (more to be added soon 🤞🏽)
vaccinations.group_by_date()

About

A simple client for the greek goverment data api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages