phyous/tsai-civ2 on GitHub
- Stars
- 2
- Forks
- 1
- Language
- Python
- Last push
- 18 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
from urllib.request import HTTPRedirectHandler, Request, build_opener
API_URL = "https://api.typesafe.ai/v1/systemone"
MAX_RESPONSE_BYTES = 1_048_576
MAX_ERROR_BYTES = 16_384
RETRY_STATUSES = frozenset({408, 429, 500, 502, 503, 504, 529})
class TypeSafeError(RuntimeError):
"""Safe to display: messages contain no credentials or remote response text."""
class ConfigurationError(TypeSafeError):
pass


