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.3

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.3.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: amba-event-stream-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ab08c7aec43f88823b9d87e0122ac7bd5554365af9b7624aece3519f3858cc32
MD5 7231a760bc181eaa7c109b4fba5775bc
BLAKE2b-256 52de7449c5fd62b1b9460f0d8e1df22a4aff68f45ed80832fd21ee229f171c31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amba_event_stream-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1814874d8180d3e8ac33d9245bf8f03f59056039de35b986913429e8dcd7c1ad
MD5 23b85ba7a2b1e78ef884a7278bd1ea8e
BLAKE2b-256 6be79bac5549e437e45a9da01789f25315d2c2718652d0868eb19314ca74981c

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