A go SDK for the data available via data.gov.gr

Overview

Codacy Badge codebeat badge Fluent Go Testing Quality Gate Status codecov Go Report Card GoDoc

go-data-gov-gr-sdk

A Go based SDK to access the public data provided by the Greek Government and are available at https://www.data.gov.gr/

Quick Start

Get your API Token

Submit the form found here You will receive by email an API token. You will use it to access the data in the example below

Add the SDK as a dependency to your project

go get github.com/ppapapetrou76/go-data-gov-gr-sdk

or if you are using go modules ( recommended )

go mod download github.com/ppapapetrou76/go-data-gov-gr-sdk

Implement a client to read some data

package main

import (
	"fmt"
	"os"
	"time"

	"github.com/ppapapetrou76/go-data-gov-gr-sdk/api"
	"github.com/ppapapetrou76/go-data-gov-gr-sdk/pkg/vaccination"
)

func main() {
	// Fetches the vaccination data for the last 6 days for all areas
	client := api.NewClient("")
	vaccinationData, err := vaccination.Get(client,
		api.NewDefaultGetParams(api.SetDateFrom(time.Now().Add(-fiveDays))),
	)
	if err != nil {
		panic(err)
	}
	// Filter by a specific region
	for _, d := range vaccinationData.FilterByArea("ΘΕΣΣΑΛΟΝΙΚΗΣ") {
		fmt.Fprintf(os.Stdout, "Area:%s, Vaccinations on %v:%d\n", d.Area, d.ReferenceDate, d.DayTotal)
	}
}
") vaccinationData, err := vaccination.Get(client, api.NewDefaultGetParams(api.SetDateFrom(time.Now().Add(-fiveDays))), ) if err != nil { panic(err) } // Filter by a specific region for _, d := range vaccinationData.FilterByArea("ΘΕΣΣΑΛΟΝΙΚΗΣ") { fmt.Fprintf(os.Stdout, "Area:%s, Vaccinations on %v:%d\n", d.Area, d.ReferenceDate, d.DayTotal) } } " aria-label="Copy" class="ClipboardButton btn js-clipboard-copy m-2 p-0 tooltipped-no-delay" data-copy-feedback="Copied!" data-tooltip-direction="w">

Implemented endpoints

To be implemented soon

  • Business and Economy (Small businesses, industry, imports, exports and trade)
  • Crime and Justice (Courts, police, prison, offenders, borders and immigration)
  • Education (Students, training, universities, quaifications)
  • Environment (Weather, flooding, rivers, air quality, geology and agriculture)
  • Health (Includes smoking, drugs, alcohol, medicine performance and hospitals)
  • Society (Employment, benefits, household finances, poverty and population)
  • Technology (Internet, technology and digital adoption)
  • Telecommunication (Telecommunications data, television and radio)
  • Transport (Airports, roads, freight, electric vehicles, parking, buses and footpaths)

data.gov.gr clients / SDK in other languages

Issues
Owner
Papapetrou Patroklos
Papapetrou Patroklos
Nextengine-sdk-go: the NextEngine SDK for the Go programming language

NextEngine SDK for Go nextengine-sdk-go is the NextEngine SDK for the Go programming language. Getting Started Install go get github.com/takaaki-s/nex

null 0 Dec 7, 2021
Commercetools-go-sdk is fork of original commercetools-go-sdk

commercetools-go-sdk The Commercetools Go SDK is automatically generated based on the official API specifications of Commercetools. It should therefor

Flink 0 Dec 13, 2021
Sdk-go - Go version of the Synapse SDK

synapsesdk-go Synapse Protocol's Go SDK. Currently in super duper alpha, do not

null 0 Jan 7, 2022
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

Bruno Souza 49 Dec 28, 2021
AWS Tags Updater - Sync tags with all resources via sheet 🐏🐏

AWS Tags Updater - Sync tags with all resources via sheet ????

PePoDev 0 Nov 29, 2021
GoSearch: Search the Go packages via command-line

GoSearch Search the Go packages for pkg.go.dev via command-line. It supports all search options in Search Help. Installation go get github.com/mingram

MinJae Kwon 51 Nov 28, 2021
Example code to demonstrate how to mock external clients via context.Context

Mocking external client libraries using context.Context This code is paired with a blog post: Mocking external client libraries using context.Context

incident.io 1 Dec 22, 2021
Fetch the Spotify friend activity via Go

spotify-buddylist Fetch the Spotify friend activity via Go Overview The official Spotify API doesn't provide a way to fetch the friend activity feed t

Batuhan Saka 2 Jan 2, 2022
Rest API to get KVB departures - Written in Go with hexagonal architecture and tracing via OpenTelemetry and Jaeger

KVB API Rest API to get upcoming departures per KVB train station Implemented in Go with hexagonal architecture and tracing via OpenTelemetry and Jaeg

Jan Ritter 0 Jan 10, 2022
AWS SDK for the Go programming language.

AWS SDK for Go aws-sdk-go is the official AWS SDK for the Go programming language. Checkout our release notes for information about the latest bug fix

Amazon Web Services 7.3k Jan 15, 2022
A Facebook Graph API SDK For Go.

A Facebook Graph API SDK In Golang This is a Go package that fully supports the Facebook Graph API with file upload, batch request and marketing API.

Huan Du 1k Jan 11, 2022
A Golang SDK for Medium's OAuth2 API

Medium SDK for Go This repository contains the open source SDK for integrating Medium's OAuth2 API into your Go app. Install go get github.com/Medium/

Medium 131 Dec 30, 2021
MinIO Client SDK for Go

MinIO Go Client SDK for Amazon S3 Compatible Cloud Storage The MinIO Go Client SDK provides simple APIs to access any Amazon S3 compatible object stor

High Performance, Kubernetes Native Object Storage 1.5k Jan 12, 2022
Simple no frills AWS S3 Golang Library using REST with V4 Signing (without AWS Go SDK)

simples3 : Simple no frills AWS S3 Library using REST with V4 Signing Overview SimpleS3 is a golang library for uploading and deleting objects on S3 b

Rohan Verma 74 Jan 8, 2022
Twilight is an unofficial Golang SDK for Twilio APIs

Twilight is an unofficial Golang SDK for Twilio APIs. Twilight was born as a result of my inability to spell Twilio correctly. I searched for a Twillio Golang client library and couldn’t find any, I decided to build one. Halfway through building this, I realized I had spelled Twilio as Twillio when searching for a client library on Github.

Ghvst Code 18 Jul 2, 2021
Wechat Pay SDK(V3) Write by Go.

WechatPay GO(v3) Introduction Wechat Pay SDK(V3) Write by Go. API V3 of Office document is here. Features Signature/Verify messages Encrypt/Decrypt ce

luoji 23 Dec 17, 2021
Go Wechaty is a Conversational SDK for Chatbot Makers Written in Go

go-wechaty Connecting Chatbots Wechaty is a RPA SDK for Wechat Individual Account that can help you create a chatbot in 6 lines of Go. Voice of the De

Wechaty 206 Jan 4, 2022
An easy-to-use unofficial SDK for Feishu and Lark Open Platform

go-lark go-lark is an easy-to-use unofficial SDK for Feishu and Lark Open Platform. go-lark implements messaging APIs, with full-fledged supports on b

go-lark-sdk 70 Jan 6, 2022
weixin/wechat/微信公众平台/微信企业号/微信商户平台/微信支付 go/golang sdk

wechat SDK for golang https://github.com/chanxuehong/wechat 招人啦 golang 后端的坑, 趣头条集团下面的创新团队, 现在步入正常轨道了, 前景很好. 要求: golang中高级 自驱、有责任心 沟通没有问题 待遇: open, 看能力

chanxuehong 2.3k Jan 7, 2022