Skip to main content

Python API for PlotServer.

Project description

plot-server-api

Python API for communication with PlotServer.

How to Use

  1. Register a user on the PlotServer of your choice;
  2. Get your API key;
  3. Install this package:
$ pip install plotserver-api
  1. Integrate API into your application:
from plotserver_api import PlotServerAPI, Project

# Set key and API address
key = b'5uSN9ojYpMiI7gQ5k5NWR6kYvenDX97CmxC5aaUGdH8='
api_url = "http://someadress"

# Initialize API manager
api = PlotAPI("alartum", key, api_url, verbose=True)
# And create new project with
project = Project("project1", api, fresh_start=True)

# Add tags for different data to be tracked 
project.add_files(["sin", "cos"])
# And inform the server 
project.prepare_project()

import math
t = 0
while True:
    # Add new data to the manager 
    project.add_frame("sin", t, math.sin(t**2/50))
    project.add_frame("cos", t, math.cos(t/20))
    # And send frames when done
    project.send_frames()
    time.sleep(2)
    t += 1

Project details


Download files

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

Source Distribution

plotserver_api-0.0.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

plotserver_api-0.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file plotserver_api-0.0.4.tar.gz.

File metadata

  • Download URL: plotserver_api-0.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for plotserver_api-0.0.4.tar.gz
Algorithm Hash digest
SHA256 72b532ecf28a242388ca76c7668a52ad4ebcbd81e08c4afc85b612f45ae8d333
MD5 08f0a982d157a4b960f701e03179355a
BLAKE2b-256 c468efb3a406a5d76742b7d006a53b469937f76815923061d3d584e011c8bb9d

See more details on using hashes here.

File details

Details for the file plotserver_api-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: plotserver_api-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for plotserver_api-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac1542bf827a9124aff1b2e2ab3da09dbcd774c5855fc122df4fe395cecb628
MD5 62e323b65f88c5561938deaf61d9f269
BLAKE2b-256 5e6a1e203b4959e9c5dd148aac3d86bf2e16c11b44ae0e5bb441d2e7cffacd58

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