nbox.relics
This is the code for NBX-Relics which is a simple file system for your organisation.
Functions
functionget_relic_file
[source]function_get_stub
[source]functionprint_relics
[source]Classes
classUserAgentType
[source]functionall
[source]classRelics
[source]function__init__
[source](relic_name:str,workspace_id:str,create:bool,prefix:str)
Parameters
- relic_name -
The name of the relic.
- workspace_id -
The workspace ID, if not provided, will be one in global config.
- create -
Create the relic if it does not exist.
- prefix -
The prefix to use for all files in this relic. If provided all the files are uploaded and downloaded with this prefix.
The client for NBX-Relics. Auto switches to different user/agents for upload download
functionset_user_agent
[source]function__repr__
[source]function_upload_relic_file
[source]function_download_relic_file
[source]functionput
[source]Put the file at this path into the relic
functionput_to
[source]functionget
[source]Get the file at this path from the relic
functionget_from
[source]functionrm
[source]Delete the file at this path from the relic
functionhas
[source]functionput_object
[source]wrapper function for putting a python object
functionget_object
[source]wrapper function for getting a python object
functiondelete
[source]Deletes your relic
functionlist_files
[source]List all the files in the relic at path
functionls
[source]Iterate over all the files at the path