Skip to main content

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


Download files

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

Source Distribution

eq_api_connector-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eq_api_connector-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file eq_api_connector-1.0.2.tar.gz.

File metadata

  • Download URL: eq_api_connector-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for eq_api_connector-1.0.2.tar.gz
Algorithm Hash digest
SHA256 df64cb1bc42b0ac3dd3952988dd09a8c8f5cc95ba01cfa12b10b7030f1d2ea61
MD5 27980e88b4535546f6d143abe653a197
BLAKE2b-256 31948cecd16ad4fdf46e1eb1a64d0329ac0f25c39917393c85bde88b5be1d6aa

See more details on using hashes here.

File details

Details for the file eq_api_connector-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: eq_api_connector-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for eq_api_connector-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c475ca27ae4036f11a13914ba5eafe514a2e321d35bbd08de2e969499222679
MD5 c95c131bc75cbbd26de2afc05ae0a2d9
BLAKE2b-256 d95b38d8ad4c2d47f1df648e1873b5ea7047ab375d924003f20db8542ddaede2

See more details on using hashes here.

Supported by

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