-
Notifications
You must be signed in to change notification settings - Fork 0
Repository Tools
小树 edited this page Aug 2, 2026
·
1 revision
CLI and GUI applications are repository tools, not modules in the published library. Installing APICORE_Python does not install commands or GUI dependencies.
git clone https://github.com/SRON-org/APICORE_Python.git
cd APICORE_Python
uv syncuv run python tools/cli.py path/to/config.api.yaml
uv run python tools/cli.py path/to/config.api.json --version v1
uv run python tools/cli.py path/to/config.api.toml --version 2.1
uv run python tools/cli.py file-with-custom-extension --format jsonExit code 0 means validation succeeded. Exit code 1 means file access, decoding, or schema validation failed. Argparse uses exit code 2 for invalid command arguments.
uv run python tools/gui.pyOn Windows, launch without a console window after uv sync:
.\.venv\Scripts\pythonw.exe .\tools\gui.pySome Linux distributions require Tkinter separately:
sudo apt install python3-tkThe GUI supports JSON, YAML, YML, and TOML files, recursively scans selected folders, displays parsed fields, masks secret parameter values, and labels run handlers as high risk. It does not call APIs or execute handlers.
| Previous command | Repository tool |
|---|---|
apicore-validate config.api.yaml |
uv run python tools/cli.py config.api.yaml |
apicore-gui |
uv run python tools/gui.py |
© 2026 Little Tree Studio & SRInternet Studio.
Licensed under CC BY-SA 4.0.