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 uv sync as a developer.

Usage

See the dummy example below

from eq_api_connector import APIConnector

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"]

c = APIConnector(client_id=client_id, scope=scope)
c.url_prod = url_prod

model_owners = c.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.1.0.tar.gz (4.1 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.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eq_api_connector-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 377dd3fc3139a7a9c700566cdff6fc7b734a008c8a03e77960f19bde0398e2e0
MD5 26e81a18804badb227138403413feec9
BLAKE2b-256 65e091c6f33e977798044ef038806184917240a0fa4e5c2025349b62c2ae1c0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eq_api_connector-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95cd4804f832b0d16a552bd9a87428f047080eff9d252562736d2b145871f19c
MD5 923a22acfbf3b58c276017cae20890cd
BLAKE2b-256 d9afcac4cc763bddb0b99a138835e0bcfdf134dd80a6d1e50fb4c8d7ba2512ee

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