nimblebox logo
Docs
v2.1.0

nbox.relics.nbx

This is the code for NBX-Relics which is a simple file system for your organisation.

Functions

iconfunctionget_relic_file
[source]
iconfunction_get_stub
[source]
iconfunctionprint_relics
[source]

Classes

iconclassUserAgentType
[source]
iconfunctionall
[source]
iconclassRelicsNBX
[source]
iconfunction__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

iconfunctionset_user_agent
[source]
iconfunction__repr__
[source]
iconfunction_upload_relic_file
[source]
iconfunction_download_relic_file
[source]
iconfunctionput
[source]

Put the file at this path into the relic

iconfunctionput_to
[source]
iconfunctionget
[source]

Get the file at this path from the relic

iconfunctionget_from
[source]
iconfunctionrm
[source]

Delete the file at this path from the relic

iconfunctionhas
[source]
iconfunctionput_object
[source]

wrapper function for putting a python object

iconfunctionget_object
[source]

wrapper function for getting a python object

iconfunctiondelete
[source]

Deletes your relic

iconfunctionlist_files
[source]

List all the files in the relic at path

iconfunctionstart_fs
[source]
nbox SDKnbox provides built in access to all the APIs and packages them in the most user friendly manner.Star 0