46 lines
984 B
Python
46 lines
984 B
Python
"""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"
|