Skip to main content

Quantori Python SDK for PerkinElmer Signals Notebook

Project description

Quantori Python SDK for PerkinElmer Signals Notebook

Copyright (c) 2022 Quantori.

pesn-sdk is a Python package that provides an interface between your Python application and PerkinElmer's external API of Signals Notebook.

Pre-requisites

We assume, that you have already contacted with PerkinElmer and have a working instance of Signals Notebook.

Obtain an API key

Visit the page https://<your signals notebook instance>/snconfig/settings/apikey and generate an API Key

Installation

pip install pesn-sdk

Usage

Import and initialize the API instance with your Signals Notebook host and API-token

from signals_notebook.api import SignalsNotebookApi

SignalsNotebookApi.init('https://signalsnotebook.perkinelmer.cloud', '<your api key>')

Then you can perform CRUD operations with such entities as Notebook, Experiment, etc.

Examples

Create a new Notebook

from signals_notebook.entities.notebook import Notebook

notebook = Notebook.create(name='Test creation by SDK', description='Created by me')

change its fields

notebook.name = 'Changed name'
notebook.save()

finally delete it

notebook.delete()

Also, you can retrieve all existing notebooks

notebooks = Notebook.get_list()

or one specified by id

from signals_notebook.entities.entity_store import EntityStore
notebook = EntityStore.get("journal:111a8a0d-2772-47b0-b5b8-2e4faf04119e")

Deletion can be performed without retrieving the whole object if you know an id

EntityStore.delete("journal:111a8a0d-2772-47b0-b5b8-2e4faf04119e")

Jupyter Notebooks with examples see in examples folder

Additional information

License

Quantori Python SDK for PerkinElmer Signals Notebook is released under Apache License, Version 2.0

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

pesn-sdk-1.2.3.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

pesn_sdk-1.2.3-py3-none-any.whl (109.5 kB view details)

Uploaded Python 3

File details

Details for the file pesn-sdk-1.2.3.tar.gz.

File metadata

  • Download URL: pesn-sdk-1.2.3.tar.gz
  • Upload date:
  • Size: 59.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pesn-sdk-1.2.3.tar.gz
Algorithm Hash digest
SHA256 3c4f7bd157927023e2dc343b7292d28861edd8588145a1d7d2c74a0ee3ab1492
MD5 cfcbeed095e36d78eb8f60dce9e9e788
BLAKE2b-256 4994e15a57fa7dd3cc85ecc680e8427e301b5757a55cbac3a65ea4589b186e5f

See more details on using hashes here.

File details

Details for the file pesn_sdk-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: pesn_sdk-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 109.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pesn_sdk-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d4194fce874ef3087305e66919464c93157872ae144e4f9695f26048aa0f38
MD5 e4f07a51f5e306fbd86bb6ea323dac00
BLAKE2b-256 dc91178e47e8ff283c8b46ec199bcfb81a48b94144db46b34d63662e0de315de

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page