Python API for Aspen HYSYS
Project description
aspen-pysys
Python API for Aspen HYSYS; unaffiliated with Aspen.
Related links:
Installation
pip install 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.0a3.tar.gz
(15.4 MB
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.0a3.tar.gz.
File metadata
- Download URL: aspen_pysys-0.1.0a3.tar.gz
- Upload date:
- Size: 15.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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 |
7d737cd52123073b3efa46a29a609582cbf95e102179ccc4f7ee246462796a23
|
|
| MD5 |
2134dde5646d0178eab961157110f789
|
|
| BLAKE2b-256 |
73e31e41d7eeeb87517041ef51bc6e7dc20e80e485e2173818f0172a2520a480
|
File details
Details for the file aspen_pysys-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: aspen_pysys-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 64.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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 |
a5eb508349d9b7171d58979cc3429f9ecc6895ff45f89dee31a3140848b7da2d
|
|
| MD5 |
3ddacd0eda02f8549a6993dd3b9cf95d
|
|
| BLAKE2b-256 |
92299e6b01b65413e89fc289420f8f2958cddbe37b23e698e4b42f13134272ff
|