podengine 0.1.0__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.
podengine/py.typed ADDED
File without changes
@@ -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,13 @@
1
+ podengine/__init__.py,sha256=WmkKC0RUVNM0lePQ8plYQ2FfZovwKeL5aDcv3PUgX80,905
2
+ podengine/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ podengine/_core/__init__.py,sha256=nDqucPz_fouB3TPAuwppKtDzNfE8btcH0arXHf3nuP0,244
4
+ podengine/_core/_client.py,sha256=Zb5OIHoSnCAOklgP4t-jKavUPcKXSz_gyAqOEAQDhaY,12326
5
+ podengine/_core/errors.py,sha256=fetcNuyF7xQXNFMuv39v1mSc4HnYlQp11ZI6SAmVZII,1654
6
+ podengine/_core/transform.py,sha256=dROLhD4QgMO8ZIWbGI3cRejMwbeaULCKx4iT5_tB9fk,2637
7
+ podengine/_generated/__init__.py,sha256=A8gExa_zbSiU8fILwL4is8fOo1VaWBezwYf6TDDkGmg,93
8
+ podengine/_generated/models.py,sha256=N_9i2F_5yyCCgx3f61XzdwjvDoCFmDW5-k7h9Qf7qEU,95716
9
+ podengine/_generated/resources.py,sha256=j9YNyzFcfLNTQQunPnQ7K-zkRqfnRNEpAortz9wf60Q,141586
10
+ podengine-0.1.0.dist-info/METADATA,sha256=hY7GA2bgyeClGZ6HYIGHtas_cipnIOGb9L8Jr8X7G4I,3754
11
+ podengine-0.1.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
12
+ podengine-0.1.0.dist-info/licenses/LICENSE,sha256=lmr3aD3kP2po2btm0ptT_2ROR84_wzz3DqzmIPdJTyA,1067
13
+ podengine-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -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.