Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neqsimapi_connector-0.1.10.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

neqsimapi_connector-0.1.10-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page