Metadata-Version: 2.1
Name: plotserver-api
Version: 0.0.4
Summary: Python API for PlotServer.
Home-page: https://github.com/alartum/plotserver-api
Author: Aleksandr Artemenkov
Author-email: alartum@gmail.com
License: MIT
Description: # plot-server-api
        Python API for communication with [PlotServer](https://github.com/alartum/plotserver).
        
        # How to Use
        
        1. Register a user on the PlotServer of your choice;
        2. Get your API key;
        3. Install this package:
        ```bash
        $ pip install plotserver-api
        ```
        4. Integrate API into your application:
        ```python
        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
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
