Skip to content

Instantly share code, notes, and snippets.

@apetenchea
apetenchea / errors.py
Created February 24, 2025 15:19
Create arango errno.py file for the python driver
import requests
ARANGODB_ERRORS_FILE = "https://raw.githubusercontent.com/arangodb/arangodb/refs/heads/devel/lib/Basics/errors.dat" # noqa: E501
def generate_section(line, output):
text = line[3:].strip()
print("#" * (len(text) + 4), file=output)
print(f"# {text} #", file=output)
print("#" * (len(text) + 4) + "\n", file=output)