Skip to main content

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.

Part of the GINI project — https://github.com/citelab/gini

Metadata

Release files for gini-core 6.15.3

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

Source distribution (sdist)

Source distribution for gini-core 6.15.3
File Size Uploaded
gini_core-6.15.3.tar.gz 315.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gini-core 6.15.3
File Interpreter ABI Platform
gini_core-6.15.3-py3-none-any.whl Python 3 none any Details

Total release size: 676.4 kB

Release files / gini_core-6.15.3.tar.gz

Download URL gini_core-6.15.3.tar.gz
Size 315.3 kB
Tags Source
SHA-256 checksum
How to use checksums
07fa750924f189aee42b7e31c688776cc3def5664cdb808a00dde87f9bd41ba5
BLAKE2b-256 checksum
How to use checksums
fb0c8d00c7878a7c4b2e52ae1474d5b20378570bbc81d928f844217164e56293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 27, 2026.

Transparency log

Release files / gini_core-6.15.3-py3-none-any.whl

Download URL gini_core-6.15.3-py3-none-any.whl
Size 361.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b249d7a489d6b63596d46dd4e5a5bb68deffbe919a166069b9ff776286cb028e
BLAKE2b-256 checksum
How to use checksums
14f0c11513dcf6f4879b8f47d031086e641a24740dd94d146028c4736d68cab2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 27, 2026.

Transparency log

Release history Release notifications | RSS feed

6.18.3

2 release files

6.18.2

2 release files

6.18.1

2 release files

6.18.0

2 release files

6.17.0

2 release files

6.15.5

2 release files

6.15.4

2 release files

This release

6.15.3 This release

2 release files

6.15.2

2 release files

6.15.1

2 release files

6.15.0

2 release files

6.14.0

2 release files

6.13.1

2 release files

6.13.0

2 release files

6.12.0

2 release files

6.11.3

2 release files

6.11.2

2 release files

6.11.1

2 release files

6.9.1

2 release files

6.9.0

2 release files

6.8.1

2 release files

6.8.0

2 release files

6.7.0

2 release files

6.6.1

2 release files

6.6.0

2 release files

6.5.2

2 release files

6.5.1

2 release files

6.5.0

2 release files

6.4.0

2 release files

6.3.2

2 release files

6.3.1

2 release files

6.3.0

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.4

2 release files

6.1.3

2 release files

6.1.2

2 release files

6.1.1

2 release files

6.1.0

2 release files

0.1.0

2 release files

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