Skip to content

pascal-huber/swissvotes-api

Repository files navigation

Swissvotes API

This repo contains an unofficial API for the Swissvotes-Datensatz published on swissvotes.ch.

Demo: https://swissvotes-api.resolved.ch

Disclaimer

This is a first version and the API is still subject to breaking changes.

License

  • Code in this repository is licensed under the MIT License.
  • Data in data/swissvotes.ch.csv is third-party data from Swissvotes (Année Politique Suisse, Universität Bern), licensed under CC BY 4.0 — see LICENSE-DATA for the required attribution. This data is not created by this project's authors.

Data

The data from the (official) swissvotes CSV is changed as follows:

  • Field names with an underscore are split (for example "info\_br\_de": "..." becomes "info": {"br": {"de": "..."}}}).
  • Fields without a value are omitted.

Running it

docker pull ghcr.io/pascal-huber/swissvotes-api:latest
docker run -d --name votes-api -p 5000:5000 ghcr.io/pascal-huber/swissvotes-api:latest

Build Instructions

docker build -t votes-api .
docker run -d --name votes-api -p 5000:5000 votes-api

About

Unofficial API for the Data on swissvotes.ch

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE-DATA

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors