Skip to main content

Deutsch | English

infranode (Python)

Python-Client ohne API-Key für die InfraNode Open-Data-API, mit fertigen Tools für LangChain und LlamaIndex.

InfraNode bündelt offene Verwaltungsdaten aus 84 deutschen Städten (Wetter, Luftqualität, Strompreise, Bodenrichtwerte, ÖPNV, E-Ladepunkte, Demografie und mehr) hinter einem einheitlichen JSON-Envelope. Kein API-Key, keine Registrierung.

pip install infranode

Quickstart

from infranode import InfraNode

api = InfraNode()
rec = api.weather("berlin")
print(rec.payload["temperature_c"], "degC")
print("Source:", rec.attribution["text"])   # always show attribution

# Any endpoint by name
fuel = api.record("hamburg", "fuel-prices")
cities = api.cities()                         # all 84 cities

Async funktioniert genauso:

import asyncio
from infranode import AsyncInfraNode

async def main():
    async with AsyncInfraNode() as api:
        rec = await api.air("muenchen")
        print(rec.payload)

asyncio.run(main())

Jeder Record trägt seine eigene attribution (Quelle plus Lizenz-URL). Die Open-Data-Lizenzen verlangen eine Quellenangabe, zeige sie also deinen Nutzern an.

Fehler kommen als InfraNodeError zurück:

from infranode import InfraNode, InfraNodeError

try:
    InfraNode().record("atlantis", "weather")
except InfraNodeError as e:
    print(e.code, e.message)

Als Tool für KI-Agenten nutzen

LangChain

pip install "infranode[langchain]"
from infranode.integrations.langchain import infranode_tools

tools = infranode_tools()   # bind these to your LangChain agent / LLM

LlamaIndex

pip install "infranode[llamaindex]"
from infranode.integrations.llamaindex import infranode_tools

tools = infranode_tools()   # pass to your LlamaIndex agent

Beide Integrationen liefern zwei Tools: infranode_get_city_data(city, dataset) und infranode_list_cities(). Die Tool-Beschreibung listet die gültigen Datasets auf, das Modell wählt also selbst das passende. Spricht deine Laufzeitumgebung MCP, nimm besser den offiziellen InfraNode-MCP-Server (https://mcp.infranode.dev/mcp); diese Tools sind die leichtgewichtige Alternative.

Datasets

weather, air, power-price, power-load, charging, sharing, fuel-prices, pollen-uv, water-level, transit, station-departures, demographics, land-values, election, tourism, accidents und mehr. Die vollständige Routenliste steht unter https://infranode.dev/api/v1/openapi.yaml.

Über InfraNode

Lizenz

Apache-2.0. Die Daten bleiben unter den Lizenzen der jeweiligen Quellen und sind im attribution-Feld jedes Records ausgewiesen.

Metadata

Release files for infranode 0.1.0

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

Source distribution (sdist)

Source distribution for infranode 0.1.0
File Size Uploaded Provenance Actions
infranode-0.1.0.tar.gz 341.6 kB With provenance Details for infranode-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for infranode 0.1.0
File Interpreter ABI Platform Actions
infranode-0.1.0-py3-none-any.whl Python 3 none any Details for infranode-0.1.0-py3-none-any.whl

Total release size: 353.9 kB

Release files / infranode-0.1.0.tar.gz

Download URL infranode-0.1.0.tar.gz
Size 341.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f35b5e16689ba100902e11d1ee93ee05bda4ce3ca901371dfdc1837901762d70
BLAKE2b-256 checksum
How to use checksums
bfe57ea69efd035052f6a28a5f87a224774dff552045fd54ed609cda4cbc6394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / infranode-0.1.0-py3-none-any.whl

Download URL infranode-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5c6bdf54a504720141c6279054264a5da1345b4d406a595abd050e64b5beaf7
BLAKE2b-256 checksum
How to use checksums
a1a174095aa23529e0c9392b19c24d903e337a9b9e2e96e6dd64a0365710983a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for infranode 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for infranode-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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