Registry / testing / hegel-core

hegel-core

JSON →
library0.9.1pypypiunverified

Universal property-based testing protocol with serializable schemas, built on Hypothesis. Current version 0.9.1, requires Python >=3.10. Releases are infrequent; pre-1.0 breaking changes possible.

pip install hegel-core
INSTALL
IMPORT
SIG · HEGEL-CORE
H
hegel-core
testingpythonv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Schema
import hegel; Schema = hegel.Schema
from hegel import Schema

Define a data schema and run a property-based test using Hypothesis under the hood.

from hegel import Schema, run_test # Define a serializable schema schema = Schema({ "x": int, "y": int }) # Property-based test @run_test(schema) def test_add(data): result = data["x"] + data["y"] assert result == data["x"] + data["y"] # Execute test_add()
Debug
Known issues
breakingPre-1.0 version: breaking changes may occur in minor releases. Pin exact version in production.
fix
Pin to 'hegel-core==0.9.1' in requirements.txt.
affects: <1.0.0
gotchaImport path is 'hegel', not 'hegel_core' or 'hegel.core'. The package name on PyPI is 'hegel-core' but the module is 'hegel'.
fix
Use 'import hegel' or 'from hegel import ...'.
affects: all
deprecatedAPI may change: the 'run_test' decorator signature might add new parameters in future releases.
fix
Pass arguments by keyword to avoid breakage.
affects: 0.9.x
Upgrade
Version history
0.9.1latest on PyPI · released May 15, 2026
Audit
Dependencies
hypothesisrequiredCore dependency for property-based testing strategies.
Agent activity
22 hits · last 30 days
node
22
Resources

No resource links recorded.

hegel-core — pip install hegel-core · libregistry