Skip to main content

edge-ml python

Tests PyPI Publish

Python package for edge-ml.org.

Usage

Installation

Install edge-ml using the follwing command.

pip install edge-ml

Retrieve Project

This functionality comes in handy if you would like to train a machine learning model from edge-ml data.

from edgeml import edgeml

# get the API key from the settings of your project
project = edgeml.getProject("https://app.edge-ml.org", PROJECT_API_KEY) 

Push Data from Python

from edgeml import edgeml
import time

key = "YOUR_API_KEY"
startTime = time.time()
collector = edgeml.datasetCollector("https://app.edge-ml.org",
                                    key,
                                    "Example Dataset", # name the dataset you would like to upload
                                    False) # do not use server timestamps

for i in range(500):
    current_time = startTime + i * 10 # adding samples at 10 ms time steps
    collector.addDataPoint("Accelerometer X", random.randint(1,50) / 10.0, current_time) 
    collector.addDataPoint("Accelerometer Y", random.randint(1,50) / 10.0, current_time) 
    collector.addDataPoint("Accelerometer Z", random.randint(1,50) / 10.0, current_time) 

collector.onComplete()

Development

Testing

To run the tests please enter:

python -m unittest -v tests/all.py

Download files

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

Source Distribution

edge-ml-0.2.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

edge_ml-0.2.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file edge-ml-0.2.1.tar.gz.

File metadata

  • Download URL: edge-ml-0.2.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edge-ml-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c78f254e1fe9aea570d6d912b730d38027c5d30efce6a7a30888d4023abfd6c3
MD5 6f99d66ea19b96206eb3fb48a575e155
BLAKE2b-256 4a1fe331d24e5549cacd3feb0d274cc9007e56e834e8cc6a341fe0a268a06140

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edge_ml-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for edge_ml-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a99f1942438abe7c08b0b6e853bb083d71d78dc54d7f5adc7d2ecf94ca04b2
MD5 60df6c5f1b928983e802e8ca61716aad
BLAKE2b-256 1caca6de1aef1e067890afb8aa8f3ffb1d20fb3a08a4aa18de00451e52530442

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 Sentry Error logging StatusPage Status page