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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db18957096b920a2c3cbcf36e6f175f896128681c6cb76e44d15a2f67293e035 |
|
MD5 | c2d0f9d0b2e0bfd459f591868ebefaf4 |
|
BLAKE2b-256 | c8aea027ba749870ad74b151f53b5a47074fcd4b87329fa6092513fd330e97d5 |
Close
Hashes for neqsimapi_connector-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6461165b8d7552d388235e1e113140dde67eaeeee26400e5b68d0c82e1fd95 |
|
MD5 | 7f0496a8da24c4fd31b4d11de7e9e162 |
|
BLAKE2b-256 | 26acd39b708cd2d3f5a7fb5aa3f089c4edb1e2374b20d14f61d8ea9f5d5c5e68 |