Skip to main content

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


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 details)

Uploaded Source

Built Distribution

rmsp_gui-0.0.1-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file rmsp-gui-0.0.1.tar.gz.

File metadata

  • Download URL: rmsp-gui-0.0.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for rmsp-gui-0.0.1.tar.gz
Algorithm Hash digest
SHA256 98aa6a18a345e840dc6d1270b22d7c7d063551fbd9fe17a6544a7966c585724b
MD5 d43eedfe7cc9548fb4533d50779d0df8
BLAKE2b-256 bdc20c389582cc0e0ed0eab258ceca6a79860705dc6deea65c8c72a303a016fe

See more details on using hashes here.

File details

Details for the file rmsp_gui-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rmsp_gui-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for rmsp_gui-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e50e581e5e4394bd5a294ebf388d9eac0c24f9efe432724b9ee75a914e9e07d
MD5 a3cc7665444c3e204cc70fdd8018db9c
BLAKE2b-256 d686102be42916070704c2671a05f4f0586d3bd34f70b4c9ddefc453f2048007

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