Logo

Quick Start

  • Installation
  • Authentication

Entity Classes

  • User
  • Organization
  • Workspace
  • Experiments
  • Protocol Library
  • Inventory
  • Devices
  • Jupyter
  • Metadata
  • Chemistry
  • Tag
  • Collection
  • Comment
  • File
  • Notification
  • Sharelink
    • Sharelink
      • Sharelink.edit()
      • Sharelink.sendEmails()
  • Entity State Workflow

Examples

  • Experiments
  • Protocols
  • Inventory
  • Devices
  • Workspace Setup
  • Importing Resources
  • Deleting Multiple Entities
  • Downloading Files
  • Advance filters in Labstep using Python
labstepPy
  • Sharelink
  • View page source

Sharelink

class labstep.entities.sharelink.model.Sharelink(data, user)

Represents a Sharelink on Labstep.

edit(permission=OPTIONAL, extraParams={})

Edit a sharelink.

Parameters:

permission (str) – Set the permission granted by the sharelink can be either ‘view’ or ‘edit’

Returns:

An object representing the edited Sharelink.

Return type:

Sharelink

Example

# Get an experiment
experiment = user.getExperiment(123)

# Get the sharelink for the experiment
sharelink = experiment.getSharelink()

# Edit the sharelink
sharelink.edit(type='view')
sendEmails(emails, message=OPTIONAL)

Send sharelinks to collaborators via email.

Parameters:
  • emails (list) – A list of the emails to send the invite to.

  • message (str) – A message to send with the invite.

Example

sharelink.sendEmails(emails=['collegue1@labstep.com','collegue2@labstep.com'],
    message='Hi, please collaborate with me on Labstep!')
Previous Next

© Copyright 2022, Labstep.

Built with Sphinx using a theme provided by Read the Docs.