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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kalandra-0.8.0.tar.gz.
File metadata
- Download URL: kalandra-0.8.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fc78b1fed2aa117b9ab8728f117077f2068bd7436a0e3b99930a9c5760f951e
|
|
| MD5 |
d9454c0b6afb27808266a18879a45504
|
|
| BLAKE2b-256 |
b963b5d7520f32ae55fa091972efb33bd7185bf77780b7f9b76437744d40c350
|
Provenance
The following attestation bundles were made for kalandra-0.8.0.tar.gz:
Publisher:
publish.yml on lqc/kalandra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kalandra-0.8.0.tar.gz -
Subject digest:
2fc78b1fed2aa117b9ab8728f117077f2068bd7436a0e3b99930a9c5760f951e - Sigstore transparency entry: 184843103
- Sigstore integration time:
-
Permalink:
lqc/kalandra@569b736131da8d8146753544a038511209d1b8cc -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/lqc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@569b736131da8d8146753544a038511209d1b8cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file kalandra-0.8.0-py3-none-any.whl.
File metadata
- Download URL: kalandra-0.8.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2184ea078c0a89f8285cb13235b3af4227c0ccddacc014c1e88a7bed70d0706
|
|
| MD5 |
8392d26bcab7bda09dafc6109f98a19e
|
|
| BLAKE2b-256 |
71134fb245e4d8496a2b6e16217f69a2858c965812649707eab01b7af713bfb3
|
Provenance
The following attestation bundles were made for kalandra-0.8.0-py3-none-any.whl:
Publisher:
publish.yml on lqc/kalandra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kalandra-0.8.0-py3-none-any.whl -
Subject digest:
f2184ea078c0a89f8285cb13235b3af4227c0ccddacc014c1e88a7bed70d0706 - Sigstore transparency entry: 184843108
- Sigstore integration time:
-
Permalink:
lqc/kalandra@569b736131da8d8146753544a038511209d1b8cc -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/lqc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@569b736131da8d8146753544a038511209d1b8cc -
Trigger Event:
push
-
Statement type: