Skip to main content

JARVICE container environment config wrapper for boto3

Project description

jarboto

JARVICE container environment config wrapper for boto3

Environment configuration

The following values are mandatory:

  • JARVICE_S3_ACCESSKEY
  • JARVICE_S3_SECRETKEY
  • JARVICE_S3_BUCKET

Note that the jarboto.S3 constructor throws jarboto.ConfigError if one of these values is not set

The following values are optional:

  • JARVICE_S3_ENDPOINTURL (defaults to AWS)
  • JARVICE_S3_PREFIX (defaults to output/)
  • JARVICE_S3_REGION (defaults to None)

Usage

Typical usage pattern when looking to conditionally fetch objects either from S3 or from another source:

import jarboto

try:
    buf = jarboto.S3().get(name)
except jarboto.ConfigError:

    # alternate method to fetch object follows
    # ...

except jarboto.S3Error as e:

    # actually failed to fetch object
    print(e)

Notes:

  • Keep S3 object if you intend to perform multiple operations in that context.
  • Run pydoc jarboto.S3 for additional help on method use.

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

jarboto-1.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jarboto-1.1.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jarboto-1.1.0.tar.gz.

File metadata

  • Download URL: jarboto-1.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for jarboto-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f6aab9277e0b2dc0c2e7909ff53424a3a28d2055dac23ef24409da3739f03821
MD5 81f49d9c3a36e8e070cab975b6ec6ded
BLAKE2b-256 7d9087981aa3eb65d93b7a704a055cd6f5af08cfe6e82ea1268062b86ed61b21

See more details on using hashes here.

Provenance

The following attestation bundles were made for jarboto-1.1.0.tar.gz:

Publisher: python-publish.yml on nimbix/jarboto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jarboto-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: jarboto-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for jarboto-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e5670db416facfae24054ee3ff080bc3512088ed9a6f5458b9bb2b2ace5f119c
MD5 fb436065218287cf4d6bc99e46baf116
BLAKE2b-256 1e3e95abfb52db062cbc6524b73b9d9f08fecfe45b0fad5ce65d520e02ead3fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for jarboto-1.1.0-py2.py3-none-any.whl:

Publisher: python-publish.yml on nimbix/jarboto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page