Resource management system GUI for python
Project description
Resource Management System (RMS) GUI Manual
The package provides GUI support to the rmsp
package.
Installation
pip install rmsp-gui
Quick start
To start the RMS set up:
DBPATH = "/path/to/db/"
DBNAME = "test.db"
DBRESDIR = "Resources/"
LIBPATH = f"{DBPATH}RMSLibrary/"
import sys
import logging
logger = logging.getLogger("rmspool")
logger.setLevel("INFO")
logger.addHandler(logging.StreamHandler(sys.stdout))
# RMS Core
from rmsp import rmscore
from rmsp import rmsbuilder
from rmsp.rmstemplate import RMSTemplateLibrary
rms = rmscore.ResourceManagementSystem(f"{DBPATH}{DBNAME}", f"{DBPATH}{DBRESDIR}")
rmspool = rmsbuilder.RMSProcessWrapPool(rms, 1)
rmsb = rmsbuilder.RMSUnrunTasksBuilder(rmspool)
rmstlib = RMSTemplateLibrary(rmsb, LIBPATH)
# Interactor
from rmsp.rmsinteractor import RMSPoolInteractionCore, RMSInteractionCore, RMSTemplateLibraryInteractionCore
from rmsp.interactorhelper import LocalInteractor
rms_interactor = LocalInteractor(RMSInteractionCore(rms))
rmspool_interactor = LocalInteractor(RMSPoolInteractionCore(rmspool))
rmstemplatelib_interactor = LocalInteractor(RMSTemplateLibraryInteractionCore(rmstlib))
Starting GUI in jupyter
%gui qt5
from rmsp.rmsgui.qt.mainapp import RMSWindow
win = RMSWindow(rms_interactor, rmspool_interactor, rmstemplatelib_interactor)
win.showMaximized()
Starting GUI in python script
from PyQt5.QtWidgets import QApplication
app = QApplication([])
from rmsp.rmsgui.qt.mainapp import RMSWindow
win = RMSWindow(rms_interactor, rmspool_interactor, rmstemplatelib_interactor)
win.showMaximized()
app.exec()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rmsp-gui-0.0.1.tar.gz
(35.2 kB
view hashes)
Built Distribution
rmsp_gui-0.0.1-py3-none-any.whl
(36.7 kB
view hashes)