Skip to main content

bCLEARer™ Pipeline Development Kit (PDK)

Licence: AGPL v3

The bCLEARer Pipeline Development Kit (PDK) bundles the libraries, scaffolding tools, and reference assets used to build semantic data pipelines on the bCLEARer platform. It delivers the core building blocks for configuration, data interoperability, orchestration, and ontology modelling so you can go from a pipeline blueprint to a running implementation quickly.

Highlights

  • Generate complete pipeline skeletons with the bclearer-pipeline-builder CLI (interactive authoring, JSON-driven creation, structural updates, and template extraction).
  • Connect to the ecosystems your pipelines touch: CSV/Excel/JSON, Delta Lake, PySpark, HDF5, MongoDB, MS Access, PostgreSQL, SQL Server, Neo4j, CozoDB, Raphtory, Enterprise Architect, and more.
  • Operate pipelines confidently with orchestration helpers covering app lifecycle management, UUID/identity services, logging, reporting, static analysis, version-control utilities, and unit-of-measure management.
  • Model your universe with the BNOP ontology module, our BORO™ Native Objects implementation featuring factories, relationship management, and XML migrations.

Workspace packages

Package Path Highlights
bclearer-core libraries/core Configuration managers, canonical identifiers (CKIDs), pipeline stage definitions, and the pipeline builder engine + CLI.
bclearer-interop-services libraries/interop_services Data I/O adapters and transformations spanning DataFrames, parquet/delta, document stores, graph backends (Neo4j, Raphtory, CozoDB), RDBMS connectors, EA integrations, and session orchestration.
bclearer-orchestration-services libraries/orchestration_services Application runner wrappers, logging and reporting helpers, UUID generation, static code analysis, string/unicode tooling, unit-of-measure libraries, and version-control services.
bnop libraries/ontology BORO Native Objects (Python) ontology runtime with factories, facades, migrations, and serializers used across bCLEARer pipelines.

Repository layout

  • libraries/ – the four workspace packages listed above.
  • documentation/ – the pipeline framework, the clean coding and testing standards, and the interop manual.
  • LICENSES/ – the full text of the AGPL-3.0-or-later licence.
  • release_management/ – the PyPI publishing script and the distribution secret scanner.

Getting started

Requires Python 3.12+.

WSL prerequisites

If running on WSL, install the ODBC driver library before installing Python dependencies:

sudo apt-get update && sudo apt-get install -y unixodbc-dev

Without this, pyodbc will fail with ImportError: libodbc.so.2: cannot open shared object file: No such file or directory.

pip install uv
uv sync
source .venv/bin/activate

uv sync installs all workspace members (bclearer-core, bclearer-interop-services, bclearer-orchestration-services, bnop) in editable mode.

Alternative: standard pip

python -m venv .venv
source .venv/bin/activate
pip install -e .

Install individual packages from PyPI if you only need a subset, for example pip install bclearer-core.

Use bclearer with agents

The skills OntoLedgy uses to design and build bclearer pipelines with an AI coding agent are public at ontoledgy-labs/skills, Apache-2.0, released in sets of connected skills. The bclearer-architect set designs a CLEAR pipeline against this PDK (stage map, boundary contracts per source and target, technology mapping onto the interop services you installed) and reviews an existing one for convention drift; the ontologist set does the domain analysis that precedes it. Install bclearer first (Python 3.12 or 3.13), then one of:

# Claude Code plugin (managed, updates itself)
claude plugin marketplace add ontoledgy-labs/skills
claude plugin install bclearer-architect@ontoledgy-skills

# Files you own, any agent that reads SKILL.md
npx skills add ontoledgy-labs/skills --skill bclearer-pipeline-architect --skill ol-skills-setup --skill software-architect

Each release of that repository also carries a zip per set for offline use.

Pipeline builder CLI

The pipeline builder turns JSON (or interactive prompts) into a fully structured bCLEARer pipeline: domains, pipelines, thin slices, stages, sub-stages, orchestrators, and b-units.

# Generate a sample configuration file
bclearer-pipeline-builder sample --output pipeline_config.json

# Create a pipeline in the current directory
bclearer-pipeline-builder create --config pipeline_config.json --output ./pipelines

# Update an existing pipeline from configuration
bclearer-pipeline-builder update --config pipeline_config.json --pipeline ./pipelines/example_domain

# Extract templates from a curated pipeline
bclearer-pipeline-builder update-templates --template-path pipelines/template_pipeline

Run bclearer-pipeline-builder help or python -m bclearer_core.pipeline_builder help for the full command reference. The generated pipelines follow the bCLEARer pipeline framework.

Working with the libraries

Data interchange

from bclearer_interop_services.b_dictionary_service.table_as_dictionary_service import (
    TableAsDictionaryFromCsvFileReader,
    TableAsDictionaryToDataFrameConverter,
)

reader = TableAsDictionaryFromCsvFileReader()
table_dict = reader.read("data/example.csv")

converter = TableAsDictionaryToDataFrameConverter()
dataframe = converter.convert(table_dict)

Beyond CSV and DataFrames you will find adapters for Excel, JSON, XML, HDF5, Parquet/Delta Lake, PySpark sessions, MongoDB, MS Access, PostgreSQL, SQL Server, CozoDB, Neo4j, Raphtory, Enterprise Architect, filesystem snapshots, and more.

Ontology modelling

from bnop.bnop_facades import BnopFacades
from bclearer_orchestration_services.identification_services.uuid_service.uuid_helpers.uuid_factory import (
    create_new_uuid,
)

repository_uuid = create_new_uuid()

product_type = BnopFacades.create_new_bnop_type(repository_uuid)
product = BnopFacades.create_bnop_object(
    object_uuid=create_new_uuid(),
    owning_repository_uuid=repository_uuid,
    presentation_name="Example Product",
)

BnopFacades.write_bnop_object_to_xml("bnop_snapshot.xml")

Use CKIDs from bclearer_core.ckids to classify tuples and relationships when you need richer BORO semantics.

Orchestration helpers

from bclearer_orchestration_services.b_app_runner_service.b_application_runner import run_b_application

def bootstrap():
    print("hello bCLEARer")

run_b_application(bootstrap)

Complement this with utilities from identification_services, log_environment_utility_service, and version_control_services to manage runtime behaviour and governance.

Testing & quality gates

pytest                                  # the default selection: the interop services suite, heavy tests deselected
pytest libraries/core/tests             # one package's suite
pytest -m "not heavy"                   # skip connectors that rely on external services
uv run ruff check .                     # lint
uv run ruff format --check .            # what CI checks

Tests live under libraries/*/tests. Heavy tests target databases or graph backends and are opt-in via the heavy marker. ruff is the only linter and the only formatter.

Run-output volume (/api/run/**)

The /api/run/ routes (/api/run/, /api/run/{id}/universe, /api/run/{id}/universe/registries) serve what a run persisted under <root>/<RunID>/. The run is the only writer; the backend only reads.

  • Root: BCLEARER_RUN_OUTPUT_ROOT, default /var/bclearer-runs.

  • Status: documentation only. This PR documents the mount and adds an advisory check. It does not change maestro or any compose file, and this repository ships no compose file. Nothing is wired until the operator does one of the two wirings below.

  • What maestro does today. Maestro's docker-compose.template.yaml mounts the Docker NAMED volume bclearer-run-output at /var/bclearer-runs:rw (its comment: "Named (not host-bind-mounted)"). It is not a host directory.

  • Wiring A, named volume (matches maestro as shipped). The backend container mounts the same named volume read-only:

    docker run -v bclearer-run-output:/var/bclearer-runs:ro ...   # backend container
    
  • Wiring B, host bind mount. The operator changes maestro to use a host bind mount instead of the named volume, and the backend binds the same host path read-only:

    docker run -v /var/bclearer-runs:/var/bclearer-runs:ro ...    # backend container
    
  • Without a container (bare metal): set BCLEARER_RUN_OUTPUT_ROOT to the directory the run writes to before scripts/deploy.sh. The backend process normally can write there, so deploy.sh will note that; for this setup the note is informational, since there is no mount to make read-only.

  • Check: scripts/deploy.sh doctor and up report a configured root that is missing, not readable and searchable by the backend process, or writable by it. It tests process write permission, not mount mode. The check is advisory. A variable that is set but empty is reported too (the backend would read from its working directory, not the default). When the variable is unset, doctor prints one line and up prints nothing; the default /var/bclearer-runs is not checked. Loopback only: no production host or tenant data.

Documentation & next steps

Contributing

Issues and feedback are welcome. Code pull requests are not being accepted yet, so please raise anything you find as an issue rather than as a patch.

For anything that does not fit an issue, contact support@ontoledgy.io.

Licence

This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE for the full text.

Commercial licences are available for organisations that cannot comply with the AGPL's network-use and source-disclosure terms. Contact support@ontoledgy.io for details.

Contact

support@ontoledgy.io

Metadata

Release files for bclearer 0.8.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 bclearer 0.8.0
File Size Uploaded Provenance Actions
bclearer-0.8.0.tar.gz 29.2 kB With provenance Details for bclearer-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 49.1 kB

Release files / bclearer-0.8.0.tar.gz

Download URL bclearer-0.8.0.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8d526a2edede091d4b6c33113be720f70f37796b7c3e209b3ac3c6a9af4ae165
BLAKE2b-256 checksum
How to use checksums
1b310775d2b5c913e18a42d6fd22b5f8b707ad4bc2dea10ca150087d5a2614ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 26, 2026.

Transparency log

Release files / bclearer-0.8.0-py3-none-any.whl

Download URL bclearer-0.8.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
883e3182ccf3f6862c80ad9afae5499b1218fc93c3f425690b98b01b2c66419d
BLAKE2b-256 checksum
How to use checksums
38d5b0d9bba25e36c0d5e7fb821cf55f50e2cb445ec857b54e2480fbd4ae6bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 26, 2026.

Transparency log

Security for bclearer 0.8.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 bclearer-0.8.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 26, 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.

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