Skip to main content

Bauklotz

A Python-based tool for software architecture analysis and visualization.

Overview

Bauklotz is a framework for building and executing analysis pipelines that process software project structures. It is designed to help software architects analyze codebases through configurable filters and generate various reports and visualizations.

Features

  • Pipeline-based architecture analysis
  • Configurable filters for analyzing Python projects
  • Multiple report formats (CSV, YAML, UML diagrams, C4 diagrams, Treemaps)
  • Graph-based visualization of class hierarchies and dependency networks
  • C4 model extraction from docstring annotations
  • Extensible filter and report system
  • Plugin system for custom filters and reports
  • Fact contract validation: static pre-run check that every filter's required facts are provided by upstream filters

Installation

pip install bauklotz

Usage

  1. Create a configuration file describing your analysis pipeline:
channel input

filter builtin.python.project:PythonProjectFilter project
filter builtin.python.structure:PythonClassHierarchyFilter hierarchy
    internal_modules: "your_module"

# External filter example
filter external.metrics:ComplexityFilter complexity
    threshold: 10

report builtin.writer.uml:ClassDiagramWriter classdiagram
   path: "output/classdiagram.uml"

input -> project -> hierarchy -> complexity -> classdiagram
  1. Run the analysis:
bauklotz config.bauklotz <project_dir> input --extension external

Configuration

The pipeline is configured using a simple DSL that defines:

  • Input channels
  • Filters for processing (both built-in and external)
  • Reports for output generation
  • Connections between components

Syntax Notes

A few DSL conventions that aren't obvious from the example above:

  • Argument names always end with a colon, e.g. threshold: (the colon is stripped from the parsed name).
  • A value prefixed with @ is treated as a file path, e.g. path: @output/summary.csv; relative paths are resolved relative to the config file's directory.
  • Numeric argument values (e.g. threshold: 10) are always parsed as floating point numbers internally.
  • # starts a comment that runs to the end of the line; a # inside a "quoted string" is treated as a literal character, not a comment.

Plugin System

Bauklotz supports external filters and reports through its plugin system. Custom filters can be added by:

  1. Creating a Python module with filter implementations
  2. Registering the module with Bauklotz
  3. Referencing the custom filters in your configuration using external.module:FilterName syntax

Core Components

  • Pipe: Base interface for pipeline construction and execution
  • Filter: Processes items in the pipeline
  • Report: Generates output in various formats

Output Formats

  • CSV reports
  • YAML summaries
  • UML class diagrams
  • Graph formats (GML)
  • C4 architecture diagrams (PlantUML)
  • Interactive Treemaps (HTML)

Documentation

For detailed documentation, please visit the project repository.

License

BSD3

Metadata

Release files for bauklotz 2.3.3

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

Source distribution (sdist)

Source distribution for bauklotz 2.3.3
File Size Uploaded Provenance Actions
bauklotz-2.3.3.tar.gz 69.6 kB Without provenance Details for bauklotz-2.3.3.tar.gz

Built distribution (wheel)

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

Total release size: 166.5 kB

Release files / bauklotz-2.3.3.tar.gz

Download URL bauklotz-2.3.3.tar.gz
Size 69.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d4ecd8ef256289970752f3911a0091addfb705d144b8d960e35b8714bc80a757
BLAKE2b-256 checksum
How to use checksums
007d6ddbcfc188d61c5c16757b8c514f3f8bfcc356acd9b8abd5f7b749bb4500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.14.10 Linux/6.12.113+

Release files / bauklotz-2.3.3-py3-none-any.whl

Download URL bauklotz-2.3.3-py3-none-any.whl
Size 96.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe72a92609c8eb777efc1e83b333072658b4d829e0620cb86f6127e2041a5889
BLAKE2b-256 checksum
How to use checksums
61dee96df6438b6219dbb503ef09c61b20f027bbb6d90ab92b22773fbcf2ac48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.14.10 Linux/6.12.113+

Security for bauklotz 2.3.3

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.

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