Current collected state Current
Observed since 20 Oct, 21:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A versioned JSON export utility with hash tracking
# af_json_teach
A lightweight Python utility for exporting JSON data with automatic versioning and hash tracking.
Ideal for saving snapshots, comparing changes, and ensuring data integrity.
## Features
- Save JSON data with an auto-generated hash (SHA256)
- Track version history of JSON documents
- Load and compare different versions
- Simple API for teaching and small projects
## Installation
```bash
pip install af_json_teach
from af_json_teach import JSONVersioner
# Create a versioner instance (uses a local sqlite database)
jv = JSONVersioner("my_data.json")
# Save a JSON object – automatically stores hash and timestamp
jv.save({"name": "Alice", "score": 100})
# Load the latest version
data = jv.load()
print(data)
# List all versions with timestamps
versions = jv.list_versions()
print(versions)
# Compare two versions
diff = jv.diff(version1=1, version2=2)
JSONVersioner(file_path: str, db_path: str = "versions.db")save(data: dict) -> str – saves data, returns the hashload(version: int = None) -> dict – loads the latest or a specific versionlist_versions() -> List[dict] – returns list of versions with metadatadiff(version1: int, version2: int) -> dict – shows differences between two versionsMIT License
Abbas Faramarzi – GitHub
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 10 Jun 2026 | 0 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Shared repository data · GitHub
Observed since 20 Oct, 21:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ea4a008b1f42596b28d17ce3da0b8ec4a6aa693fba0647f8421a448329a17f6c