Python API for Aspen HYSYS
Project description
aspen-pysys
Python API for Aspen HYSYS
Requirements
Installation
Install via pip install aspen-pysys (PyPI link).
API reference
https://cacklingtanuki.codeberg.page/aspen-pysys
Quickstart
- Before you can use HYSYS, ensure that the simulation case you wish to work on is already open.
- Once your simulation file is open, enter the following lines of code to set the package up.
- An indicator that you have successfully connected with your simulation file is the printing of 'Aspen HYSYS' in the shell (or in a notebook cell if you are using a Jupyter cell or something similar).
from aspen_pysys.app import HysysApp
hysys_app = HysysApp.dispatch()
To open a Aspen HYSYS simulation file (.hsc), use the hysys_app.open(sim_filepath), where sim_filepath is the filepath to your simulation file.
from pathlib import Path
import os
current_filepath = Path(os.getcwd())
sim_filepath = current_filepath / "test_sim.hsc"
simcase = hysys_app.open(sim_filepath)
print(simcase)
- You can now use the aspen-pysys package in your code! Please refer to the tutorial folder for an interactive example.
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
aspen_pysys-0.1.0a2.tar.gz
(379.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aspen_pysys-0.1.0a2.tar.gz.
File metadata
- Download URL: aspen_pysys-0.1.0a2.tar.gz
- Upload date:
- Size: 379.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84006fda053f801ffd3de1305f9319c2422bd1ed6b68a52845a641bcc62305bc
|
|
| MD5 |
b5ac0c14e084a6527a2fed05f4424b7d
|
|
| BLAKE2b-256 |
baf1ac1a6042ddeabd0993b948aed286ea404ba591c5ec7c3427d8ff8ba7504f
|
File details
Details for the file aspen_pysys-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: aspen_pysys-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 64.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bfd104db1560dc20d2a8e9a2fe705404e8d18f60f93b21364bd1f410d458e04
|
|
| MD5 |
91e5fcf68ebb8df0adba9e9a82f51ec9
|
|
| BLAKE2b-256 |
249c1bb7a6666b292100840dab04625c590a9b8f67d1ffd7d2c1b93e5b948118
|