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.22.22

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.22.22
File Size Uploaded Provenance Actions
gini_core-6.22.22.tar.gz 442.6 kB With provenance Details for gini_core-6.22.22.tar.gz

Built distribution (wheel)

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

Total release size: 939.8 kB

Release files / gini_core-6.22.22.tar.gz

Download URL gini_core-6.22.22.tar.gz
Size 442.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd4bc593f644c21b495bc2a7b3de1f7b24702b41263fe76ead77031078636045
BLAKE2b-256 checksum
How to use checksums
5c0bc2db9774a0d044a6099342ae8ec0c374090675b8d97b245b93174ca78ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

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

Download URL gini_core-6.22.22-py3-none-any.whl
Size 497.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
982d94f946129ee3919cedcff5a6f26f9c0023800562bd12b878f465324789c1
BLAKE2b-256 checksum
How to use checksums
b609ac167ad342e93b5fdf0b0824c90ba6163915e2786efb50d09086f0c2ef57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Security for gini-core 6.22.22

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gini_core-6.22.22.tar.gz

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 Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.22.22 This release

2 release files Full provenance

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