Skip to main content

ALeRCE Alert Processing Framework.

Project description

Alert Processing Framework (apf)

Documentation Status codecov

apf is a framework developed to create a dockerized pipeline to process an alert stream, that can be easily be deployed in a local machine or distributed using Kubernetes.

First developed to process ZTF data it is capable to be used for any stream/static data processing pipeline.

Installing apf

apf installation can be done with pip

pip install apf_base

This will install the apf python package and apf command line script.

apf design

apf is based on steps conected through Apache Kafka topics.

Each step is composed by a consumer and is isolated from other steps inside a docker container.

When running, the step calls the execute() method for each message or message batch consumed. A step can have multiple producers and databases back-ends plugins that can be accessed inside the execute method to have a more complex logic.

This generic step greatly reduce the development of each component of the pipeline and make it easier to test each component separately.

apf features

  • Automatic Metric Sender (KafkaMetrics)
  • Automatic Code Generation (apf new-step <step_name>)
  • Multiple Consumer Plugins:
    • Kafka
    • AVRO
    • CSV
    • JSON
  • Producers:
    • Kafka
    • CSV
  • Metrics:
    • Kafka

apf Quickstart

A quick-start guide to create a new step can be found here.

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

apf_base-2.3.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

apf_base-2.3.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file apf_base-2.3.0.tar.gz.

File metadata

  • Download URL: apf_base-2.3.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for apf_base-2.3.0.tar.gz
Algorithm Hash digest
SHA256 cc87f580938d30d6c425e211267feb12b3ccc9903a203197360e75c4b3806ed2
MD5 1f67bf8c386e15f51b44ecb2a77cb39a
BLAKE2b-256 713ce37b305edad3e422f12487af83d56f8e47d3bdb29b1c2f5c690e0d2f4f6f

See more details on using hashes here.

File details

Details for the file apf_base-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: apf_base-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for apf_base-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fd871f31a0b382ceca09c2d0f9cf94488a76a80f5c1edbfe4d13843a570d366
MD5 ff0ab096a4ca57af17ebee3c60809ddd
BLAKE2b-256 0862f60a2e8ea68e99d5f21bc46d6a96378a5ddc82e7f68fcdcb329c38dc6a6b

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