output_json (erpclaw-meta/db_query.py)

openclaw-master-skills · skills/erpclaw/scripts/erpclaw-meta/db_query.py · python · MIT
crm, CRM / Leads

CLI tool that checks ERPClaw installation, provides database info, and guides setup via JSON output.

#!/usr/bin/env python3
# Source: https://github.com/LeoYeAI/openclaw-master-skills | License: MIT | Copyright 2026 MyClaw.ai (LeoYeAI)
# Provided via justclaw.it.com; keep this notice with the code.
"""ERPClaw Meta-Package — db_query.py

Installation checker and onboarding guide for ERPClaw ERP.
This is the entry point skill — it must work standalone with zero dependencies
beyond the Python standard library.

Usage: python3 db_query.py --action <action-name> [--flags ...]
Output: JSON to stdout, exit 0 on success, exit 1 on error.
"""
import argparse
import json
import os
import re
import sqlite3
import sys
from pathlib import Path

# PyPika is optional — only available when erpclaw-setup has installed the shared lib.
# check-installation and install-guide work without it; seed-demo-data u

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key