Get providers for a flow
Returns the provider processes (Ref) for a specific product or waste flow
(passed as a flow reference or ID):
-
Product flow: Returns processes that produce the product as an output.
-
Waste flow: Returns waste treatment processes that accept the waste as an input.
The returned providers can be linked to matching product inputs or waste outputs in a product system.
| JSON-RPC | REST | Parameters | Returns |
|---|---|---|---|
data/get/providers | GET data/providers/{id} | @id of the flow | List[TechFlow] |
Try it
You can edit and execute the example below. Just make sure an openLCA IPC
server is running on port 8080:
// Change the ID of the flow for which you want to get the possible providers.
const v = await call("data/get/providers", {
"@type": "Flow",
"@id": "761145b7-3abe-48a5-a426-da5da6c36674",
});
console.log(v);
Python IPC
import olca_ipc as ipc
import olca_schema as o
client = ipc.Client()
providers = client.get_providers(
flow=o.Ref(id="7f6bb533-2d3c-43a6-ac60-6eef299d7c52")
)
for p in providers:
print(p)
# TechFlow(
# provider=Ref(id='71dab7ae-4d58-4f73-8449-5967c296bcde', ...
# flow=Ref(id='7f6bb533-2d3c-43a6-ac60-6eef299d7c52', ...