Metadata-Version: 2.1
Name: neqsimapi-connector
Version: 0.1.11
Summary: A python package to simplify calling NeqSimAPI for end-users.
Home-page: https://github.com/equinor/NeqSimAPI-connector
License: MIT
Author: Åsmund Våge Fannemel
Author-email: asmf@equinor.com
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.22.0,<0.23.0)
Requires-Dist: msal (>=1.20.0,<2.0.0)
Requires-Dist: msal-extensions (>=1.0.0,<2.0.0)
Requires-Dist: requests (>=2.27.1,<3.0.0)
Project-URL: Repository, https://github.com/equinor/NeqSimAPI-connector
Description-Content-Type: text/markdown

# 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](/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```
