Skip to main content

No project description provided

Project description

Ebb Time Series

EbbCarbon package for working with time series data and databases. Time series data is a type of data that is collected over certain time intervals and is used to analyze trends, patterns, and behavior over time. This ebb-time-series package is built to be used in tandem with the ebb-events package to assist in the flow of time series data from event messages to various time series databases and and to read from various time series databases to export and analyze the data.

For writing to time series databases: Once an event is consumed off of a message broker, use this package to write the event's data to your desired database for storage and further analysis. The combined use of these two EbbCarbon packages will enable you to streamline your data pipeline from edge node all the way to the cloud. NOTE: In order to use this package, the event writers expect to receive ebb-event EventConsumer objects with payloads of the ebb-event structure.

For reading and exporting from time series databases: TBD...

Use:

Install the ebb-time-series package from pip installer via: pip install ebb-time-series. Use ebb-time-series to write your event message data to a database.

from ebb_time_series.writers.aws_timestream_data_writer import AwsTimestreamDataWriter
from ebb_events.consumers.event_consumer import EventConsumer

my_ebb_event_payload = {...}  # payload matching ebb-event structure from message broker
my_consumer = EventConsumer(payload=my_ebb_event_payload)
my_writer = AwsTimestreamDataWriter(aws_region="my-aws-region", db_name="my-db-name", table_name="my-table-name")

# Parsing of data in my_consumer is abstracted away in this write_event_records method
try:
    my_writer.write_event_records(consumer=my_consumer)
except EbbTimeSeriesWriteException
    # handle exception here

Data Structure:

The time series writer parses the data in the event payload expecting the data to follow this structure:

{
    "my_variable_1": {
        "value": ___,
        "unites": ___,
    },
    "my_variable_2": {
        "value": ___,
        "unites": ___,
    },
    "my_variable_3": {
        "value": ___,
        "unites": ___,
    },
    ...
}

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

ebb_time_series-0.2.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

ebb_time_series-0.2.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ebb_time_series-0.2.1.tar.gz.

File metadata

  • Download URL: ebb_time_series-0.2.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Darwin/23.4.0

File hashes

Hashes for ebb_time_series-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b667cd6762afb069fec6ac35f6418f6d8726f0efc83a92048e30571ed904c659
MD5 ad073689a1c83bbaa62612233ff8116e
BLAKE2b-256 807f52a7ce1a31564f775435c5f3a4978a109961a96cd6dfa68ba5fb48426175

See more details on using hashes here.

File details

Details for the file ebb_time_series-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ebb_time_series-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Darwin/23.4.0

File hashes

Hashes for ebb_time_series-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94cf869e59653a95bcb36478633a54e032cdecfa4c2d1a664d3aa44a91963bde
MD5 22457808df48b3cefb481d1a43284631
BLAKE2b-256 e03d9c739ccb774d0f60d52db9f4b54d710bd8eccf0118a547b3f8fbf1b41a87

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