FIWARE Fundamentals
FIWARE Fundamentals adds OAuth-aware Orion Context Broker and IoT Agent clients on top of FILIP. It centralizes token injection, manages background token renewal, applies explicit HTTP timeouts, and retries only operations that are safe to repeat automatically.
The project requires Python 3.10 or newer and is currently under active development.
Installation
From a checkout of this repository, install the package in editable mode:
python -m pip install -e .
OAuth quick start
The smallest runnable workflow is
examples/01_minimal_context_broker_oauth.py. It
uses a PasswordGrantHandler to obtain and renew Keycloak tokens, then gives
an OAuthContextBrokerClient ownership of that handler:
from fiware_fundamentals.clients.auth_handler import PasswordGrantHandler
from fiware_fundamentals.clients.oauth_ocb import OAuthContextBrokerClient
auth_handler = PasswordGrantHandler(
auth_url=token_url,
refresh_url=token_url,
client_id=client_id,
username=username,
password=password,
)
with OAuthContextBrokerClient(
url=orion_url,
auth_handler=auth_handler,
) as context_broker:
print("Connected to Orion:", context_broker.base_url)
Credentials and deployment URLs should come from environment variables or an approved secret store, never from source code.
The complete OAuth examples guide starts with setup for beginners and progresses through:
- FIWARE tenant headers;
- timeout, retry, and worker-health configuration;
- sharing one authentication worker between clients; and
- extending central OAuth handling to another FILIP HTTP client.
All supplied examples perform read-only requests.
Architecture and extension
The architecture guides separate the two network paths:
- The
AuthHandlerlifecycle and extension guide documents token acquisition, renewal, failure, shutdown, and the contract for another authentication-handler subclass. - The
OAuthRequestMixinrequest pipeline documents method interception, header and origin handling, protected-service retries, and the contract for another OAuth-enabled client.
Development
Install the test dependencies and run the checks from the repository root:
python -m pip install -e ".[tests]" black ruff
python -m pytest
python -m ruff check src tests examples
python -m black --check src tests examples
The project issue tracker is available at the GitLab repository.
Metadata
Release files for fiware-fundamentals 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fiware_fundamentals-1.0.0.tar.gz | 63.3 kB | Without provenance | Details for fiware_fundamentals-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fiware_fundamentals-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fiware_fundamentals-1.0.0-py3-none-any.whl |
Total release size: 95.1 kB
Release files / fiware_fundamentals-1.0.0.tar.gz
| Download URL | fiware_fundamentals-1.0.0.tar.gz |
|---|---|
| Size | 63.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11732da93c26418be2f8d27c931ced01f36e4a908022a2af537e3c084194ff1e
|
|
BLAKE2b-256 checksum How to use checksums |
ad362104ebf0f74fd7b500a20c94677c2870e493865da3c5ca22c1b504e733df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.15.2
|
Release files / fiware_fundamentals-1.0.0-py3-none-any.whl
| Download URL | fiware_fundamentals-1.0.0-py3-none-any.whl |
|---|---|
| Size | 31.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b951c43f08fe21023473178314081eac4a8d7da08881a370c6f275a95dc16ea
|
|
BLAKE2b-256 checksum How to use checksums |
df7e1413fa11efb048289130052626f1484c20897fb4cb5b75699544b0bd9301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.15.2
|
Security for fiware-fundamentals 1.0.0
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.