Python API client for the LAMP Platform.
Overview
This API client is used to connect to the LAMP Platform from the Python programming language. Visit our documentation for more information about the LAMP Platform.
Installation
Prerequisites
Python 3.4+ and pip.
- You may need root permissions, using
sudo. - Alternatively, to install locally, use
pip --user. - If
pipis not recognized as a command, usepython3 -m pip.
Installation
pip install LAMP-core
Configuration
Ensure your server_address is set correctly. If using the default server, it will be api.lamp.digital. Keep your access_key (sometimes an email address) and secret_key (sometimes a password) private and do not share them with others.
import LAMP
LAMP.connect(access_key, secret_key, server_address)
API Endpoints
| Class | Method | HTTP request | Description |
|---|---|---|---|
| LAMP.API | query | POST / | Query the LAMP Database. |
| LAMP.API | schema | GET / | View the API schema document. |
| LAMP.Activity | all | GET /activity | Get the set of all activities. |
| LAMP.Activity | all_by_participant | GET /participant/{participant_id}/activity | Get all activities for a participant. |
| LAMP.Activity | all_by_researcher | GET /researcher/{researcher_id}/activity | Get all activities for a researcher. |
| LAMP.Activity | all_by_study | GET /study/{study_id}/activity | Get all activities in a study. |
| LAMP.Activity | create | POST /study/{study_id}/activity | Create a new Activity under the given Study. |
| LAMP.Activity | delete | DELETE /activity/{activity_id} | Delete an Activity. |
| LAMP.Activity | update | PUT /activity/{activity_id} | Update an Activity's settings. |
| LAMP.Activity | view | GET /activity/{activity_id} | Get a single activity, by identifier. |
| LAMP.ActivityEvent | all_by_participant | GET /participant/{participant_id}/activity_event | Get all activity events for a participant. |
| LAMP.ActivityEvent | all_by_researcher | GET /researcher/{researcher_id}/activity_event | Get all activity events for a researcher by participant. |
| LAMP.ActivityEvent | all_by_study | GET /study/{study_id}/activity_event | Get all activity events for a study by participant. |
| LAMP.ActivityEvent | create | POST /participant/{participant_id}/activity_event | Create a new ActivityEvent for the given Participant. |
| LAMP.ActivityEvent | delete | DELETE /participant/{participant_id}/activity_event | Delete a ActivityEvent. |
| LAMP.ActivitySpec | all | GET /activity_spec | Get all ActivitySpecs registered. |
| LAMP.ActivitySpec | create | POST /activity_spec | Create a new ActivitySpec. |
| LAMP.ActivitySpec | delete | DELETE /activity_spec/{activity_spec_name} | Delete an ActivitySpec. |
| LAMP.ActivitySpec | update | PUT /activity_spec/{activity_spec_name} | Update an ActivitySpec. |
| LAMP.ActivitySpec | view | GET /activity_spec/{activity_spec_name} | View an ActivitySpec. |
| LAMP.Credential | create | POST /type/{type_id}/credential | |
| LAMP.Credential | delete | DELETE /type/{type_id}/credential/{access_key} | |
| LAMP.Credential | list | GET /type/{type_id}/credential | |
| LAMP.Credential | update | PUT /type/{type_id}/credential/{access_key} | |
| LAMP.Participant | all | GET /participant | Get the set of all participants. |
| LAMP.Participant | all_by_researcher | GET /researcher/{researcher_id}/participant | Get the set of all participants under a single researcher. |
| LAMP.Participant | all_by_study | GET /study/{study_id}/participant | Get the set of all participants in a single study. |
| LAMP.Participant | create | POST /study/{study_id}/participant | Create a new Participant for the given Study. |
| LAMP.Participant | delete | DELETE /participant/{participant_id} | Delete a participant AND all owned data or event streams. |
| LAMP.Participant | update | PUT /participant/{participant_id} | Update a Participant's settings. |
| LAMP.Participant | view | GET /participant/{participant_id} | Get a single participant, by identifier. |
| LAMP.Researcher | all | GET /researcher | Get the set of all researchers. |
| LAMP.Researcher | create | POST /researcher | Create a new Researcher. |
| LAMP.Researcher | delete | DELETE /researcher/{researcher_id} | Delete a researcher. |
| LAMP.Researcher | update | PUT /researcher/{researcher_id} | Update a Researcher's settings. |
| LAMP.Researcher | view | GET /researcher/{researcher_id} | Get a single researcher, by identifier. |
| LAMP.Sensor | all | GET /sensor | Get the set of all sensors. |
| LAMP.Sensor | all_by_participant | GET /participant/{participant_id}/sensor | Get all sensors for a participant. |
| LAMP.Sensor | all_by_researcher | GET /researcher/{researcher_id}/sensor | Get all sensors for a researcher. |
| LAMP.Sensor | all_by_study | GET /study/{study_id}/sensor | View all sensors in a study. |
| LAMP.Sensor | create | POST /study/{study_id}/sensor | Create a new Sensor under the given Study. |
| LAMP.Sensor | delete | DELETE /sensor/{sensor_id} | Delete a Sensor. |
| LAMP.Sensor | update | PUT /sensor/{sensor_id} | Update an Sensor's settings. |
| LAMP.Sensor | view | GET /sensor/{sensor_id} | Get a single sensor, by identifier. |
| LAMP.SensorEvent | all_by_participant | GET /participant/{participant_id}/sensor_event | Get all sensor events for a participant. |
| LAMP.SensorEvent | all_by_researcher | GET /researcher/{researcher_id}/sensor_event | Get all sensor events for a researcher by participant. |
| LAMP.SensorEvent | all_by_study | GET /study/{study_id}/sensor_event | Get all sensor events for a study by participant. |
| LAMP.SensorEvent | create | POST /participant/{participant_id}/sensor_event | Create a new SensorEvent for the given Participant. |
| LAMP.SensorEvent | delete | DELETE /participant/{participant_id}/sensor_event | Delete a sensor event. |
| LAMP.SensorSpec | all | GET /sensor_spec | Get all SensorSpecs registered. |
| LAMP.SensorSpec | create | POST /sensor_spec | Create a new SensorSpec. |
| LAMP.SensorSpec | delete | DELETE /sensor_spec/{sensor_spec_name} | Delete an SensorSpec. |
| LAMP.SensorSpec | update | PUT /sensor_spec/{sensor_spec_name} | Update an SensorSpec. |
| LAMP.SensorSpec | view | GET /sensor_spec/{sensor_spec_name} | Get a SensorSpec. |
| LAMP.Study | all | GET /study | Get the set of all studies. |
| LAMP.Study | all_by_researcher | GET /researcher/{researcher_id}/study | Get the set of studies for a single researcher. |
| LAMP.Study | create | POST /researcher/{researcher_id}/study | Create a new Study for the given Researcher. |
| LAMP.Study | delete | DELETE /study/{study_id} | Delete a study. |
| LAMP.Study | update | PUT /study/{study_id} | Update the study. |
| LAMP.Study | view | GET /study/{study_id} | Get a single study, by identifier. |
| LAMP.Type | get_attachment | GET /type/{type_id}/attachment/{attachment_key} | |
| LAMP.Type | get_dynamic_attachment | GET /type/{type_id}/attachment/dynamic/{attachment_key} | |
| LAMP.Type | list_attachments | GET /type/{type_id}/attachment | |
| LAMP.Type | parent | GET /type/{type_id}/parent | Find the owner(s) of the resource. |
| LAMP.Type | set_attachment | PUT /type/{type_id}/attachment/{attachment_key}/{target} | |
| LAMP.Type | set_dynamic_attachment | PUT /type/{type_id}/attachment/dynamic/{attachment_key}/{target} |
Documentation For Models
Metadata
Release files for lamp-core 2021.10.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| LAMP-core-2021.10.4.tar.gz | 65.5 kB | Without provenance | Details for LAMP-core-2021.10.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| LAMP_core-2021.10.4-py3-none-any.whl | Python 3 | none | any | Details for LAMP_core-2021.10.4-py3-none-any.whl |
Total release size: 177.0 kB
Release files / LAMP-core-2021.10.4.tar.gz
| Download URL | LAMP-core-2021.10.4.tar.gz |
|---|---|
| Size | 65.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a77238b27432beee764cc4955e7207ed972a74bcedd044af494c62eaa71a962
|
|
BLAKE2b-256 checksum How to use checksums |
19dc68c44e08f0d7cad0f412fc564223b3dc4b8cc7b22f779acee1ca8a3240ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.7 Linux/5.8.0-1042-azure
|
Release files / LAMP_core-2021.10.4-py3-none-any.whl
| Download URL | LAMP_core-2021.10.4-py3-none-any.whl |
|---|---|
| Size | 111.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79e43b1fd7bddeb7a1c6e3048f0c1f0b53cb67ceb87f0fa53fdd587e10b3a731
|
|
BLAKE2b-256 checksum How to use checksums |
a2f8fe829d3f8686dba2a4256c2687959062757e0aeaee2089cebe7aa8f4618c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.7 Linux/5.8.0-1042-azure
|
Security for lamp-core 2021.10.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.