gini-core
The shared foundation of GINI: the topology model and the tamper-evident proof format. Pure Python, no Qt, no container runtime.
You do not normally install this yourself — gini-toolkit (the gBuilder desktop app) and
gini-teaching-center (the course server) both depend on it.
pip install gini-core
Why it is its own package
The Teaching Center runs on a headless VM and must verify student submissions. Verification needs the proof format; it does not need a GUI. Without this split, installing the course server would drag ~400MB of PySide6 onto a server that never draws a pixel — so the server install is 2.3MB instead.
The second reason matters more. gBuilder writes proofs and the Teaching Center verifies them. Those two implementations must agree exactly, forever — a hash chain that disagrees by one field is a student's work rejected. Keeping the format in one distribution both sides depend on means there is no second copy to drift.
What is in it
gini/domain/
topology.py Topology, DeviceInstance, Link — the model gBuilder saves and loads
devices.py the device/element registry (networking + cloud)
proof.py the hash chain, ticket codes, and receipts
persistence.py the on-disk .gini project format
gini.domain.proof is the interesting one. A proof is an append-only chain in which every
entry commits to the one before it, so a recorded session cannot be edited after the fact without
breaking the chain. It is bound to the activity code it was recorded under, and its submit entry
carries a SHA-256 of the topology — which is what makes a stolen project file worthless: the file
and the code are cryptographically the same claim.
The receipt a student reads off the screen is 40 bits of the chain's MAC, rendered as
XXXX-XXXX. gBuilder and the server derive it identically from the proof itself, so a receipt
handed to an instructor before the upload lands is still the right receipt after it does.
Namespace package
gini is an implicit namespace package shared with gini-toolkit: this distribution owns
gini.domain, the app owns gini.ui, gini.services and the rest. Neither ships a
gini/__init__.py — adding one to either would shadow the other and break the import.
License & links
Part of the GINI project — https://github.com/citelab/gini
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 gini_core-6.1.3.tar.gz.
File metadata
- Download URL: gini_core-6.1.3.tar.gz
- Upload date:
- Size: 273.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d734d3c755733a9449e78f8d32ab67166b38314dcd178ea2de70d6123e16256e
|
|
| MD5 |
3237ef0c62637e08d5119f3ff371a5cd
|
|
| BLAKE2b-256 |
7f7ddf8babd9831f961bfab5749fb14d58340d91d2e3d479385a24d9240e25c2
|
Provenance
The following attestation bundles were made for gini_core-6.1.3.tar.gz:
Publisher:
gini-core.yml on citelab/gini
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gini_core-6.1.3.tar.gz -
Subject digest:
d734d3c755733a9449e78f8d32ab67166b38314dcd178ea2de70d6123e16256e - Sigstore transparency entry: 2638459367
- Sigstore integration time:
-
Permalink:
citelab/gini@0c9b3c5b0422c4980a2013b59a9cbf04be044ba4 -
Branch / Tag:
refs/tags/v6.1.3 - Owner: https://github.com/citelab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
gini-core.yml@0c9b3c5b0422c4980a2013b59a9cbf04be044ba4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gini_core-6.1.3-py3-none-any.whl.
File metadata
- Download URL: gini_core-6.1.3-py3-none-any.whl
- Upload date:
- Size: 313.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2538f8fbc209caeefa748800dd7a9dac10cd329e2b27e5a75042592cdbea8785
|
|
| MD5 |
206991de3498a5fc11c86f3557d158bc
|
|
| BLAKE2b-256 |
8c8b91a6be3a7fc5c7d54b36c57988ccc4ebc2274b6d6eaa787e1ed6209ef13a
|
Provenance
The following attestation bundles were made for gini_core-6.1.3-py3-none-any.whl:
Publisher:
gini-core.yml on citelab/gini
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gini_core-6.1.3-py3-none-any.whl -
Subject digest:
2538f8fbc209caeefa748800dd7a9dac10cd329e2b27e5a75042592cdbea8785 - Sigstore transparency entry: 2638459422
- Sigstore integration time:
-
Permalink:
citelab/gini@0c9b3c5b0422c4980a2013b59a9cbf04be044ba4 -
Branch / Tag:
refs/tags/v6.1.3 - Owner: https://github.com/citelab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
gini-core.yml@0c9b3c5b0422c4980a2013b59a9cbf04be044ba4 -
Trigger Event:
push
-
Statement type: