Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nr-objstore-util

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nr-objstore-util

Utility to bundle commonly used object store operations into an easy to use module

  • 0.11.0
  • PyPI
  • Socket score

Maintainers
1

Lifecycle:Maturing

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc