Skip to main content

amazon-kinesis-utils: a library of useful utilities for Amazon Kinesis

Project description

amazon-kinesis-utils

A library of useful utilities for Amazon Kinesis

PyPi version t Code style: black Language grade: Python

CircleCI codecov Updates Documentation Status

Reference

See: https://amazon-kinesis-utils.readthedocs.io/en/latest/

Usage

# import submodule you want to use with from import
from amazon_kinesis_utils import kinesis

def lambda_handler(event, context):
    raw_records = event['Records']

    # kinesis.parse_records parses aggregated/non-aggregated records, with or without gzip compression
    # it even unpacks CloudWatch Logs subscription filters messages
    for payload in kinesis.parse_records(raw_records):
        # kinesis.parse_records is a generator, so we only have one payload in memory on every iteration
        print(f"Decoded payload: {payload}")

Contributing

Make sure to have following tools installed:

macOS

$ brew install pre-commit

# set up pre-commit hooks by running below command in repository root
$ pre-commit install

# install sphinx
$ pip install sphinx sphinx_rtd_theme

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

amazon_kinesis_utils-0.1.8.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

amazon_kinesis_utils-0.1.8-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file amazon_kinesis_utils-0.1.8.tar.gz.

File metadata

  • Download URL: amazon_kinesis_utils-0.1.8.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for amazon_kinesis_utils-0.1.8.tar.gz
Algorithm Hash digest
SHA256 209170437536708c604efd2a5fbbc0309a7677e497c8e8d9c376614e12d14fc7
MD5 0f30de1350c323d1ab126b969c799b54
BLAKE2b-256 00c1cdf19b49b060cc750e76ca2d013f9abb12a92c1b9f21aaf23431a39fce74

See more details on using hashes here.

File details

Details for the file amazon_kinesis_utils-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: amazon_kinesis_utils-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for amazon_kinesis_utils-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 817ee2e3f61bfc7d0f5bf2c190e49fedf40d4bd490e26f93b0adb2598ffedfd9
MD5 3508ba3291bdddd1eaf3e6ed793507bd
BLAKE2b-256 5ff85fe7c726f4e6b176102e7b68c96bbffea1201ab44e44da413d8147d68331

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