INNER CODE UNIT · Python

load_json

softaworks/agent-toolkit · scripts/bump_version.py:49

def load_json(path: Path) -> dict:
    """Load a JSON file."""
    with open(path, "r") as f:
        return json.load(f)


def save_json(path: Path, data: dict) -> None:
    """Save a JSON file with proper formatting."""
    with open(path, "w") as f:
        json.dump(data, f, indent=2)
        f.write("\n")


def bump_plugin_version(bump_type: str) -> None:
    """Bump the version in marketplace.json."""
    root = get_root()

    # Path

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…