Registry / devops / ahbicht

ahbicht

JSON →
library2.1.1pypypi✓ verified 80d ago

Python library to parse, evaluate and process Anwendungshandbuch (AHB) expressions, commonly used in German energy market communication. Current version 2.1.1 supports Python >=3.10. Regular releases.

pip install ahbicht
INSTALL
IMPORT
SIG · AHBICHT
A
ahbicht
devopspythonv2.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Enum
from ahbicht import Enum
from ahbicht.expressions import format_and
StrEnum
from ahbicht import StrEnum
sys
import sys

Parse an AHB expression and format it as AND expression.

from ahbicht.parsing import parse_ahb_expression from ahbicht.expressions import format_and raw_expression = "MSCons::Bilanzkreis" parsed = parse_ahb_expression(raw_expression) print(parsed) # Format as AND expression formatted = format_and(parsed) print(formatted)
Debug
Known issues
gotchaAlways use fully qualified import from ahbicht.parsing and ahbicht.expressions; importing from ahbicht directly may not expose all symbols.
fix
Use from ahbicht.parsing import ... or from ahbicht.expressions import ...
affects: >=2.0.0
deprecatedThe function format_and may be deprecated in favor of a new formatting API in future versions. Check changelog when upgrading.
fix
Review CHANGELOG.md when upgrading.
affects: >=2.0.0
breakingVersion 2.0.0 changed the parsing API. parse_ahb_expression now returns a new AST structure; old scripts using the previous return type will break.
fix
Update code to handle the new AST types. See migration guide in changelog.
affects: 2.0.0
Upgrade
Version history
2.1.1latest on PyPI · released Apr 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
38
OpenAI (training)
1
Resources
ahbicht — pip install ahbicht · libregistry