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}')
Metadata
Release files for rsdb 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rsdb-0.9.2.tar.gz | 25.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rsdb-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.1 kB
Release files / rsdb-0.9.2.tar.gz
| Download URL | rsdb-0.9.2.tar.gz |
|---|---|
| Size | 25.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9f1903aad516321fbc06550cff3aa3e6de2ec4a62bbc65a98faab0583492798
|
|
BLAKE2b-256 checksum How to use checksums |
28c536dece1631f4b870f6db03cc3a0c59470068f5fb7ebe565b0c4c4a42d1ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / rsdb-0.9.2-py3-none-any.whl
| Download URL | rsdb-0.9.2-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87a56b27fff7b845a80981524fb8782558f416c91cb810c58f8c2de97216ae69
|
|
BLAKE2b-256 checksum How to use checksums |
9d0dc0188f8d9d42d5369d2654e9f052636b361be6528193265c7cbdf6d7989f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|