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.
Files changed (47) hide show
  1. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/PKG-INFO +9 -5
  2. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/README.md +3 -3
  3. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/pyproject.toml +7 -2
  4. decodo_sdk-2.5.0/src/decodo/_compat.py +20 -0
  5. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/generate_targets.py +1 -1
  6. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/types.py +3 -1
  7. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/targets.py +1 -1
  8. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/PKG-INFO +9 -5
  9. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/SOURCES.txt +1 -0
  10. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/requires.txt +1 -0
  11. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/LICENSE +0 -0
  12. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/setup.cfg +0 -0
  13. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/__init__.py +0 -0
  14. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/api/__init__.py +0 -0
  15. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/api/web_scraping_api.py +0 -0
  16. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/client.py +0 -0
  17. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/__init__.py +0 -0
  18. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/codegen.py +0 -0
  19. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/__init__.py +0 -0
  20. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/generate_parameters.py +0 -0
  21. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/shared.py +0 -0
  22. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/codegen/web_scraping_api/types.py +0 -0
  23. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/errors.py +0 -0
  24. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/__init__.py +0 -0
  25. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/decodo.ir.json +0 -0
  26. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/parameters.py +0 -0
  27. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/generated/targets.py +0 -0
  28. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/http.py +0 -0
  29. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/py.typed +0 -0
  30. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/__init__.py +0 -0
  31. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/build_target_meta.py +0 -0
  32. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/bundled_schema.py +0 -0
  33. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/constants.py +0 -0
  34. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/expand_path.py +0 -0
  35. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/remote_schema.py +0 -0
  36. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/schema/resolve_latest_ir.py +0 -0
  37. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/__init__.py +0 -0
  38. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/data_api.py +0 -0
  39. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/requests.py +0 -0
  40. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo/types/responses.py +0 -0
  41. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/dependency_links.txt +0 -0
  42. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/src/decodo_sdk.egg-info/top_level.txt +0 -0
  43. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_client.py +0 -0
  44. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_data_api.py +0 -0
  45. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_generated_exports.py +0 -0
  46. {decodo_sdk-2.4.1 → decodo_sdk-2.5.0}/tests/test_http.py +0 -0
  47. {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.4.1
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.12
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
- ![Python](https://img.shields.io/badge/python-%3E%3D3.12-green)
57
+ ![Python](https://img.shields.io/badge/python-%3E%3D3.10-green)
54
58
  ![License](https://img.shields.io/badge/license-MIT-blue)
55
59
 
56
60
  [![](https://dcbadge.limes.pink/api/server/https://discord.gg/Ja8dqKgvbZ)](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.12+
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.12+
91
+ - Python 3.10+
88
92
 
89
93
  ## Installation
90
94
 
@@ -1,6 +1,6 @@
1
1
  # Decodo Python SDK
2
2
 
3
- ![Python](https://img.shields.io/badge/python-%3E%3D3.12-green)
3
+ ![Python](https://img.shields.io/badge/python-%3E%3D3.10-green)
4
4
  ![License](https://img.shields.io/badge/license-MIT-blue)
5
5
 
6
6
  [![](https://dcbadge.limes.pink/api/server/https://discord.gg/Ja8dqKgvbZ)](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.12+
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.12+
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.4.1"
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.12"
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"]
@@ -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 enum import StrEnum")
61
+ lines.append("from decodo._compat import StrEnum")
62
62
  lines.append("")
63
63
  lines.append("")
64
64
 
@@ -1,6 +1,8 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Any, Protocol, Required, TypedDict
3
+ from typing import Any, Protocol
4
+
5
+ from typing_extensions import Required, TypedDict
4
6
 
5
7
 
6
8
  class TargetMeta(TypedDict):
@@ -2,7 +2,7 @@
2
2
  # Run `python -m decodo.codegen.codegen` to regenerate when the IR schema changes.
3
3
  from __future__ import annotations
4
4
 
5
- from enum import StrEnum
5
+ from decodo._compat import StrEnum
6
6
 
7
7
 
8
8
  class Target(StrEnum):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: decodo-sdk
3
- Version: 2.4.1
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.12
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
- ![Python](https://img.shields.io/badge/python-%3E%3D3.12-green)
57
+ ![Python](https://img.shields.io/badge/python-%3E%3D3.10-green)
54
58
  ![License](https://img.shields.io/badge/license-MIT-blue)
55
59
 
56
60
  [![](https://dcbadge.limes.pink/api/server/https://discord.gg/Ja8dqKgvbZ)](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.12+
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.12+
91
+ - Python 3.10+
88
92
 
89
93
  ## Installation
90
94
 
@@ -2,6 +2,7 @@ LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
4
  src/decodo/__init__.py
5
+ src/decodo/_compat.py
5
6
  src/decodo/client.py
6
7
  src/decodo/errors.py
7
8
  src/decodo/http.py
@@ -1,6 +1,7 @@
1
1
  httpx>=0.27.0
2
2
  pydantic>=2.0
3
3
  jsonschema>=4.0
4
+ typing-extensions>=4.6
4
5
 
5
6
  [dev]
6
7
  pytest>=8.0.0
File without changes
File without changes