Copy in production this current file as an asset (file) and allow yourself to get it by calling the returned URL.
naas.assets.add()
You will get URL who downloads this current file when you open it.
If you want to add another file than the current one, give a path:
naas.assets.add("path/to/my/super/data.csv")
inline
: Get a response in your web browser instead of downloading the result.
params = {"inline": True}naas.assets.add(params=params)
naas.assets.add(debug=True)
You can list all version of a file pushed into the production:
naas.assets.list()
naas.assets.list(path="path/to/my/super/data.csv")
You can get a version of a file pushed into the production:
naas.assets.get()
naas.assets.get(path="path/to/my/super/data.csv")
naas.assets.get(histo="20201008101221879662")
naas.assets.get(path="path/to/my/super/data.csv", histo="20201008101221879662")
You can clear the previous version of a file pushed into the production:
naas.assets.clear(histo="20201008101221879662")
naas.assets.clear(path="path/to/my/super/data.csv", histo="20201008101221879662")
naas.assets.clear()
naas.assets.clear(path="path/to/my/super/data.csv")
You can remove any scheduler capability like that, it takes optionally a path.
naas.assets.delete()
naas.assets.delete(path="path/to/my/super/data.csv")
naas.assets.delete(debug=True)
You don't remember how many Assets notebook you have?
naas.assets.currents()
naas.assets.currents(raw=True)