"""Shared constants for the arXiv API integration."""

from __future__ import annotations

# arXiv API base URL
BASE_URL = "https://export.arxiv.org/api/query"

# Atom XML namespaces
ATOM_NS = "http://www.w3.org/2005/Atom"
OPENSEARCH_NS = "http://a9.com/-/spec/opensearch/1.1/"
ARXIV_NS = "http://arxiv.org/schemas/atom"

# Throttle: arXiv asks for 3s between requests
THROTTLE_SECONDS = 3.0

# Retry defaults
DEFAULT_MAX_RETRIES = 3
DEFAULT_MAX_RETRY_WAIT = 60  # seconds
