Skip to main content

Kalandra

Kalandra can be used to mirror multiple Git repositories across different locations in an efficient manner without having to keep a full copy of any of the repositories.

How it works

All changes in Git are kept as objects (commits, tags, trees, etc.). Branches and tags are just references to objects. The Git Protocol allows for discovering what objects are present on the given server. It also allows to negotiate the minimal set of objects (or deltas of objects) that need to be transferred to synchronize with the server.

The naive approach to mirroring a Git repository is:

# First time
git clone --mirror upstream

# Every X minutes
git fetch --prune upstream
git push --mirror downstream

This works fine most of the time, but requires that you maintain a local copy the repository that you are mirroring.

What Kalandra does instead, is to that it acts as a broker between the two servers. No data is persisted by the running service. We negotiate the minimal pack needed to syncronize the mirror with upstream and then only transfer the pack.

Roadmap

Planned features:

  • optimize use of capabilities like ofs-delta.

Development

Install the project with all extras and dev tools using uv:

uv sync --all-extras --all-groups

Run the test suite:

uv run pytest -vv

Contributing

TBD

License

Copyright (c) 2024-2025 Łukasz Rekucki

Apache License, Version 2.0

Metadata

Release files for kalandra 0.9.4

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

Source distribution (sdist)

Source distribution for kalandra 0.9.4
File Size Uploaded
kalandra-0.9.4.tar.gz 19.0 kB Details

Built distribution (wheel)

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

Total release size: 43.6 kB

Release files / kalandra-0.9.4.tar.gz

Download URL kalandra-0.9.4.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e013b8ad841aba40f28b922f7763e7ed5f220f1e8e11e6ee3128a0df070c5bb8
BLAKE2b-256 checksum
How to use checksums
63c7bdd7d36c687caa93488ba16746de73265c345b8779a69e3b6b42e5cb90d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 23, 2026.

Transparency log

Release files / kalandra-0.9.4-py3-none-any.whl

Download URL kalandra-0.9.4-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90ceaf2ae1a396136a548bed50e048972273ac36cd0e19682f47f756977e671f
BLAKE2b-256 checksum
How to use checksums
6d7b380fee8ae0a1800c3db17ef2dbef371954ceeb065ef06136ba50d3fe3f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 23, 2026.

Transparency log
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