Skip to main content

High level utilities for a subset of boto3 operations common for AWS serverless development in Python.

Project description

xoto3

xoto3 (pronounced zoto-three) is a layer of useful micro-utilities for boto3 (the AWS Python library) particularly suitable for serverless development.

These come from years of experience developing a serverless platform at XOi Technologies, and represent real production code.

Features

Some of the features included:

  • A more general purpose boto3 paginator.

  • Higher-level abstractions for DynamoDB, including:

    • a transactional single-item update that allows you to express your update transformation in pure Python
    • automatic safeguards against various sorts of data that DynamoDB won't accept.
    • transparent BatchGet and BatchWrite utilities that work around the many annoyances of boto3 and DynamoDB itself.
    • composable query interfaces that make writing basic queries against DynamoDB fun.

    see readme for examples

  • Cloudwatch Insights and Log Groups Query URL formatters.

  • General-purpose AWS Lambda finalization code, to make sure buffered IO gets a chance to flush before your Lambda gets paused.

  • Wrapper for SSM parameter puts and gets, including built-in support for parameter values larger than what SSM will accept by automatically splitting your values and reconstructing them on gets.

Various other utilities are included as well - feel free to poke through the source code.

None of these features "rely" on any of the others, so all of the power is left in your hands. This is not a framework; just a set of mostly pure-functional utilities, with a couple of handy wrappers for boto3 functions that perform IO.

Other Utilities

Some fairly general-purpose utilities are also included. See the readme for more details.

Some highlights:

  • tree_map - recursively map through a tree of Python builtins
  • lazy - general purpose lazy-loading container
  • Various serialization utilities (datetimes, decimals, JSON helpers)
  • pipe_multiprocessing - a Process Pool for places like AWS Lambda where Python's built-in shared memory-dependent Pool does not work.

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

xoto3-1.3.0.tar.gz (53.9 kB view details)

Uploaded Source

File details

Details for the file xoto3-1.3.0.tar.gz.

File metadata

  • Download URL: xoto3-1.3.0.tar.gz
  • Upload date:
  • Size: 53.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for xoto3-1.3.0.tar.gz
Algorithm Hash digest
SHA256 67f3da3a2f126f9a216e689bf5ff3e16a8b8d29c6f3f463c6b0757f718f77d7c
MD5 431dfcc755d123eff6847c890dc17351
BLAKE2b-256 025d44489183098c8b359217ec0afee8bbd32fe46d2f4f92147a589e48a7d295

See more details on using hashes here.

Supported by

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