intervals-kit 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- intervals_kit/__init__.py +39 -0
- intervals_kit/cli/__init__.py +6 -0
- intervals_kit/cli/commands.py +666 -0
- intervals_kit/cli/main.py +31 -0
- intervals_kit/cli_tools.md +398 -0
- intervals_kit/client.py +126 -0
- intervals_kit/config.py +63 -0
- intervals_kit/errors.py +25 -0
- intervals_kit/exporters.py +43 -0
- intervals_kit/mcp_server.py +778 -0
- intervals_kit/models.py +162 -0
- intervals_kit/service.py +415 -0
- intervals_kit-0.1.1.dist-info/METADATA +281 -0
- intervals_kit-0.1.1.dist-info/RECORD +17 -0
- intervals_kit-0.1.1.dist-info/WHEEL +4 -0
- intervals_kit-0.1.1.dist-info/entry_points.txt +4 -0
- intervals_kit-0.1.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""intervals-icu-tools — MCP server, CLI, and Python library for the Intervals.ICU API.
|
|
2
|
+
|
|
3
|
+
Library usage:
|
|
4
|
+
from intervals_kit import IntervalsService, load_config
|
|
5
|
+
|
|
6
|
+
config = load_config() # reads INTERVALS_API_KEY and INTERVALS_ATHLETE_ID
|
|
7
|
+
service = IntervalsService(config)
|
|
8
|
+
activities = await service.list_activities("2024-01-01", "2024-12-31")
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
__version__ = "0.1.1"
|
|
12
|
+
|
|
13
|
+
# Public library API — importable by scripts and notebooks.
|
|
14
|
+
# Do NOT import mcp_server or cli here: they have heavy deps (FastMCP, Click)
|
|
15
|
+
# and MCP startup side effects. Keep `import intervals_kit` fast.
|
|
16
|
+
from .config import ApiConfig, load_config
|
|
17
|
+
from .errors import (
|
|
18
|
+
AuthenticationError,
|
|
19
|
+
DownloadError,
|
|
20
|
+
IntervalsError,
|
|
21
|
+
NotFoundError,
|
|
22
|
+
RateLimitError,
|
|
23
|
+
)
|
|
24
|
+
from .models import Activity, ActivitySearchResult, FileDownloadResult
|
|
25
|
+
from .service import IntervalsService
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"IntervalsService",
|
|
29
|
+
"ApiConfig",
|
|
30
|
+
"load_config",
|
|
31
|
+
"Activity",
|
|
32
|
+
"ActivitySearchResult",
|
|
33
|
+
"FileDownloadResult",
|
|
34
|
+
"IntervalsError",
|
|
35
|
+
"AuthenticationError",
|
|
36
|
+
"RateLimitError",
|
|
37
|
+
"NotFoundError",
|
|
38
|
+
"DownloadError",
|
|
39
|
+
]
|