Deepseek / generate_manifest.py
Leonydis137's picture
Create generate_manifest.py
bc29595 verified
# generate_manifest.py (new utility)
import hashlib
import json
import os
def generate_manifest():
manifest = {
"last_updated": datetime.utcnow().isoformat() + "Z",
"modules": {}
}
modules = ["response_handler", "updater"]
for module in modules:
file_path = f"{module}.py"
if os.path.exists(file_path):
with open(file_path, "r") as f:
content = f.read()
sha256 = hashlib.sha256(content.encode()).hexdigest()
manifest["modules"][module] = {
"version": "1.0",
"sha256": sha256
}
with open("manifest.json", "w") as f:
json.dump(manifest, f, indent=2)
if __name__ == "__main__":
from datetime import datetime
generate_manifest()