Skip to main content

Library that encapsulate Boto3 in option.Result

Project description

Boto3-result

Library that encapsulate Boto3 in option.Result

  • One class for each AWS service
  • Returning Result instead of throwing exception
  • Tested with library versions in requirements.txt
  • Source on github

Requirements

  • python3/pip
  • A valid boto3 configuration as explained in boto3 config

Use

pip install boto3r

Examples

    from boto3r.s3 import S3
    import os

    s3=S3.create().unwrap()
    
    S3_BUCKET = os.environ['S3_TEST_BUCKET']
    key = 'test-key'
    s = 's3_test'
    
    r=s3.put_object(S3_BUCKET, key, s) \
        .flatmap(lambda _: s3.get_attributes(S3_BUCKET, key)).flatmap()
    
    print(r.unwrap()['LastModified'])

Test running

Requirements:

  • Env vars:
    • S3_TEST_BUCKET with writing permission
./bin/run_test.sh

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

boto3r-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

boto3r-0.0.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file boto3r-0.0.4.tar.gz.

File metadata

  • Download URL: boto3r-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for boto3r-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0eed6edbe78133582e9e5581322fe7b4a97886e605facaa4c2480683bcdbb213
MD5 1ff5aed0ae43955bf94d662b22640cdb
BLAKE2b-256 864360c3bbb52545b0358907e7378c8276feb9a7c985112d96fd4845be37d02d

See more details on using hashes here.

File details

Details for the file boto3r-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: boto3r-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for boto3r-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be205697acdd815aeb1a1f8ac55018393427b97cbddb886bc853eae43ca68538
MD5 e0a7c535d5e2d86c6ce0e89db8442537
BLAKE2b-256 8d08093a07a0122370b138078c1b1c18f1bdcd7be5de6e0b81307183dd241fd2

See more details on using hashes here.

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