Skip to main content

Berg

CI PyPI Python

Berg is a safe management layer for Apache Iceberg catalogs and table metadata. It helps teams inspect tables, identify health problems, describe desired state, review deterministic changes, and execute approved operations inside their own infrastructure.

Berg does not replace Spark, Flink, Trino, Athena, or another query engine. It does not move or transform table records. Its focus is controlled metadata and catalog operations with explicit approval, backend capability checks, durable execution state, idempotency, audit history, and failure reconciliation.

Install

With pip:

python -m pip install berg-iceberg

With uv:

uv tool install berg-iceberg

Then:

berg --version
berg --help

What you can do

berg connect
berg capabilities
berg scan
berg inspect analytics.events
berg health analytics.events

Use --output json for automation and CI/CD integrations.

For a metadata change, Berg uses a reviewable plan:

berg plan analytics.events \
  --set-property write.target-file-size-bytes=536870912 \
  --save events-plan.json

berg apply events-plan.json --dry-run
berg apply events-plan.json --approve --audit-file audit.jsonl
berg execution-status ID --output json

Plans are checked against current table state and the selected backend. Berg rejects unsupported operations, stale plans, unauthorized changes, and unsafe duplicate execution before mutation.

For CI/CD policy gates, use berg validate-policy and berg authorize on the exact saved plan before any execution. See the CI/CD integration guide and the provider-neutral examples in examples/ci.

Declarative table management

Desired state can be written as a portable berg.dev/v1 YAML or JSON document:

berg validate-spec table.yaml
berg diff table.yaml
berg plan --spec table.yaml --save table-plan.json

Python users can author the same document without connecting to a catalog:

from berg.sdk import TableDefinition

events = (
    TableDefinition.for_table("analytics.events")
    .with_column("id", "long", required=True)
    .with_column("created_at", "timestamp", required=True)
    .partition_by("created_at", transform="day")
    .with_property("write.target-file-size-bytes", "536870912")
)

events.write("events.yaml")

Supported catalog paths

Berg has compatibility contracts for:

  • Iceberg REST Catalog with S3-compatible storage
  • Project Nessie
  • Apache Polaris
  • JDBC/PostgreSQL catalogs
  • Hive Metastore
  • AWS Glue Catalog with S3

Support is operation- and backend-specific. Run berg capabilities and read the compatibility matrix before enabling an operation in automation.

Customer-local Agent

The Agent runs the same guarded execution kernel inside customer infrastructure. It receives an approved plan, uses customer credentials, and writes state and audit records locally. It requires no inbound service and does not upload raw table data to Berg Cloud.

berg agent apply plan.json --approve

The reference container deployment is in docker-compose.agent.yml.

Local development

The private conformance repository contains disposable Docker environments and live compatibility contracts. The core repository contains the installable package and its offline test suite:

git clone https://github.com/Berg-Cloud/berg.git
cd berg
uv sync --group dev
uv run pytest

See the conformance repository for local catalog stacks. See local development, the capability matrix, and the Python API guide for details.

The live backend matrix and disposable acceptance environments are maintained in the private Berg Conformance repository. See the repository topology for the ownership and migration rules.

Safety boundaries

Berg currently supports approved metadata operations such as properties, compatible schema additions, additive partition fields, certified snapshot expiration, and guarded orphan-file cleanup. Compaction, arbitrary destructive changes, and unsupported backend operations remain disabled or capability-gated.

The product roadmap and release boundaries are documented in V0_SCOPE.md, V1_SCOPE.md, V1.2_SCOPE.md, and docs/roadmap.md.

License and security

See SECURITY.md for vulnerability reporting and docs/security.md for the operational security model.

Metadata

Release files for berg-iceberg 1.2.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 berg-iceberg 1.2.0
File Size Uploaded Provenance
berg_iceberg-1.2.0.tar.gz 236.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for berg-iceberg 1.2.0
File Interpreter ABI Platform
berg_iceberg-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 277.2 kB

Release files / berg_iceberg-1.2.0.tar.gz

Download URL berg_iceberg-1.2.0.tar.gz
Size 236.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d3ef2d1b5c6ecefde8f3acacc3ef3576d108e42be5128985790fc86a0770d2e5
BLAKE2b-256 checksum
How to use checksums
c1cba3c18bd8f6670095cec4cf3fdd48761ad50c3da3359f66d83786e349e0a1
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 5, 2026.

Transparency log

Release files / berg_iceberg-1.2.0-py3-none-any.whl

Download URL berg_iceberg-1.2.0-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9340dac9a4eff36c5b853a7bfd873b9f88aaf3ab851c6573ae64098ff135bc90
BLAKE2b-256 checksum
How to use checksums
0ea30562c395428291385a8ce8720e532de27c415e48c4ec6363830a71ec53c8
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 5, 2026.

Transparency log

Security for berg-iceberg 1.2.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for berg_iceberg-1.2.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 5, 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.

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