Glueing together some object storage functionality into a easy to use python library.
Intent is to bundle up commonly used functions into a single library that can be imported into other projects.
pip install nr_objstore_util
import NRUtil.NRObjStoreUtil as NRObjStoreUtil
objstor = NRObjStoreUtil.ObjectStoreUtil(
    "name of object store host",
    "object store user / access",
    "object store secret",
    "object store bucket"
)First populate the following environment variables:
- OBJ_STORE_BUCKET
 - OBJ_STORE_SECRET
 - OBJ_STORE_USER
 - OBJ_STORE_HOST
 
export OBJ_STORE_BUCKET=bucket_name
export OBJ_STORE_SECRET=sdf3jkllvjiojl;a4sf892ikfjovj
export OBJ_STORE_USER=ostoreuser
export OBJ_STORE_HOST=nrs.objectstore.gov.bc.caThen create the NRObjStoreUtil object without args:
import NRUtil.NRObjStoreUtil as NRObjStoreUtil
objstor = NRObjStoreUtil.ObjectStoreUtil()... see the examples folder for examples