decodo-sdk 2.4.1__tar.gz → 2.5.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.
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/PKG-INFO +9 -5
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/README.md +3 -3
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/pyproject.toml +7 -2
- decodo_sdk-2.5.0/src/decodo/_compat.py +20 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/generate_targets.py +1 -1
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/types.py +3 -1
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/targets.py +1 -1
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/PKG-INFO +9 -5
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/SOURCES.txt +1 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/requires.txt +1 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/LICENSE +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/setup.cfg +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/api/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/api/web_scraping_api.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/client.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/codegen.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/generate_parameters.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/shared.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/types.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/errors.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/decodo.ir.json +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/parameters.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/targets.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/http.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/py.typed +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/build_target_meta.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/bundled_schema.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/constants.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/expand_path.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/remote_schema.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/resolve_latest_ir.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/__init__.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/data_api.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/requests.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/responses.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/dependency_links.txt +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/top_level.txt +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_client.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_data_api.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_generated_exports.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_http.py +0 -0
- {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_web_scraping_api.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: decodo-sdk
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Official Python SDK for the Decodo APIs
|
|
5
5
|
Author: Decodo
|
|
6
6
|
License: MIT License
|
|
@@ -30,16 +30,20 @@ Project-URL: Documentation, https://help.decodo.com/docs/introduction
|
|
|
30
30
|
Project-URL: Repository, https://github.com/Decodo/sdk-python
|
|
31
31
|
Keywords: decodo,scraping,web-scraping,api
|
|
32
32
|
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
33
35
|
Classifier: Programming Language :: Python :: 3.12
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
34
37
|
Classifier: License :: OSI Approved :: MIT License
|
|
35
38
|
Classifier: Intended Audience :: Developers
|
|
36
39
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
37
|
-
Requires-Python: >=3.
|
|
40
|
+
Requires-Python: >=3.10
|
|
38
41
|
Description-Content-Type: text/markdown
|
|
39
42
|
License-File: LICENSE
|
|
40
43
|
Requires-Dist: httpx>=0.27.0
|
|
41
44
|
Requires-Dist: pydantic>=2.0
|
|
42
45
|
Requires-Dist: jsonschema>=4.0
|
|
46
|
+
Requires-Dist: typing-extensions>=4.6
|
|
43
47
|
Provides-Extra: dev
|
|
44
48
|
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
45
49
|
Requires-Dist: pytest-mock>=3.14.0; extra == "dev"
|
|
@@ -50,7 +54,7 @@ Dynamic: license-file
|
|
|
50
54
|
|
|
51
55
|
# Decodo Python SDK
|
|
52
56
|
|
|
53
|
-

|
|
54
58
|

|
|
55
59
|
|
|
56
60
|
[](https://discord.gg/Ja8dqKgvbZ)
|
|
@@ -64,7 +68,7 @@ Build scraping workflows for search engines, eCommerce platforms, social media,
|
|
|
64
68
|
|
|
65
69
|
- Fully typed targets and parameters with IDE autocomplete
|
|
66
70
|
- Sync, async, and batch scraping methods
|
|
67
|
-
- Built on `httpx`, Python 3.
|
|
71
|
+
- Built on `httpx`, Python 3.10+
|
|
68
72
|
- Typed error hierarchy for safer integrations
|
|
69
73
|
- Built for Python and modern tooling
|
|
70
74
|
|
|
@@ -84,7 +88,7 @@ Instead of manually constructing HTTP requests and validating payloads, you can
|
|
|
84
88
|
|
|
85
89
|
## Requirements
|
|
86
90
|
|
|
87
|
-
- Python 3.
|
|
91
|
+
- Python 3.10+
|
|
88
92
|
|
|
89
93
|
## Installation
|
|
90
94
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Decodo Python SDK
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|
|
|
6
6
|
[](https://discord.gg/Ja8dqKgvbZ)
|
|
@@ -14,7 +14,7 @@ Build scraping workflows for search engines, eCommerce platforms, social media,
|
|
|
14
14
|
|
|
15
15
|
- Fully typed targets and parameters with IDE autocomplete
|
|
16
16
|
- Sync, async, and batch scraping methods
|
|
17
|
-
- Built on `httpx`, Python 3.
|
|
17
|
+
- Built on `httpx`, Python 3.10+
|
|
18
18
|
- Typed error hierarchy for safer integrations
|
|
19
19
|
- Built for Python and modern tooling
|
|
20
20
|
|
|
@@ -34,7 +34,7 @@ Instead of manually constructing HTTP requests and validating payloads, you can
|
|
|
34
34
|
|
|
35
35
|
## Requirements
|
|
36
36
|
|
|
37
|
-
- Python 3.
|
|
37
|
+
- Python 3.10+
|
|
38
38
|
|
|
39
39
|
## Installation
|
|
40
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "decodo-sdk"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.5.0"
|
|
4
4
|
description = "Official Python SDK for the Decodo APIs"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { file = "LICENSE" }
|
|
@@ -8,16 +8,20 @@ authors = [{ name = "Decodo" }]
|
|
|
8
8
|
keywords = ["decodo", "scraping", "web-scraping", "api"]
|
|
9
9
|
classifiers = [
|
|
10
10
|
"Programming Language :: Python :: 3",
|
|
11
|
+
"Programming Language :: Python :: 3.10",
|
|
12
|
+
"Programming Language :: Python :: 3.11",
|
|
11
13
|
"Programming Language :: Python :: 3.12",
|
|
14
|
+
"Programming Language :: Python :: 3.13",
|
|
12
15
|
"License :: OSI Approved :: MIT License",
|
|
13
16
|
"Intended Audience :: Developers",
|
|
14
17
|
"Topic :: Internet :: WWW/HTTP",
|
|
15
18
|
]
|
|
16
|
-
requires-python = ">=3.
|
|
19
|
+
requires-python = ">=3.10"
|
|
17
20
|
dependencies = [
|
|
18
21
|
"httpx>=0.27.0",
|
|
19
22
|
"pydantic>=2.0",
|
|
20
23
|
"jsonschema>=4.0",
|
|
24
|
+
"typing-extensions>=4.6",
|
|
21
25
|
]
|
|
22
26
|
|
|
23
27
|
[project.urls]
|
|
@@ -54,6 +58,7 @@ select = ["E", "F", "I", "UP"]
|
|
|
54
58
|
|
|
55
59
|
[tool.mypy]
|
|
56
60
|
strict = true
|
|
61
|
+
python_version = "3.10"
|
|
57
62
|
packages = ["decodo"]
|
|
58
63
|
exclude = "src/decodo/generated|^examples/|^build/"
|
|
59
64
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
if sys.version_info >= (3, 11):
|
|
7
|
+
from enum import StrEnum
|
|
8
|
+
else:
|
|
9
|
+
|
|
10
|
+
class StrEnum(str, Enum):
|
|
11
|
+
"""Backport of ``enum.StrEnum`` (3.11+): members are strings and ``str()`` gives the value."""
|
|
12
|
+
|
|
13
|
+
def __str__(self) -> str:
|
|
14
|
+
return str(self.value)
|
|
15
|
+
|
|
16
|
+
def __format__(self, format_spec: str) -> str:
|
|
17
|
+
return str.__format__(str(self.value), format_spec)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
__all__ = ["StrEnum"]
|
{decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/generate_targets.py
RENAMED
|
@@ -58,7 +58,7 @@ def _get_targets_enum_file_contents(api: WebScrapingApiIR) -> str:
|
|
|
58
58
|
lines.append("# Run `python -m decodo.codegen.codegen` to regenerate when the IR schema changes.")
|
|
59
59
|
lines.append("from __future__ import annotations")
|
|
60
60
|
lines.append("")
|
|
61
|
-
lines.append("from
|
|
61
|
+
lines.append("from decodo._compat import StrEnum")
|
|
62
62
|
lines.append("")
|
|
63
63
|
lines.append("")
|
|
64
64
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: decodo-sdk
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Official Python SDK for the Decodo APIs
|
|
5
5
|
Author: Decodo
|
|
6
6
|
License: MIT License
|
|
@@ -30,16 +30,20 @@ Project-URL: Documentation, https://help.decodo.com/docs/introduction
|
|
|
30
30
|
Project-URL: Repository, https://github.com/Decodo/sdk-python
|
|
31
31
|
Keywords: decodo,scraping,web-scraping,api
|
|
32
32
|
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
33
35
|
Classifier: Programming Language :: Python :: 3.12
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
34
37
|
Classifier: License :: OSI Approved :: MIT License
|
|
35
38
|
Classifier: Intended Audience :: Developers
|
|
36
39
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
37
|
-
Requires-Python: >=3.
|
|
40
|
+
Requires-Python: >=3.10
|
|
38
41
|
Description-Content-Type: text/markdown
|
|
39
42
|
License-File: LICENSE
|
|
40
43
|
Requires-Dist: httpx>=0.27.0
|
|
41
44
|
Requires-Dist: pydantic>=2.0
|
|
42
45
|
Requires-Dist: jsonschema>=4.0
|
|
46
|
+
Requires-Dist: typing-extensions>=4.6
|
|
43
47
|
Provides-Extra: dev
|
|
44
48
|
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
45
49
|
Requires-Dist: pytest-mock>=3.14.0; extra == "dev"
|
|
@@ -50,7 +54,7 @@ Dynamic: license-file
|
|
|
50
54
|
|
|
51
55
|
# Decodo Python SDK
|
|
52
56
|
|
|
53
|
-

|
|
54
58
|

|
|
55
59
|
|
|
56
60
|
[](https://discord.gg/Ja8dqKgvbZ)
|
|
@@ -64,7 +68,7 @@ Build scraping workflows for search engines, eCommerce platforms, social media,
|
|
|
64
68
|
|
|
65
69
|
- Fully typed targets and parameters with IDE autocomplete
|
|
66
70
|
- Sync, async, and batch scraping methods
|
|
67
|
-
- Built on `httpx`, Python 3.
|
|
71
|
+
- Built on `httpx`, Python 3.10+
|
|
68
72
|
- Typed error hierarchy for safer integrations
|
|
69
73
|
- Built for Python and modern tooling
|
|
70
74
|
|
|
@@ -84,7 +88,7 @@ Instead of manually constructing HTTP requests and validating payloads, you can
|
|
|
84
88
|
|
|
85
89
|
## Requirements
|
|
86
90
|
|
|
87
|
-
- Python 3.
|
|
91
|
+
- Python 3.10+
|
|
88
92
|
|
|
89
93
|
## Installation
|
|
90
94
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/generate_parameters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|