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.1.0.tar.gz (4.8 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.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edge-ml-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edge-ml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e5ebb84600a98d2a0ed135960ba22fe1b9b66e3e0b64b1b0311d983f2f879f0
MD5 046140d6e9144d02ffa50e2157b63555
BLAKE2b-256 8b088006dacf46cd5b0ea0b9aa01c21b1033a8ecf669055aabb63d6ac88d9c79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edge_ml-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for edge_ml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e10022cc0b9e3c5d6ba2cb22ce23b01c3854abda25780762b8333cb128c06a1
MD5 3e83da600ebd92f69ed8bf773a3d7b29
BLAKE2b-256 73313942508872eb30d62e21a5e9ff58023fde9c13d28403d2ba50cf72b5c21b

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