🔗 Dependency

Add in production folder file needed by your notebooks

Simple

Copy in production this notebook as a dependency and allow notebooks to use it.

naas.dependency.add("test.csv")

Debug

naas.dependency.add(debug=True)

List

You can list all version of a file pushed into the production:

Current file

naas.dependency.list()

Other file

naas.dependency.list(path="path/to/my/super/data.csv")

Get

You can get a version of a file pushed into the production:

Get the last one

naas.dependency.get()

With a file path

naas.dependency.get(path="path/to/my/super/data.csv")

With history id

naas.dependency.get(histo="20201008101221879662")

Combined

naas.dependency.get(path="path/to/my/super/data.csv", histo="20201008101221879662")

Clear

You can clear the previous version of a file pushed into the production:

One

naas.dependency.clear(histo="20201008101221879662")

Other Notebook

naas.dependency.clear(path="path/to/my/super/data.csv", histo="20201008101221879662")

All

naas.dependency.clear()

All for filepath

naas.dependency.clear(path="path/to/my/super/data.csv")

Delete

You can remove any scheduler capability like that, it takes optionally a path.

Current

naas.dependency.delete()

Other file

naas.dependency.delete(path="path/to/my/super/data.csv")

Debug

naas.dependency.delete(debug=True)

List Dependency

You don't remember how many Dependency notebooks you have?

Simple

naas.dependency.currents()

Raw result

naas.dependency.currents(raw=True)