Skip to content

MomentumPyClient makes it easy to connect to Web Services of the Momentum Scheduler from Thermo Scientific.

License

Notifications You must be signed in to change notification settings

novonordisk-research/MomentumPyClient

Repository files navigation

MomentumPyClient

This package simplifies the connection to the Web Services of the Momentum Scheduler from Thermo Scientific.

Description

MomentumPyClient is a Python wrapper for the web services Swagger API interface for Momentum. It includes UI functions to facilitate data visualization and control of Momentum directly from simple Streamlit apps.

Visuals

screenshot

Prerequisites

  • API credentials for Momentum Web Services

Installation

  1. Clone the repository:
    git clone https://github.com/novonordisk-research/MomentumPyClient.git
  2. Navigate to the project directory:
    cd MomentumPyClient
  3. Install :
    pip install .[streamlit]

Configuration

  1. Create a .env file in the root directory.
  2. Add your API credentials to the .env file:
    momentum_user=<username>
    momentum_passwd=<password>
    momentum_verify=False
    momentum_url="https://localhost/api/"

Usage

  1. Start the application:
    cd examples/
    streamlit run testing.py 
  2. The application will connect to the Momentum Scheduler API and perform the necessary operations.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or support, please contact jsqp@novonordisk.com.

Example

Here is a simple example of how to use this package:

import streamlit as st
import MomentumPyClient.ui as stm

st.write(stm.ws.get_status())

stm.show_store("Carousel")

Documentation

For detailed API documentation, please refer to the official Thermo Fisher Lab automation documentation.

Support

If you encounter any issues or have questions, feel free to open an issue on GitHub or contact the support team.

Acknowledgements

Special thanks to the contributors and the open-source community for their valuable input and support.

About

MomentumPyClient makes it easy to connect to Web Services of the Momentum Scheduler from Thermo Scientific.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages