Object–relational mapping for RiskSpectrum PSA model database
Project description
rsdb
Object–relational mapping for RiskSpectrum PSA model database.
Installation
# PyPI
pip install rsdb
Usage
from rsdb.connection import Connector
import rsdb.orm
server = Connector(ip='<ip>', port=1433)
# Show available models
print(server.GetAvailableModels())
# Get SqlAlchemy session factory
Session = server.GetModelSession('<model_name>')
with Session() as session:
event_trees = session.execute(select(rsdb.orm EventTrees)).scalars().all()
for et in event_trees:
print(et.ID)
func_events = et.FunctionEvents
for event in func_events:
print(f'\t fe:{e.ID}')
initiating_event = et.InitiatingEvent
print(f'\t ie:{ie.ID}')
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
rsdb-0.9.2.tar.gz
(25.8 kB
view details)
Built Distribution
rsdb-0.9.2-py3-none-any.whl
(25.3 kB
view details)
File details
Details for the file rsdb-0.9.2.tar.gz
.
File metadata
- Download URL: rsdb-0.9.2.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f1903aad516321fbc06550cff3aa3e6de2ec4a62bbc65a98faab0583492798 |
|
MD5 | dac55dd80f867e3a0b7368cfba0cfd0e |
|
BLAKE2b-256 | 28c536dece1631f4b870f6db03cc3a0c59470068f5fb7ebe565b0c4c4a42d1ee |
File details
Details for the file rsdb-0.9.2-py3-none-any.whl
.
File metadata
- Download URL: rsdb-0.9.2-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a56b27fff7b845a80981524fb8782558f416c91cb810c58f8c2de97216ae69 |
|
MD5 | 5fd1d2df223966b4dfe727a3f56c1866 |
|
BLAKE2b-256 | 9d0dc0188f8d9d42d5369d2654e9f052636b361be6528193265c7cbdf6d7989f |