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
Metadata
Release files for nr-objstore-util 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nr_objstore_util-0.11.0.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nr_objstore_util-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.6 kB
Release files / nr_objstore_util-0.11.0.tar.gz
| Download URL | nr_objstore_util-0.11.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26c13d21e6c302d820eeab2578a41a4e71a2d5ab759bf5dfd049930bb787998e
|
|
BLAKE2b-256 checksum How to use checksums |
f785c3d5aee2d95a01c2b1b82e02f02f38a51c45617a29f7d5a3b384168db39d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / nr_objstore_util-0.11.0-py3-none-any.whl
| Download URL | nr_objstore_util-0.11.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
458cf11479d101c8016b7caba16bd05f2e0889e38d93a51b7aa45a8cdf88f470
|
|
BLAKE2b-256 checksum How to use checksums |
40bd5aa873fe94be40564a6afbda9d3e37eda8dae9d721d5af20819c3df0a2c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|