Skip to main content

Kinesis utilities

PyPI

Miscellaneous utilities for AWS Kinesis.

Installation

pip install kinesisutils

To install the development version:

pip install git+https://github.com/findhotel/kinesisutils

Usage

At the moment there is only one utility implemented: a Python generator that reads records from a Kinesis stream. You can use it like this:

import json

from kinesisutils.kinesisutils import KinesisGenerator

# Hit Kinesis with at most 10 requests per second, usin json.loads to
# deserialize the Kinesis records (the default). You could deactivate record
# deserialization by setting des=None.
kg = KinesisGenerator("stream_name", rqs=10, des=json.loads)

for rec in kg:
    print(rec)

By default the generator will keep pulling records from Kinesis for 60 seconds. You can customize this timeout if you want:

from kinesisutils.kinesisutils import KinesisGenerator

kg = KinesisGenerator("stream_name", timeout=30)

for rec in kg:
    print(rec)

Contact

If you have questions, bug reports, suggestions, etc. please create an issue on the GitHub project page. PRs are also welcome.

License

This software is licensed under the MIT license.

See License file.

© 2017 German Gomez-Herrero, Find Hotel and others.

Metadata

Release files for kinesisutils 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kinesisutils 0.0.5
File Size Uploaded Provenance Actions
kinesisutils-0.0.5.tar.gz 3.3 kB Without provenance Details for kinesisutils-0.0.5.tar.gz

Release files / kinesisutils-0.0.5.tar.gz

Download URL kinesisutils-0.0.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f3de8a3075c2bd3ea7fe13faa2402c2b7e018c3105fbc44c787940d24ea3cd93
BLAKE2b-256 checksum
How to use checksums
80371b316eccd67f7d20829d45a1dcfdef3732baa77027e9038676ee49896d9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for kinesisutils 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page