diff --git a/data/Readme.md b/data/Readme.md index ac5dcbe50fc89350df0053b823cd0623e7098ff0..e38ee786ae10f512e7423973eb292aefb5bd56e9 100644 --- a/data/Readme.md +++ b/data/Readme.md @@ -6,10 +6,14 @@ It works as follow ``` 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 - # Upload(path) -> upload data contained in path - # getDataSample() -> return a sample data for debugging pupose + # upload_data(path) -> upload data contained in path + # 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/ myfirstdashboard.ipynb # Ipynotebook dashboard that will be rendered by voila myfirstdashboard_housekeeping.py # Python script that generates data aggregates for myfirstdashbord diff --git a/data/__init__.py b/data/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/example.py b/data/example.py new file mode 100644 index 0000000000000000000000000000000000000000..298fcec4f2f86002798a5a93febb321c6177b636 --- /dev/null +++ b/data/example.py @@ -0,0 +1,14 @@ +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)