DEV Community

Felipe Mateos
Felipe Mateos

Posted on

How to allow other people provide you new data

I built an app that allows other people to provide you new data

Category Submission

Wacky Wildcards

its avaliable only on GitHub ('cause its a python notebook)

https://github.com/felmateos/auto-run-notebook

Screenshots

Image description

Image description

Image description

Image description

Description

This repos allows other people to provide new data by opening new pull requests. It is as simple as it follows:

  • fork the repo
  • modify the .env file with some new data
  • open an pull request
  • as it is accepted the workflows starts, doing the following steps:
    • runs the notebook to do:
      • updates the dataset
      • updates the histogram
      • saves it on a png file
    • commits changes to github
  • and... voila. New data and new plot

the idea is quite simple, but it can get extended to whatever the repo owner wants.

Link to Source Code

https://github.com/felmateos/auto-run-notebook

Permissive License

MIT License

Background

I decided to do this 'cause I wanted a way t collect data from other people in a simple way and at the same time allows my aplication to updates itself automatically

How I built it

Just looking for tutorials on Google and watching some YouTube Videos

I used:
Python
Github Actions
and some imagination

Top comments (0)