API connector (API SDK) to connect to public client app registrations using delegated permissions (MSAL).
Project description
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 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")
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eq_api_connector-1.0.1.tar.gz.
File metadata
- Download URL: eq_api_connector-1.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb37fbc4d1164ce33b470b057873d66ae324409db1db4486e276f5aa0d8e3183
|
|
| MD5 |
b5cc2f0b9a08e568a793e6fe57ee868e
|
|
| BLAKE2b-256 |
562a8d6ddfc634f4697abb396b7487dce69b03efd9c851c269ec476477fc121a
|
File details
Details for the file eq_api_connector-1.0.1-py3-none-any.whl.
File metadata
- Download URL: eq_api_connector-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/25.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4c009e56b979740a88c4739762d0eb191a5e94dfeec59dc729eb7b5853fede
|
|
| MD5 |
ccbaeecf516057da2b0579a8667d2b8d
|
|
| BLAKE2b-256 |
cd181df3a6d52f233ec621b2f5019893eec201c5344636d5eb1129e1cba72e46
|