This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "aiodns", | |
| # "argparse", | |
| # "asyncio", | |
| # "loguru", | |
| # ] | |
| # /// | |
| import asyncio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import re | |
| # Load the JSON data | |
| with open('cratedb_settings.json', 'r') as f: | |
| settings = json.load(f) | |
| # Print header | |
| print(f"SQL Statements for Runtime Configurable CrateDB Settings") | |
| print("=" * 60) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "beautifulsoup4", | |
| # "requests", | |
| # ] | |
| # /// | |
| """ | |
| Generates a JSON File from the documentation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env uv python | |
| """ | |
| CrateDB Settings Extractor | |
| This tool extracts settings from CrateDB's documentation and outputs them | |
| in either JSON or Markdown format, or the SQL statements to set the default value. | |
| It parses the HTML structure of the documentation to identify settings, their | |
| descriptions, default values, and whether they're runtime configurable. | |
| Author: wolta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "click", | |
| # ] | |
| # /// | |
| """ | |
| This script compares CrateDB cluster settings against default values. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = ">=3.8" | |
| # dependencies = [ | |
| # "boto3", | |
| # "botocore", | |
| # ] | |
| # /// | |
| """ |
OlderNewer