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.

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

gini_core-6.3.2.tar.gz (274.4 kB view details)

Uploaded Source

Built Distribution

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

gini_core-6.3.2-py3-none-any.whl (315.2 kB view details)

Uploaded Python 3

File details

Details for the file gini_core-6.3.2.tar.gz.

File metadata

  • Download URL: gini_core-6.3.2.tar.gz
  • Upload date:
  • Size: 274.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gini_core-6.3.2.tar.gz
Algorithm Hash digest
SHA256 540bdea77e1c2137498f11b1b2db1dcb7d0845b467a3c058d9d49b15e41cfa9a
MD5 e20afd3c942d5c1d2289d9c3e6857c66
BLAKE2b-256 a68b1ae2f64f620aca662eea7779bff702284999e7354123f3b10009a6fbfbe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gini_core-6.3.2.tar.gz:

Publisher: gini-core.yml on citelab/gini

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

File details

Details for the file gini_core-6.3.2-py3-none-any.whl.

File metadata

  • Download URL: gini_core-6.3.2-py3-none-any.whl
  • Upload date:
  • Size: 315.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for gini_core-6.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e29ffcde8143e50432a81313368949e9e3ba9e16a73c907fb238efef1335ff85
MD5 c05c486a7552ef24e6b20df1392b0e36
BLAKE2b-256 6bee0fcc7311b8de867510ca10aff33484e571e7b2a97ca4eeda50896f9fb1aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for gini_core-6.3.2-py3-none-any.whl:

Publisher: gini-core.yml on citelab/gini

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

Release history Release notifications | RSS feed

6.8.1

2 files

6.8.0

2 files

6.7.0

2 files

6.6.1

2 files

6.6.0

2 files

6.5.2

2 files

6.5.1

2 files

6.5.0

2 files

6.4.0

2 files

This release

6.3.2 This release

2 files

6.3.1

2 files

6.3.0

2 files

6.2.1

2 files

6.2.0

2 files

6.1.4

2 files

6.1.3

2 files

6.1.2

2 files

6.1.1

2 files

6.1.0

2 files

0.1.0

2 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