turnkey-http 0.2.2__tar.gz → 0.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: turnkey-http
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: HTTP client for Turnkey API
5
5
  Author-email: Turnkey <hello@turnkey.com>
6
6
  License-Expression: Apache-2.0
@@ -99,6 +99,12 @@ except TurnkeyActivityError as err:
99
99
  print(err.activity_status, err.failure)
100
100
  ```
101
101
 
102
+ ## Faster imports (optional)
103
+
104
+ Set `TURNKEY_SDK_DEFER_BUILD=1` to build each model on first use instead of at import. Requires `turnkey-sdk-types` 0.3.0+ and Pydantic 2.5+. It's read once at first import, so set it in your environment or before any Turnkey import.
105
+
106
+ When enabled, each model's first use is a little slower, and a process that uses nearly every model can use more memory than the default. On Pydantic 2.5–2.10, call `Model.model_rebuild()` before inspecting `model_fields[...].annotation`.
107
+
102
108
  ## Code Generation
103
109
 
104
110
  This package uses code generation to create HTTP client methods from the OpenAPI specification located in `schema/public_api.swagger.json`.
@@ -71,6 +71,12 @@ except TurnkeyActivityError as err:
71
71
  print(err.activity_status, err.failure)
72
72
  ```
73
73
 
74
+ ## Faster imports (optional)
75
+
76
+ Set `TURNKEY_SDK_DEFER_BUILD=1` to build each model on first use instead of at import. Requires `turnkey-sdk-types` 0.3.0+ and Pydantic 2.5+. It's read once at first import, so set it in your environment or before any Turnkey import.
77
+
78
+ When enabled, each model's first use is a little slower, and a process that uses nearly every model can use more memory than the default. On Pydantic 2.5–2.10, call `Model.model_rebuild()` before inspecting `model_fields[...].annotation`.
79
+
74
80
  ## Code Generation
75
81
 
76
82
  This package uses code generation to create HTTP client methods from the OpenAPI specification located in `schema/public_api.swagger.json`.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "turnkey-http"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "HTTP client for Turnkey API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,3 +1,3 @@
1
1
  """Auto-generated version file. Do not edit manually."""
2
2
 
3
- VERSION = "turnkey-python/0.2.2"
3
+ VERSION = "turnkey-python/0.2.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: turnkey-http
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: HTTP client for Turnkey API
5
5
  Author-email: Turnkey <hello@turnkey.com>
6
6
  License-Expression: Apache-2.0
@@ -99,6 +99,12 @@ except TurnkeyActivityError as err:
99
99
  print(err.activity_status, err.failure)
100
100
  ```
101
101
 
102
+ ## Faster imports (optional)
103
+
104
+ Set `TURNKEY_SDK_DEFER_BUILD=1` to build each model on first use instead of at import. Requires `turnkey-sdk-types` 0.3.0+ and Pydantic 2.5+. It's read once at first import, so set it in your environment or before any Turnkey import.
105
+
106
+ When enabled, each model's first use is a little slower, and a process that uses nearly every model can use more memory than the default. On Pydantic 2.5–2.10, call `Model.model_rebuild()` before inspecting `model_fields[...].annotation`.
107
+
102
108
  ## Code Generation
103
109
 
104
110
  This package uses code generation to create HTTP client methods from the OpenAPI specification located in `schema/public_api.swagger.json`.
File without changes
File without changes