Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kalandra-0.9.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kalandra-0.9.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file kalandra-0.9.1.tar.gz.

File metadata

  • Download URL: kalandra-0.9.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kalandra-0.9.1.tar.gz
Algorithm Hash digest
SHA256 d57ef6eaa89ba5ff53efa4c0b4c64e48d35848394b913940d04a9d7dba408e20
MD5 39d7f78f969ba6fd29496b6d9ae6e5bf
BLAKE2b-256 0b4c1a87bf3d3f22fadeea55898a467bb8f2ea61965e763dc5f8cce82bdac3d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalandra-0.9.1.tar.gz:

Publisher: publish.yml on lqc/kalandra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kalandra-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: kalandra-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kalandra-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2142bdfff008d8ea8648a2531205b8a1746683e8b2ef74967e6e9fd15f308de8
MD5 afc978d01614e46959a20eeabe3add8e
BLAKE2b-256 cc3c3d62d23a2fa77a6fff6e79ef6904b5769868404e1022f2676fa206d59b6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalandra-0.9.1-py3-none-any.whl:

Publisher: publish.yml on lqc/kalandra

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page