Skip to main content

KRROOD

KRROOD stands for Knowlege Representation & Reasoning Through Object Oriented Design. This project aims to provide a unified way to represent and reason about knowledge in Python using the principles of object oriented design.

This project also is consistent with many of the ideas mentioned in the book Knowledge Representation and Reasoning. And of course the books about object oriented design.

Installation

pip install krrood

krrood installs every krrood distribution. Each part can also be installed on its own, and every part keeps its krrood.* import path:

distribution modules
krrood-core krrood.class_diagrams, krrood.exceptions, krrood.patterns, krrood.singleton, krrood.source_analysis, krrood.symbol_graph, krrood.utils, krrood.bounds
krrood-serialization krrood.adapters
krrood-code-generation krrood.code_generation
krrood-symbolic-math krrood.symbolic_math
krrood-rustworkx-utils krrood.rustworkx_utils
krrood-eql krrood.entity_query_language, krrood.inheritance_path_length
krrood-planning krrood.planning
krrood-ormatic krrood.ormatic
krrood-probabilistic krrood.parametrization
krrood-rdr krrood.ripple_down_rules
krrood-ontomatic krrood.ontomatic
krrood-development-tools krrood.development_tools and the krrood command
krrood-random-events krrood.random_events
krrood-probabilistic-models krrood.probabilistic_models

The graph visualizers need the visualization extra:

pip install "krrood[visualization]"

Entity Query Language (EQL)

EQL is a relational query language that is pythonic, and intuitive.

The interface side of EQL is inspired by euROBIN entity query language white paper.

Ormatic

PyCharm plugin

Python Role Lens, a PyCharm/IntelliJ plugin that teaches the IDE about krrood's Role delegation pattern (completion, type inference, and Go-to-Declaration on delegated attributes), lives at plugins/pycharm/pyroles-pycharm/. It is a self-contained Gradle project, built and published to the JetBrains Marketplace independently of the Python workspace.

Documentation

Read the documentation here.

Metadata

Release files for krrood 26.11.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 krrood 26.11.0
File Size Uploaded Provenance Actions
krrood-26.11.0.tar.gz 6.2 kB With provenance Details for krrood-26.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / krrood-26.11.0.tar.gz

Download URL krrood-26.11.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00571378d6ecb4e216dd7fef32717359e19cc09bf6cfd5761190dcc107ff4f69
BLAKE2b-256 checksum
How to use checksums
0421a700306f46fd1dbd6a3323c9835c68fe7a9f7da7346d8a13634cd46e6e73
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 Nov 30, 2026.

Transparency log

Release files / krrood-26.11.0-py3-none-any.whl

Download URL krrood-26.11.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c83ce0979398605d1a7beedd8e57035356c2f296cda6118d4ee9aefc6dc8c50
BLAKE2b-256 checksum
How to use checksums
c83aafe065172c31b43a715d4055025a24f68f2be8c10c400b072d47735b068e
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 Nov 30, 2026.

Transparency log

Security for krrood 26.11.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for krrood-26.11.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 Nov 30, 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

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