Skyworker Processor: {processor_name}
Template repository for the Skyworker AI Processor
Requirements
Python >= 3.6pipvenv (recommended)
Usage
- Clone this repository
- Update todos in setup.py file
- Update todos in skyworker_processor/__init__.py file
- Define your logic in skyworker_processor/core/processor.py module's
processfunction
The return value of skyworker_processor.process() function should be the pandas.DataFrame object with following columns:
measurement- Measurement Namevalue- 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
- Temuri Takalandze - Author and Maintainer
License
Copyright © 2021 Omedia.
Released under the Other/Proprietary License.
Metadata
Release files for skyworker-dev-electricity-price-random-other 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skyworker_dev_electricity_price_random_other-0.3.0.tar.gz | 4.3 kB | Without provenance | Details for skyworker_dev_electricity_price_random_other-0.3.0.tar.gz |
Release files / skyworker_dev_electricity_price_random_other-0.3.0.tar.gz
| Download URL | skyworker_dev_electricity_price_random_other-0.3.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95646c85510a4d2d38b2fc088543ddb2d9cb96e301465413ababd4b547ded33d
|
|
BLAKE2b-256 checksum How to use checksums |
d54b34778ef17307da13b1f447b89993cd8230ca89c20a05838f79ee2b196abc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for skyworker-dev-electricity-price-random-other 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.