This package simplifies the connection to the Web Services of the Momentum Scheduler from Thermo Scientific.
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.
- API credentials for Momentum Web Services
- Clone the repository:
git clone https://github.com/novonordisk-research/MomentumPyClient.git
- Navigate to the project directory:
cd MomentumPyClient
- Install :
pip install .[streamlit]
- Create a
.env
file in the root directory. - Add your API credentials to the
.env
file:momentum_user=<username> momentum_passwd=<password> momentum_verify=False momentum_url="https://localhost/api/"
- Start the application:
cd examples/ streamlit run testing.py
- The application will connect to the Momentum Scheduler API and perform the necessary operations.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or support, please contact jsqp@novonordisk.com.
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")
For detailed API documentation, please refer to the official Thermo Fisher Lab automation documentation.
If you encounter any issues or have questions, feel free to open an issue on GitHub or contact the support team.
Special thanks to the contributors and the open-source community for their valuable input and support.