Skip to main content

A Python library for generating synthetic time series data

Project description

Synthetic Time Series Data Generator

A Python library for generating synthetic time series data

MarineGEO circle logo

Installation

Repo

After cloning this repo and creating a virtual environment, run the following command:

pip install --editable .

PyPi

Coming soon

Usage

d = DataGen()
d.start_datetime = "2019-01-01"
d.end_datetime = "2019-01-03"
d.granularity = Granularity.FIVE_MIN
d.add_dimension("product", random_choice(["A", "B", "C", "D"]))

metric1_trend = SinusoidalTrend(name="sine", amplitude=10, freq=24, phase=0, noise_level=10)

d.add_metric(name="temperature", trends=[metric1_trend])

metric2_trend = SinusoidalTrend(name="sine", amplitude=1, freq=12, phase=0, noise_level=2)
metric3_trend = LinearTrend(name="linear", limit=100, offset=10, noise_level=1)

d.add_metric(name="humidity", trends=[metric2_trend,metric3_trend])
d.generate_data()
df = d.data

# Use utility functions
processed_df = some_function(df)

Release method

  1. git tag <x.x.x>
  2. git push origin <x.x.x>

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

ts_data_generator-0.0.1a6.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

ts_data_generator-0.0.1a6-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file ts_data_generator-0.0.1a6.tar.gz.

File metadata

  • Download URL: ts_data_generator-0.0.1a6.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ts_data_generator-0.0.1a6.tar.gz
Algorithm Hash digest
SHA256 89adfe2a1d14b3ec5bd25eba75cd8238331a965d6fafea4f3846423f7d6afdf6
MD5 174ad6b11b1470600a6fa928ce83f294
BLAKE2b-256 251387304826a0c90d89e861f15a7a4ea5960ee4e588a4a164f45cd5b59ccda7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ts_data_generator-0.0.1a6.tar.gz:

Publisher: ci.yaml on manojmanivannan/ts-data-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ts_data_generator-0.0.1a6-py3-none-any.whl.

File metadata

File hashes

Hashes for ts_data_generator-0.0.1a6-py3-none-any.whl
Algorithm Hash digest
SHA256 8f85f6a9c9746b0c23b2422880a970e1feee50eae7c8f822f88adf1f6a3c6e0d
MD5 a4ea4909bf50952793e20b574ccf5e20
BLAKE2b-256 8e73c3ff16544e83b5e30bd385d01dae54908cb9d6202696b3ccc6fb3fe3ebeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ts_data_generator-0.0.1a6-py3-none-any.whl:

Publisher: ci.yaml on manojmanivannan/ts-data-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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