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

Completed features:

  • support for file:// targets.
  • basic support for ssh:// targets using AsyncSSH.
  • support for http:// targets.
  • GitHub App token authentication for HTTP

Planned features (in order of priority):

  • add "sync-to-github" command which updates a mirror on GitHub based on metadata configured in GH custom properties
  • package as OCI image.
  • optimize use of capabilities like ofs-delta.

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.1.0.dev8.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.1.0.dev8-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file kalandra-0.1.0.dev8.tar.gz.

File metadata

  • Download URL: kalandra-0.1.0.dev8.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for kalandra-0.1.0.dev8.tar.gz
Algorithm Hash digest
SHA256 7724438bf94a9ff38ebd97148748ef7585b7621910dd0a16fba1913d1956905d
MD5 b2ccdb71c1d46779ce8f0b57619b2758
BLAKE2b-256 48884505c28ea854623c2daccc90da8dacf3f91b888c617c643bdf8580515b2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalandra-0.1.0.dev8.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.1.0.dev8-py3-none-any.whl.

File metadata

  • Download URL: kalandra-0.1.0.dev8-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for kalandra-0.1.0.dev8-py3-none-any.whl
Algorithm Hash digest
SHA256 9701bd26cf73ba566db3086a0b87d77c2adb3ab778f3943a6eb03af4199f5aee
MD5 4ac663fa528993f99d041d92a994f85d
BLAKE2b-256 e0220a233c00fdefcf26dee0d82db91baa1c00e4699e8893326c5f0127248b69

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalandra-0.1.0.dev8-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