Skip to content

Instantly share code, notes, and snippets.

View WalBeh's full-sized avatar

Walter Behmann WalBeh

  • 10:05 (UTC +02:00)
View GitHub Profile
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "aiodns",
# "argparse",
# "asyncio",
# "loguru",
# ]
# ///
import asyncio
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)
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "beautifulsoup4",
# "requests",
# ]
# ///
"""
Generates a JSON File from the documentation
@WalBeh
WalBeh / soup2.py
Last active April 11, 2025 11:55
Get a condensed view on the cratedb documentation...
#!/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
@WalBeh
WalBeh / compare_settings.py
Last active April 24, 2025 16:17
Compares the cluster settings with the default settings of a cratedb cluster
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "click",
# ]
# ///
"""
This script compares CrateDB cluster settings against default values.
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "boto3",
# "botocore",
# ]
# ///
"""