Initial commit

This commit is contained in:
ThePetrovich 2026-08-18 22:04:58 +08:00
commit d71d560d29
8 changed files with 1325 additions and 0 deletions

46
odms/__init__.py Normal file
View file

@ -0,0 +1,46 @@
"""Client for the ODMS orbital-data API (``odms.tmtc.yksa.space``).
Standard library only. Uses ``httpx`` for connection pooling if it happens to be
installed, and works identically without it.
::
from odms import OdmsClient
with OdmsClient("https://odms.tmtc.yksa.space") as odms:
element = odms.latest("iss")
print(element["tle"])
See :class:`~odms.client.OdmsClient` for the endpoint methods and
:mod:`odms.errors` for what they raise.
"""
from ._http import Response, Transport
from .client import FILTERS, FORMATS, MODES, OdmsClient
from .errors import (
HTTPError,
NotFound,
OdmsError,
RateLimited,
ServiceUnavailable,
TransportError,
Unauthorized,
)
__all__ = [
"FILTERS",
"FORMATS",
"MODES",
"HTTPError",
"NotFound",
"OdmsClient",
"OdmsError",
"RateLimited",
"Response",
"ServiceUnavailable",
"Transport",
"TransportError",
"Unauthorized",
]
__version__ = "1.0.0"