Skip to main content

amba-event-stream for kafka

Project description

amba-event-stream

PyPI

The Amba Analysis Streams package is used as a Kafka connection wrapper to abstract from infrastructure implementation details by providing functions to connect to Kafka and PostgreSQL. It defines the event model used in the streaming platform and provides base consumer and producer classes. The package is implemented as a python package that is hosted on pypi.org, and documented with mkdocs.

The consumer and producer are capable of running in multiple processes to allow for parallel processing to better utilize modern CPUs. Both have built in monitoring capabilities: a counter shared by all processes is updated for each processed event. A thread running a function every few seconds is checking the counter and resetting it. If no data is processed over a defined period of time (meaning multiple consecutive check function runs), the container is restarted automatically by closing all python processed. This heart beat function ensures that even unforeseeable errors, such as container crashes or blockings are resolved by restarting the container and providing a clean system state.

more Information can be found here

Installation

pip install amba-event-stream

Releasing

Releases are published automatically when a tag is pushed to GitHub.

# Set next version number
export RELEASE=x.x.x

# Create tags
git commit --allow-empty -m "Release $RELEASE"
git tag -a $RELEASE -m "Version $RELEASE"

# Push
git push upstream --tags

Project details


Release history Release notifications | RSS feed

This version

1.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amba-event-stream-1.0.2.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

amba_event_stream-1.0.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file amba-event-stream-1.0.2.tar.gz.

File metadata

  • Download URL: amba-event-stream-1.0.2.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for amba-event-stream-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fd7d2b2557a1046aa1f81ce7b00e04fa5c40376e056b99631e51628ec5087fc9
MD5 4311ea24992035c88747d9eb7bbd5a96
BLAKE2b-256 7583a797c354a854f06c3ff71149309c66107096b88d6c28ac303b8f3ae1628a

See more details on using hashes here.

File details

Details for the file amba_event_stream-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: amba_event_stream-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for amba_event_stream-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35318d13642e98998760ef7a3269b3e201fdb0be063c8e32425090e8735bc0f4
MD5 c9a090fbd1c073430cf102c2abef3af5
BLAKE2b-256 acf36272f879ec706c661865be58ec80106ccf0f954713b71fe31524985bdb0b

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