Skip to main content

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

If you already have an access token, pass it with token:

access_token = get_access_token_from_your_auth_flow()
c = APIConnector(token=access_token)

When a token is supplied, APIConnector uses it as-is and does not check its expiry or refresh it. The caller is responsible for obtaining and supplying a fresh token when it expires.

Typically packages using eq-api-connector should subclass the APIConnector or keep a singleton a reference.

Metadata

Release files for eq-api-connector 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eq-api-connector 1.2.2
File Size Uploaded Provenance Actions
eq_api_connector-1.2.2.tar.gz 5.8 kB Without provenance Details for eq_api_connector-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eq-api-connector 1.2.2
File Interpreter ABI Platform Actions
eq_api_connector-1.2.2-py3-none-any.whl Python 3 none any Details for eq_api_connector-1.2.2-py3-none-any.whl

Total release size: 12.2 kB

Release files / eq_api_connector-1.2.2.tar.gz

Download URL eq_api_connector-1.2.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
50c2fa29726dd116f89d4e36db308ca5d2ebb95a901a0bc04af989dbb599509d
BLAKE2b-256 checksum
How to use checksums
aa47d3ed4e177c53db6ca4740fec8382be90d1a7709e15a250d98bf4de6c7ac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.13.7 Darwin/27.2.0

Release files / eq_api_connector-1.2.2-py3-none-any.whl

Download URL eq_api_connector-1.2.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92a10efe76c3eb9f223b96f0ecae5692bd208c57a3d1ec9e29b60d2b643c1300
BLAKE2b-256 checksum
How to use checksums
12deebe7e3e35deda17eecf03eba6cdb99eff6b1f7d7e49d5fa30013d6224a4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.13.7 Darwin/27.2.0

Security for eq-api-connector 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page