Skip to main content

iil-concept-templates

Shared schemas, frameworks and extraction for structured concept templates.

ADR-147 — see docs/adr/ADR-147-v2-concept-templates-package.md

Installation

# Core (schemas, frameworks, registry, validators, export)
pip install iil-concept-templates

# With PDF extraction
pip install iil-concept-templates[pdf]

# With LLM analysis (via outlinefw)
pip install iil-concept-templates[llm]

# Everything
pip install iil-concept-templates[full]

Quick Start

from concept_templates import ConceptScope, ConceptTemplate
from concept_templates.registry import get_framework, list_frameworks
from concept_templates.export import to_markdown

# List available frameworks
frameworks = list_frameworks()
# {'brandschutz_mbo': ..., 'exschutz_trgs720': ..., 'ausschreibung_vob': ...}

# Get a specific framework
template = get_framework("brandschutz_mbo")

# Export as Markdown
print(to_markdown(template))

# Register a custom framework
from concept_templates.registry import register_framework

custom = ConceptTemplate(
    name="Mein Konzept",
    scope=ConceptScope.BRANDSCHUTZ,
    framework="custom_bs",
)
register_framework("custom_bs", custom)

Built-in Frameworks

Key Name Scope Sections
brandschutz_mbo Brandschutzkonzept §14 MBO brandschutz 6
exschutz_trgs720 Explosionsschutzkonzept TRGS 720ff explosionsschutz 7
ausschreibung_vob Ausschreibung nach VOB/A ausschreibung 8

File Validation

from concept_templates.validators import validate_upload_file, FileValidationError

try:
    validate_upload_file("plan.pdf", size_bytes=1_000_000)
except FileValidationError as e:
    print(f"Invalid: {e}")

Allowed: .pdf, .docx, .doc, .xlsx, .xls, .dxf, .dwg, .jpg, .jpeg, .png, .tiff, .txt, .csv Max size: 50 MB

Development

pip install -e ".[dev]"
pytest -v --cov=concept_templates
ruff check .

Metadata

Release files for iil-concept-templates 0.5.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 iil-concept-templates 0.5.0
File Size Uploaded Provenance
iil_concept_templates-0.5.0.tar.gz 39.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iil-concept-templates 0.5.0
File Interpreter ABI Platform
iil_concept_templates-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 72.3 kB

Release files / iil_concept_templates-0.5.0.tar.gz

Download URL iil_concept_templates-0.5.0.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4836c92d2c20226962d9a1c4ff7a25b1d8a772a63780aed0f007314bfcd2de7e
BLAKE2b-256 checksum
How to use checksums
3e85440d890911e1169ee8a429daee55286a8346f3f167b4f407e2d32c69a543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / iil_concept_templates-0.5.0-py3-none-any.whl

Download URL iil_concept_templates-0.5.0-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcaca8ac0d80adfbb68e8b7f180a00845fa2b3d99ed1ea05844d89b57c43ef20
BLAKE2b-256 checksum
How to use checksums
5213337d2e593958f22d6e38cdfad66dadfb6502afafb401c1e61c7ce00f0040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Security for iil-concept-templates 0.5.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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files No 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