Skip to content
Snippets Groups Projects
Verified Commit b305a8eb authored by David Beniamine's avatar David Beniamine
Browse files

Data example

parent 580bfcbd
Branches
No related tags found
No related merge requests found
...@@ -6,10 +6,14 @@ It works as follow ...@@ -6,10 +6,14 @@ It works as follow
``` ```
data/ data/
mydata.py # Python script exposing three methods __init__.py # make the path importable
mydata.py # Python script exposing the following methods
# extractLastData() -> scraps the last data and return the downloaded file path # extractLastData() -> scraps the last data and return the downloaded file path
# Upload(path) -> upload data contained in path # upload_data(path) -> upload data contained in path
# getDataSample() -> return a sample data for debugging pupose # get_sample() -> return a sample data for debugging pupose
# get_name() -> return the importer name
# get_desc() -> return the importer description
# get_last_import_info() -> return some information concerning the last import
dashboard/ dashboard/
myfirstdashboard.ipynb # Ipynotebook dashboard that will be rendered by voila myfirstdashboard.ipynb # Ipynotebook dashboard that will be rendered by voila
myfirstdashboard_housekeeping.py # Python script that generates data aggregates for myfirstdashbord myfirstdashboard_housekeeping.py # Python script that generates data aggregates for myfirstdashbord
......
def get_name():
return "Example"
def get_desc():
return "Script d'exemple de gestion de données"
def get_sample():
return "Col1,Col2,Col3\naaa,bbb,ccc"
def upload_data(path):
print(path)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment