edge-ml python
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.
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
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.0.5.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edge-ml-0.0.5.tar.gz.
File metadata
- Download URL: edge-ml-0.0.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b193fd833b07ce9099d8a7828791de675f1fed0d3489a833449523997ce5acc
|
|
| MD5 |
effeec7b87b40ae438eae94085ec39c7
|
|
| BLAKE2b-256 |
7f171a3df69de334d8676389edf1f384cc37c2743de77d935da2fbf4a5e798e6
|
File details
Details for the file edge_ml-0.0.5-py3-none-any.whl.
File metadata
- Download URL: edge_ml-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e919b0e0d9d3d5557103112b755d6e86cabc09d089c86bfcc15d44c05ea57b09
|
|
| MD5 |
f4c39d84d5955591ee7799228da44289
|
|
| BLAKE2b-256 |
6291214cdef7fa618e780c2a72224f978afd0a6b126eb3f3c530908cefc87bb3
|