podengine 0.1.0__tar.gz

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.
@@ -0,0 +1,13 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ .venv/
5
+ venv/
6
+ *.egg-info/
7
+ dist/
8
+ build/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+
12
+ # Mirror output (monorepo-only, assembled by scripts/build-python-mirror.ts)
13
+ .mirror/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pod Engine
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: podengine
3
+ Version: 0.1.0
4
+ Summary: Official Python SDK for the Pod Engine podcast intelligence API — search 4M+ podcasts, fetch metadata, transcripts, charts and more.
5
+ Project-URL: Homepage, https://www.podengine.ai/api-docs
6
+ Project-URL: Repository, https://github.com/podengine/podcast-api-client-python
7
+ Project-URL: Issues, https://github.com/podengine/podcast-api-client-python/issues
8
+ Author: Pod Engine
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: podcast,podcast-api,podcast-charts,podengine,sdk,transcripts
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: httpx>=0.27
23
+ Requires-Dist: pydantic>=2.7
24
+ Description-Content-Type: text/markdown
25
+
26
+ # Pod Engine Python SDK
27
+
28
+ Official Python client for the [Pod Engine](https://www.podengine.ai) podcast intelligence
29
+ API — search 4M+ podcasts, fetch metadata, transcripts, charts, guest profiles and more.
30
+
31
+ The client is **fully generated** from Pod Engine's published OpenAPI specification, so it
32
+ stays in lockstep with the API and ships typed [pydantic](https://docs.pydantic.dev) models
33
+ for every request and response.
34
+
35
+ ## Install
36
+
37
+ ```bash
38
+ pip install podengine
39
+ # or: uv add podengine
40
+ ```
41
+
42
+ Requires Python 3.10+.
43
+
44
+ ## Quickstart (sync)
45
+
46
+ ```python
47
+ from podengine import PodEngine
48
+
49
+ pe = PodEngine(api_key="YOUR_API_KEY")
50
+
51
+ chart = pe.charts.get_latest_chart(chart_type="apple", country="us", category="top podcasts")
52
+ for entry in chart.podcasts:
53
+ print(entry.rank, entry.title)
54
+
55
+ results = pe.search.search_podcasts(
56
+ search_terms=[
57
+ {
58
+ "searchTerm": "startups",
59
+ "searchType": "text",
60
+ "searchTargets": ["podcast-title"],
61
+ "searchTermOptions": {"matchMode": "optional"},
62
+ }
63
+ ],
64
+ )
65
+ ```
66
+
67
+ Get an API key at <https://www.podengine.ai/get-started>.
68
+
69
+ ## Quickstart (async)
70
+
71
+ ```python
72
+ import asyncio
73
+ from podengine import AsyncPodEngine
74
+
75
+ async def main() -> None:
76
+ async with AsyncPodEngine(api_key="YOUR_API_KEY") as pe:
77
+ chart = await pe.charts.get_latest_chart(
78
+ chart_type="apple", country="us", category="top podcasts"
79
+ )
80
+ print(chart)
81
+
82
+ asyncio.run(main())
83
+ ```
84
+
85
+ ## Configuration
86
+
87
+ ```python
88
+ pe = PodEngine(
89
+ api_key="YOUR_API_KEY",
90
+ base_url="https://api.podengine.ai", # override for staging; or set PODENGINE_API_URL
91
+ source="my-app", # sent as the x-source header
92
+ timeout=60.0, # per-request timeout (seconds)
93
+ max_retries=2, # transient 429/5xx/network retries
94
+ )
95
+ ```
96
+
97
+ Per-call overrides are available via `RequestOptions`:
98
+
99
+ ```python
100
+ from podengine import RequestOptions
101
+
102
+ chart = pe.charts.get_latest_chart(
103
+ chart_type="apple",
104
+ country="us",
105
+ category="top podcasts",
106
+ request_options=RequestOptions(timeout=10.0, max_retries=0),
107
+ )
108
+ ```
109
+
110
+ ## Error handling
111
+
112
+ Every failure is a `PodEngineError` subclass:
113
+
114
+ ```python
115
+ from podengine import PodEngine, PodEngineAPIError, PodEngineConnectionError
116
+
117
+ pe = PodEngine(api_key="YOUR_API_KEY")
118
+ try:
119
+ chart = pe.charts.get_latest_chart(chart_type="apple", country="us", category="top podcasts")
120
+ except PodEngineAPIError as err:
121
+ print(err.status, err.message, err.request_id) # non-2xx response
122
+ except PodEngineConnectionError as err:
123
+ print("network failure:", err) # no HTTP response
124
+ ```
125
+
126
+ ## License
127
+
128
+ MIT
@@ -0,0 +1,103 @@
1
+ # Pod Engine Python SDK
2
+
3
+ Official Python client for the [Pod Engine](https://www.podengine.ai) podcast intelligence
4
+ API — search 4M+ podcasts, fetch metadata, transcripts, charts, guest profiles and more.
5
+
6
+ The client is **fully generated** from Pod Engine's published OpenAPI specification, so it
7
+ stays in lockstep with the API and ships typed [pydantic](https://docs.pydantic.dev) models
8
+ for every request and response.
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ pip install podengine
14
+ # or: uv add podengine
15
+ ```
16
+
17
+ Requires Python 3.10+.
18
+
19
+ ## Quickstart (sync)
20
+
21
+ ```python
22
+ from podengine import PodEngine
23
+
24
+ pe = PodEngine(api_key="YOUR_API_KEY")
25
+
26
+ chart = pe.charts.get_latest_chart(chart_type="apple", country="us", category="top podcasts")
27
+ for entry in chart.podcasts:
28
+ print(entry.rank, entry.title)
29
+
30
+ results = pe.search.search_podcasts(
31
+ search_terms=[
32
+ {
33
+ "searchTerm": "startups",
34
+ "searchType": "text",
35
+ "searchTargets": ["podcast-title"],
36
+ "searchTermOptions": {"matchMode": "optional"},
37
+ }
38
+ ],
39
+ )
40
+ ```
41
+
42
+ Get an API key at <https://www.podengine.ai/get-started>.
43
+
44
+ ## Quickstart (async)
45
+
46
+ ```python
47
+ import asyncio
48
+ from podengine import AsyncPodEngine
49
+
50
+ async def main() -> None:
51
+ async with AsyncPodEngine(api_key="YOUR_API_KEY") as pe:
52
+ chart = await pe.charts.get_latest_chart(
53
+ chart_type="apple", country="us", category="top podcasts"
54
+ )
55
+ print(chart)
56
+
57
+ asyncio.run(main())
58
+ ```
59
+
60
+ ## Configuration
61
+
62
+ ```python
63
+ pe = PodEngine(
64
+ api_key="YOUR_API_KEY",
65
+ base_url="https://api.podengine.ai", # override for staging; or set PODENGINE_API_URL
66
+ source="my-app", # sent as the x-source header
67
+ timeout=60.0, # per-request timeout (seconds)
68
+ max_retries=2, # transient 429/5xx/network retries
69
+ )
70
+ ```
71
+
72
+ Per-call overrides are available via `RequestOptions`:
73
+
74
+ ```python
75
+ from podengine import RequestOptions
76
+
77
+ chart = pe.charts.get_latest_chart(
78
+ chart_type="apple",
79
+ country="us",
80
+ category="top podcasts",
81
+ request_options=RequestOptions(timeout=10.0, max_retries=0),
82
+ )
83
+ ```
84
+
85
+ ## Error handling
86
+
87
+ Every failure is a `PodEngineError` subclass:
88
+
89
+ ```python
90
+ from podengine import PodEngine, PodEngineAPIError, PodEngineConnectionError
91
+
92
+ pe = PodEngine(api_key="YOUR_API_KEY")
93
+ try:
94
+ chart = pe.charts.get_latest_chart(chart_type="apple", country="us", category="top podcasts")
95
+ except PodEngineAPIError as err:
96
+ print(err.status, err.message, err.request_id) # non-2xx response
97
+ except PodEngineConnectionError as err:
98
+ print("network failure:", err) # no HTTP response
99
+ ```
100
+
101
+ ## License
102
+
103
+ MIT