mirror of
https://github.com/Deathemonic/BA-AD.git
synced 2025-07-29 03:37:24 +02:00

- refactored entire codebase - remove --category - remove --version - docs: updated tutorial - docs: readme update - renamed files to proper python style guide - replace old crypto with ba-cy - moved images to .github/resources - moved extractors to its own folder (extractors) - renamed lib to crypto - moved some functions to its own helper - added helper scripts
14 lines
341 B
Python
14 lines
341 B
Python
import json
|
|
from pathlib import Path
|
|
from typing import Dict, Any
|
|
|
|
|
|
def load_json(file_path: Path) -> Dict[str, Any]:
|
|
with open(file_path, 'r') as f:
|
|
return json.load(f)
|
|
|
|
|
|
def save_json(file_path: Path, data: Dict[str, Any], indent: int = 4) -> None:
|
|
with open(file_path, 'w') as f:
|
|
json.dump(data, f, indent=indent)
|