Utility to bundle commonly used object store operations into an easy to use module
Project description
Object Storage / S3 Utility Methods
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.
Installing
pip install nr_objstore_util
Creating an NRObjStoreUtil Object by passing credentials
import NRUtil.NRObjStoreUtil as NRObjStoreUtil
objstor = NRObjStoreUtil.ObjectStoreUtil(
"name of object store host",
"object store user / access",
"object store secret",
"object store bucket"
)
Creating an NRObjStoreUtil Object using env vars
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.ca
Then create the NRObjStoreUtil object without args:
import NRUtil.NRObjStoreUtil as NRObjStoreUtil
objstor = NRObjStoreUtil.ObjectStoreUtil()
Examples
... see the examples folder for examples
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nr_objstore_util-0.11.0.tar.gz.
File metadata
- Download URL: nr_objstore_util-0.11.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c13d21e6c302d820eeab2578a41a4e71a2d5ab759bf5dfd049930bb787998e
|
|
| MD5 |
de18ab1bff019ac8575e7b8a91aadd53
|
|
| BLAKE2b-256 |
f785c3d5aee2d95a01c2b1b82e02f02f38a51c45617a29f7d5a3b384168db39d
|
File details
Details for the file nr_objstore_util-0.11.0-py3-none-any.whl.
File metadata
- Download URL: nr_objstore_util-0.11.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
458cf11479d101c8016b7caba16bd05f2e0889e38d93a51b7aa45a8cdf88f470
|
|
| MD5 |
a5101e60b854e6a6f79c9345e411c013
|
|
| BLAKE2b-256 |
40bd5aa873fe94be40564a6afbda9d3e37eda8dae9d721d5af20819c3df0a2c9
|