Metadata-Version: 2.3
Name: eq-api-connector
Version: 1.0.0
Summary: API connector (API SDK) to connect to public client app registrations using delegated permissions (MSAL).
License: MIT
Author: Åsmund Våge Fannemel
Author-email: asmf@equinor.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: msal-bearer (>=1.4.1,<2.0.0)
Requires-Dist: requests (>=2.32.5,<3.0.0)
Description-Content-Type: text/markdown

# eq-api-connector
A small python package to handle authentication and act as a generic api sdk.

It supports apis Public client applications using [acquire_token_interactive](https://learn.microsoft.com/en-us/python/api/msal/msal.application.publicclientapplication?view=msal-py-latest#msal-application-publicclientapplication-acquire-token-interactive) and contains a few basic endpoint accessors. 

# Install
Install from pypi ```pip install eq-api-connector``` or clone and use ```poetry install``` as a developer.

# Usage
See the dummy example below

```
from eq_api_connector import set_url_prod, set_scope, set_public_client_id, get_json

url_prod = "https://api.gateway.equinor.com/dummy/v1"
client_id = "insert_your_client_id_here"  # IOC SME monitoring SDK
scope = ["34de7368-10f7-4c34-a4df-928156065f2c/ReadWrite"]

set_url_prod(url_prod)
set_scope(scope)
set_public_client_id(client_id)

model_owners = get_json("/example-endpoint")
````



