Python Wrapper around the Labstep API
Project description
# labstepPy
Python wrapper around the Labstep API
## Installation
```
pip install labstep
```
## Usage
```
from labstep import login, createExperiment, addComment, attachFile
# Login to your Labstep account
user = login('demo@labstep.com','demopassword')
# Create an experiment
experiment = createExperiment(user,'My First Python Experiment','An experiment created using the labstep python package')
# Comment on an experiment
addComment(user,experiment,'It's working great!')
# Attach a file to an experiment
filepath = 'my_script.py'
attachFile(user,experiment,filepath,'This is the python script used in this experiment')
```
For full list of available methods see:
https://labsteppy.readthedocs.io/en/latest/
Python wrapper around the Labstep API
## Installation
```
pip install labstep
```
## Usage
```
from labstep import login, createExperiment, addComment, attachFile
# Login to your Labstep account
user = login('demo@labstep.com','demopassword')
# Create an experiment
experiment = createExperiment(user,'My First Python Experiment','An experiment created using the labstep python package')
# Comment on an experiment
addComment(user,experiment,'It's working great!')
# Attach a file to an experiment
filepath = 'my_script.py'
attachFile(user,experiment,filepath,'This is the python script used in this experiment')
```
For full list of available methods see:
https://labsteppy.readthedocs.io/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
labstep-0.2.3.tar.gz
(3.0 kB
view hashes)