Skip to main content

Skyworker Processor: {processor_name}

Template repository for the Skyworker AI Processor

Requirements

  • Python >= 3.6
  • pip
  • venv (recommended)

Usage

The return value of skyworker_processor.process() function should be the pandas.DataFrame object with following columns:

  • measurement - Measurement Name
  • value - Calculated Value

and the index of each row should be the unique timestamp.

Example

import pandas as pd
from datetime import datetime

time_series = [
    {
        "timestamp": 1628150400,
        "measurement": "Electricity Price",
        "value": 0.23,
    },
    {
        "timestamp": 1628236800,
        "measurement": "Electricity Price",
        "value": 0.25,
    }
]

data_frame = pd.DataFrame(time_series)
# Set "timestamp" column as index.
data_frame.index = data_frame["timestamp"]
# Compose "time" column from the "timestamp"
data_frame["time"] = data_frame["timestamp"].map(datetime.fromtimestamp)
del data_frame["timestamp"]

Build & Publish

Build and Publish is a part of the CI/CD pipeline, but you can publish your package manually:

# Check the package.
$ python setup.py check

# Build the package.
$ python setup.py sdist

# Publish the package.
$ twine upload dist/*

Changelog

Please see CHANGELOG for details.

Authors

License

Copyright © 2021 Omedia.
Released under the Other/Proprietary License.

Download files

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

Source Distribution

File details

Details for the file skyworker_dev_electricity_price_random_other-0.3.0.tar.gz.

File metadata

  • Download URL: skyworker_dev_electricity_price_random_other-0.3.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.6

File hashes

Hashes for skyworker_dev_electricity_price_random_other-0.3.0.tar.gz
Algorithm Hash digest
SHA256 95646c85510a4d2d38b2fc088543ddb2d9cb96e301465413ababd4b547ded33d
MD5 52266b4d40f974d0a5fb5c5a9052b1e5
BLAKE2b-256 d54b34778ef17307da13b1f447b89993cd8230ca89c20a05838f79ee2b196abc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.2.0

1 file

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page