A python package to simplify calling NeqSimAPI for end-users.
Project description
NeqSimAPI-connector
A python package to simplify calling NeqSimAPI for end-users handling authentication.
See https://neqsimapi.app.radix.equinor.com/docs for available endpoints.
Usage
See https://github.com/equinor/neqsimapi-connector/blob/main/example/demo.py for a simple demo that connects and gets data from NeqSimAPI.
A short snippet is seen below
from neqsimapi_connector.Connector import Connector as neqsim_api_connector
data = {"compression_factor": 10,
"refrigerant": {
"fluid": "propane",
"fraction": 1,
"unit_temperature": "C",
"unit_pressure": "bara",
"unit_flowrate": "kg/hr",
"temperature": 30,
"pressure": 15,
"flowrate": 1000}
}
c = neqsim_api_connector()
res = c.post("DEMO/demo-process/simulate", data=data)
print(res)
Install using pip
Usage of NeqSimAPI is limited to equinor users, but the package is available on pip.
python -m pip install neqsimapi_connector
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
Built Distribution
Close
Hashes for neqsimapi_connector-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 612906b3f3fd1e36695450c8930dd43091d566fb89bb734b77a778701f7f13c1 |
|
MD5 | 7d5e5c431a6fedacd275b19ebd6b9217 |
|
BLAKE2b-256 | b4f57bd14085d3f569e8f741c8dc405c3d8464a6992b488297cfac445cba8e50 |
Close
Hashes for neqsimapi_connector-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b1f8006162155d6ff587e5d542e1c6a2cd5d69ab6090829b92c1fb985164fa |
|
MD5 | 06fc42dbe4e585d9321fe8f1e650d489 |
|
BLAKE2b-256 | 3f62b9f20bd5f732f20fdffecb98069fb0a603f4ae7874fb6aa1a76e7d0cafe6 |