pyrestkit 0.0.0__py3-none-any.whl → 1.2.2.dev0__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.
pyrestkit/__init__.py CHANGED
@@ -17,7 +17,10 @@ from pyrestkit.models.request.update_user_request import UpdateUserRequest
17
17
  from pyrestkit.validators.response_validator import ResponseValidator
18
18
  from pyrestkit.validators.schema_validator import SchemaValidator
19
19
 
20
- __version__ = "1.2.0"
20
+ try:
21
+ from ._version import version as __version__
22
+ except ImportError:
23
+ __version__ = "0.0.0"
21
24
 
22
25
  __all__ = [
23
26
  "APIClient",
pyrestkit/_version.py ADDED
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '1.2.2.dev0'
22
+ __version_tuple__ = version_tuple = (1, 2, 2, 'dev0')
23
+
24
+ __commit_id__ = commit_id = 'gffc860980'
@@ -0,0 +1,9 @@
1
+ {
2
+ "environment": "dev",
3
+ "base_url": "https://reqres.in/api",
4
+ "timeout": 30,
5
+ "auto_raise_exceptions": true,
6
+ "headers": {
7
+ "Content-Type": "application/json"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "environment": "dev",
3
+ "base_url": "https://reqres.in/api",
4
+ "timeout": 30,
5
+ "auto_raise_exceptions": true,
6
+ "headers": {
7
+ "Content-Type": "application/json"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "environment": "dev",
3
+ "base_url": "https://reqres.in/api",
4
+ "timeout": 30,
5
+ "auto_raise_exceptions": true,
6
+ "headers": {
7
+ "Content-Type": "application/json"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "environment": "dev",
3
+ "base_url": "https://reqres.in/api",
4
+ "timeout": 30,
5
+ "auto_raise_exceptions": true,
6
+ "headers": {
7
+ "Content-Type": "application/json"
8
+ }
9
+ }
@@ -1,16 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrestkit
3
- Version: 0.0.0
3
+ Version: 1.2.2.dev0
4
4
  Summary: Modern Python REST API Automation Toolkit With AI
5
5
  Author: Raushan Raj
6
- License: MIT
6
+ License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/Raushanraj77/pyrestkit
8
8
  Project-URL: Repository, https://github.com/Raushanraj77/pyrestkit
9
9
  Project-URL: Issues, https://github.com/Raushanraj77/pyrestkit/issues
10
10
  Keywords: api,rest,automation,testing,pytest,framework,qa,sdet,ai,llm
11
11
  Classifier: Development Status :: 4 - Beta
12
12
  Classifier: Intended Audience :: Developers
13
- Classifier: License :: OSI Approved :: MIT License
14
13
  Classifier: Operating System :: OS Independent
15
14
  Classifier: Programming Language :: Python :: 3
16
15
  Classifier: Programming Language :: Python :: 3.11
@@ -1,4 +1,5 @@
1
- pyrestkit/__init__.py,sha256=y7e9clUO-9py-5wtlCSNdjDiaG6KIe-GL7Fof2MqPrQ,1083
1
+ pyrestkit/__init__.py,sha256=WtgGqJVXXpLC_bsVcE0Qb-3ZMmD9nKjfyxvGxSGQZ7Y,1161
2
+ pyrestkit/_version.py,sha256=gR9bM1pOVuVHS9UkqcrfqIudjC_y0HyTPWEH1u3nCoM,541
2
3
  pyrestkit/ai/__init__.py,sha256=R2U4Hqmj8y3_6_aUkP1Gp9L9pXA1WmkXn8tnS6RSa5s,520
3
4
  pyrestkit/ai/analyzer.py,sha256=Ui3IDu_p6vH8yqZg3N8IamG_Xl8i2sj3atBGjxkv2zg,3330
4
5
  pyrestkit/ai/client.py,sha256=6vvTmpgAaRL7TBwpVIHib2GQDiZD7mugq4Wubk4SicY,2501
@@ -44,6 +45,10 @@ pyrestkit/clients/base_client.py,sha256=-HXjTsjudNMLybGAPNGnmKHxQkob0d5m45Un12sj
44
45
  pyrestkit/clients/user_client.py,sha256=eau7IalciVPnR2UWurACya8znl7azdGrxoQSlz5qTfA,1640
45
46
  pyrestkit/config/__init__.py,sha256=gbKr5hxv60CVJheVM7VNpm61E1A0DMvEuifFWzdIats,70
46
47
  pyrestkit/config/config.py,sha256=Z0UOlL0BVsyeXmyztin6XjUuKc3_3XD7A6UpU_XqSfs,2263
48
+ pyrestkit/config/dev.json,sha256=7uyN23hSjK-9QhOeDsJ_C_NcyMRJ81At-euYJ1ZhmVA,174
49
+ pyrestkit/config/prod.json,sha256=x4xgwJezdG008kRwor3nuc9iJ9BPmoen6v3zJ4IZ2ec,190
50
+ pyrestkit/config/qa.json,sha256=7uyN23hSjK-9QhOeDsJ_C_NcyMRJ81At-euYJ1ZhmVA,174
51
+ pyrestkit/config/uat.json,sha256=x4xgwJezdG008kRwor3nuc9iJ9BPmoen6v3zJ4IZ2ec,190
47
52
  pyrestkit/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
53
  pyrestkit/constants/content_types.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
54
  pyrestkit/constants/headers.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -109,7 +114,9 @@ pyrestkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
114
  pyrestkit/validators/__init__.py,sha256=JBNfxhZsLmJgII41PcD6KgsWGGzxYqrGRvZoI3jmLlI,159
110
115
  pyrestkit/validators/response_validator.py,sha256=GCRZORHwroKcz2B0wz6pMo2Hu8ZCNTvYRLvgCZM_zTs,1621
111
116
  pyrestkit/validators/schema_validator.py,sha256=A9dVUfIWRs4Eio7qPkHpLe_A8d6VOcDK7w3XpUbeWK8,718
112
- pyrestkit-0.0.0.dist-info/METADATA,sha256=x5HbuGCtvQXMoOgmclsv7B2arNL6K2o0OHusQfO90qI,12994
113
- pyrestkit-0.0.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
114
- pyrestkit-0.0.0.dist-info/top_level.txt,sha256=6kLf6KOYB9YYulTuWkeDCYgjhN0kaNoYf_F-OqbP0uc,10
115
- pyrestkit-0.0.0.dist-info/RECORD,,
117
+ pyrestkit-1.2.2.dev0.dist-info/METADATA,sha256=-CxDrCf2d3YcY0-OY6QlANjfVKP-1v62Bj6TpCm3ROQ,12959
118
+ pyrestkit-1.2.2.dev0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
119
+ pyrestkit-1.2.2.dev0.dist-info/scm_file_list.json,sha256=3dqeSB3qXLB_5gS2a9OmzJhFZ8N0WaC0bE0JdlMWAGw,7256
120
+ pyrestkit-1.2.2.dev0.dist-info/scm_version.json,sha256=szeaDscPaF_NxwjjMPMpnPVT5UDBZyPnACpOS5c9YFE,159
121
+ pyrestkit-1.2.2.dev0.dist-info/top_level.txt,sha256=6kLf6KOYB9YYulTuWkeDCYgjhN0kaNoYf_F-OqbP0uc,10
122
+ pyrestkit-1.2.2.dev0.dist-info/RECORD,,
@@ -0,0 +1,188 @@
1
+ {
2
+ "files": [
3
+ "README.md",
4
+ "Makefile",
5
+ "pyproject.toml",
6
+ "requirements.txt",
7
+ "CHANGELOG.md",
8
+ "CONTRIBUTING.md",
9
+ "Pipfile",
10
+ ".gitignore",
11
+ "requirements-dev.txt",
12
+ "pytest.ini",
13
+ "docs/providers.md",
14
+ "docs/examples.md",
15
+ "docs/ai.md",
16
+ "docs/configuration.md",
17
+ "docs/validation.md",
18
+ "docs/authentication.md",
19
+ "docs/architecture.md",
20
+ "schemas/error_response.json",
21
+ "schemas/get_user.json",
22
+ "schemas/create_user.json",
23
+ "pyrestkit/__init__.py",
24
+ "pyrestkit/_version.py",
25
+ "pyrestkit/retry/retry_handler.py",
26
+ "pyrestkit/retry/__init__.py",
27
+ "pyrestkit/retry/backoff.py",
28
+ "pyrestkit/retry/retry_policy.py",
29
+ "pyrestkit/constants/__init__.py",
30
+ "pyrestkit/constants/status_codes.py",
31
+ "pyrestkit/constants/headers.py",
32
+ "pyrestkit/constants/content_types.py",
33
+ "pyrestkit/core/request_logger.py",
34
+ "pyrestkit/core/api_client.py",
35
+ "pyrestkit/core/__init__.py",
36
+ "pyrestkit/core/request_builder.py",
37
+ "pyrestkit/core/logger.py",
38
+ "pyrestkit/core/request_executor.py",
39
+ "pyrestkit/core/session_manager.py",
40
+ "pyrestkit/core/response_logger.py",
41
+ "pyrestkit/utils/__init__.py",
42
+ "pyrestkit/endpoints/__init__.py",
43
+ "pyrestkit/endpoints/payment_endpoints.py",
44
+ "pyrestkit/endpoints/order_endpoints.py",
45
+ "pyrestkit/endpoints/base_endpoints.py",
46
+ "pyrestkit/endpoints/user_endpoints.py",
47
+ "pyrestkit/auth/token_cache.py",
48
+ "pyrestkit/auth/__init__.py",
49
+ "pyrestkit/auth/token_response.py",
50
+ "pyrestkit/auth/authentication_manager.py",
51
+ "pyrestkit/auth/token_provider.py",
52
+ "pyrestkit/auth/auth_strategy.py",
53
+ "pyrestkit/auth/token_manager.py",
54
+ "pyrestkit/auth/strategies/api_key_auth.py",
55
+ "pyrestkit/auth/strategies/__init__.py",
56
+ "pyrestkit/auth/strategies/bearer_auth.py",
57
+ "pyrestkit/auth/strategies/basic_auth.py",
58
+ "pyrestkit/clients/__init__.py",
59
+ "pyrestkit/clients/user_client.py",
60
+ "pyrestkit/clients/base_client.py",
61
+ "pyrestkit/models/__init__.py",
62
+ "pyrestkit/models/base_response.py",
63
+ "pyrestkit/models/request/__init__.py",
64
+ "pyrestkit/models/request/update_user_request.py",
65
+ "pyrestkit/models/request/create_user_request.py",
66
+ "pyrestkit/models/response/__init__.py",
67
+ "pyrestkit/models/response/create_user_response.py",
68
+ "pyrestkit/models/response/user_response.py",
69
+ "pyrestkit/models/response/get_user_response.py",
70
+ "pyrestkit/config/__init__.py",
71
+ "pyrestkit/config/config.py",
72
+ "pyrestkit/config/dev.json",
73
+ "pyrestkit/config/prod.json",
74
+ "pyrestkit/config/qa.json",
75
+ "pyrestkit/config/uat.json",
76
+ "pyrestkit/ai/__init__.py",
77
+ "pyrestkit/ai/analyzer.py",
78
+ "pyrestkit/ai/exceptions.py",
79
+ "pyrestkit/ai/models.py",
80
+ "pyrestkit/ai/client.py",
81
+ "pyrestkit/ai/provider.py",
82
+ "pyrestkit/ai/utils/__init__.py",
83
+ "pyrestkit/ai/utils/prompt_loader.py",
84
+ "pyrestkit/ai/providers/gemini.py",
85
+ "pyrestkit/ai/providers/cohere.py",
86
+ "pyrestkit/ai/providers/__init__.py",
87
+ "pyrestkit/ai/providers/mistral.py",
88
+ "pyrestkit/ai/providers/openai.py",
89
+ "pyrestkit/ai/providers/bedrock.py",
90
+ "pyrestkit/ai/providers/ollama.py",
91
+ "pyrestkit/ai/providers/groq.py",
92
+ "pyrestkit/ai/providers/azure_openai.py",
93
+ "pyrestkit/ai/providers/anthropic.py",
94
+ "pyrestkit/ai/providers/base.py",
95
+ "pyrestkit/ai/config/__init__.py",
96
+ "pyrestkit/ai/config/ai_config.py",
97
+ "pyrestkit/ai/prompts/failure_analysis.md",
98
+ "pyrestkit/ai/parsers/__init__.py",
99
+ "pyrestkit/ai/generators/__init__.py",
100
+ "pyrestkit/exceptions/__init__.py",
101
+ "pyrestkit/exceptions/authentication_exception.py",
102
+ "pyrestkit/exceptions/serialization_exception.py",
103
+ "pyrestkit/exceptions/api_exception.py",
104
+ "pyrestkit/exceptions/exception_mapper.py",
105
+ "pyrestkit/exceptions/validation_exception.py",
106
+ "pyrestkit/exceptions/response_exception.py",
107
+ "pyrestkit/exceptions/network_exception.py",
108
+ "pyrestkit/exceptions/configuration_exception.py",
109
+ "pyrestkit/assertions/__init__.py",
110
+ "pyrestkit/assertions/response_assertions.py",
111
+ "pyrestkit/assertions/assertion_exception.py",
112
+ "pyrestkit/validators/response_validator.py",
113
+ "pyrestkit/validators/__init__.py",
114
+ "pyrestkit/validators/schema_validator.py",
115
+ "pyrestkit/types/__init__.py",
116
+ "pyrestkit/types/model_protocol.py",
117
+ "pyrestkit/pipeline/__init__.py",
118
+ "pyrestkit/pipeline/request_context.py",
119
+ "pyrestkit/pipeline/pipeline.py",
120
+ "pyrestkit/pipeline/middleware.py",
121
+ "pyrestkit/pipeline/middleware_chain.py",
122
+ "pyrestkit/hooks/hook_manager.py",
123
+ "pyrestkit/hooks/__init__.py",
124
+ "pyrestkit/hooks/request_hook.py",
125
+ "pyrestkit/hooks/response_hook.py",
126
+ "pyrestkit/hooks/hook.py",
127
+ "pyrestkit/hooks/timing_hook.py",
128
+ "pyrestkit/serializers/__init__.py",
129
+ "pyrestkit/serializers/response_mapper.py",
130
+ "pyrestkit/database/__init__.py",
131
+ "pyrestkit/builder/__init__.py",
132
+ "pyrestkit/builder/fluent_request_builder.py",
133
+ "pyrestkit/factories/__init__.py",
134
+ "pyrestkit/factories/user_factory.py",
135
+ "pyrestkit/factories/base_factory.py",
136
+ "pyrestkit/response/response_body.py",
137
+ "pyrestkit/response/__init__.py",
138
+ "pyrestkit/response/framework_response.py",
139
+ "tests/test_exception_mapper.py",
140
+ "tests/test_logger.py",
141
+ "tests/test_config.py",
142
+ "tests/__init__.py",
143
+ "tests/test_endpoints_and_clients.py",
144
+ "tests/conftest.py",
145
+ "tests/test_response_mapping.py",
146
+ "tests/test_pipeline_and_hooks.py",
147
+ "tests/fake_token_provider.py",
148
+ "tests/retry/test_retry_policy.py",
149
+ "tests/retry/test_retry_handler.py",
150
+ "tests/core/test_api_client.py",
151
+ "tests/core/test_session_manager.py",
152
+ "tests/auth/test_token_manager.py",
153
+ "tests/auth/test_api_key_auth.py",
154
+ "tests/auth/test_basic_auth.py",
155
+ "tests/auth/test_token_cache.py",
156
+ "tests/auth/test_authentication_manager.py",
157
+ "tests/auth/test_bearer_auth.py",
158
+ "tests/clients/test_user_client.py",
159
+ "tests/clients/test_user_endpoints.py",
160
+ "tests/ai/test_ai_config.py",
161
+ "tests/ai/test_openai_provider.py",
162
+ "tests/ai/test_provider_error_paths.py",
163
+ "tests/ai/test_prompt_loader.py",
164
+ "tests/ai/test_provider_implementations.py",
165
+ "tests/ai/test_failure_analyzer.py",
166
+ "tests/ai/test_ai_client.py",
167
+ "tests/assertions/test_json_count_assertion.py",
168
+ "tests/assertions/test_schema_assertions.py",
169
+ "tests/assertions/test_response_time_assertions.py",
170
+ "tests/assertions/test_response_assertions.py",
171
+ "tests/assertions/test_json_assertion.py",
172
+ "tests/assertions/test_json_contains_assertion.py",
173
+ "tests/validators/test_schema_validator.py",
174
+ "tests/validators/test_response_validator.py",
175
+ "tests/pipeline/test_pipeline.py",
176
+ "tests/builder/test_fluent_request_builder.py",
177
+ "tests/factories/test_user_factory.py",
178
+ "tests/response/test_list_serialization.py",
179
+ "tests/response/test_response_body.py",
180
+ "tests/response/test_model_serialization.py",
181
+ "tests/response/test_framework_response_models.py",
182
+ "testdata/payment.json",
183
+ "testdata/user.json",
184
+ "testdata/order.json",
185
+ ".github/workflows/release.yml",
186
+ ".github/workflows/ci.yml"
187
+ ]
188
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "1.2.1",
3
+ "distance": 0,
4
+ "node": "gffc860980c8b009ca314a4327cb7bd8ef94a3047",
5
+ "dirty": true,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-07-05"
8
+ }