Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update pydantic to version 2.x.x (#166)
Jakub Novák3c6ff27ede72
diff --git a/.changeset/three-drinks-fetch.md b/.changeset/three-drinks-fetch.mdnew file mode 100644index 000000000..2f462aa85--- /dev/null+++ b/.changeset/three-drinks-fetch.md@@ -0,0 +1,5 @@+---+'@e2b/python-sdk': patch+---++Update pydantic to v2diff --git a/packages/python-sdk/Makefile b/packages/python-sdk/Makefileindex ce8a3dbcf..a78c25565 100644--- a/packages/python-sdk/Makefile+++ b/packages/python-sdk/Makefile@@ -1,10 +1,13 @@.PHONY: generategenerate:rm -rf ./e2b/api/client- npx -yes @openapitools/openapi-generator-cli generate \- -i ../../openapi.yml \+ # Waiting for https://github.com/OpenAPITools/openapi-generator/pull/16655 to be merged+ # Using this branch to use pydantic v2: https://github.com/fa0311/openapi-generator/tree/oshmoun-master-2+ # After released, use npx -yes @openapitools/openapi-generator-cli generate+ java -jar /Users/i/Work/e2b/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \+ -i ../../spec/openapi.yml \--library asyncio \- -g python-nextgen \+ -g python \-o ./e2b/api \--global-property apis,models,supportingFiles,modelDocs=false \--additional-properties=generateSourceCodeOnly=true \@@ -12,4 +15,7 @@ generate:--additional-properties=packageName=e2b.api.clientmv ./e2b/api/e2b/api/* ./e2b/api/rm -r ./e2b/api/e2b+ rm -r ./e2b/api/client/docs+ rm -r ./e2b/api/client/testblack .+ echo "You have to change `from_dict` method in `e2b/api/client/models/session.py`. Instead of parsing the results from dict, just pass the dict. (`_obj = Session.parse_obj(obj)`)"diff --git a/packages/python-sdk/e2b/api/.openapi-generator/FILES b/packages/python-sdk/e2b/api/.openapi-generator/FILESindex 1c2396b8d..ea405fdf4 100644--- a/packages/python-sdk/e2b/api/.openapi-generator/FILES+++ b/packages/python-sdk/e2b/api/.openapi-generator/FILES@@ -17,12 +17,10 @@ e2b/api/client/models/environment.pye2b/api/client/models/environment_state.pye2b/api/client/models/environment_state_update.pye2b/api/client/models/environment_title_update.py-e2b/api/client/models/envs_get200_response_inner.pye2b/api/client/models/error.pye2b/api/client/models/new_environment.pye2b/api/client/models/new_session.pye2b/api/client/models/session.py-e2b/api/client/models/sessions_get200_response_inner.pye2b/api/client/models/template.pye2b/api/client/rest.pye2b/api/client/test/__init__.py@@ -32,12 +30,10 @@ e2b/api/client/test/test_environment_state.pye2b/api/client/test/test_environment_state_update.pye2b/api/client/test/test_environment_title_update.pye2b/api/client/test/test_envs_api.py-e2b/api/client/test/test_envs_get200_response_inner.pye2b/api/client/test/test_error.pye2b/api/client/test/test_new_environment.pye2b/api/client/test/test_new_session.pye2b/api/client/test/test_session.pye2b/api/client/test/test_sessions_api.py-e2b/api/client/test/test_sessions_get200_response_inner.pye2b/api/client/test/test_template.pye2b/api/client_README.mddiff --git a/packages/python-sdk/e2b/api/.openapi-generator/VERSION b/packages/python-sdk/e2b/api/.openapi-generator/VERSIONindex cd802a1ec..44bad91b1 100644--- a/packages/python-sdk/e2b/api/.openapi-generator/VERSION+++ b/packages/python-sdk/e2b/api/.openapi-generator/VERSION@@ -1 +1 @@-6.6.0\ No newline at end of file+7.0.1-SNAPSHOT\ No newline at end of filediff --git a/packages/python-sdk/e2b/api/client/__init__.py b/packages/python-sdk/e2b/api/client/__init__.pyindex bb1769526..e0470f8f6 100644--- a/packages/python-sdk/e2b/api/client/__init__.py+++ b/packages/python-sdk/e2b/api/client/__init__.py@@ -5,13 +5,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501__version__ = "1.0.0"@@ -37,12 +37,8 @@ from e2b.api.client.models.environment import Environmentfrom e2b.api.client.models.environment_state import EnvironmentStatefrom e2b.api.client.models.environment_state_update import EnvironmentStateUpdatefrom e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate-from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInnerfrom e2b.api.client.models.error import Errorfrom e2b.api.client.models.new_environment import NewEnvironmentfrom e2b.api.client.models.new_session import NewSessionfrom e2b.api.client.models.session import Session-from e2b.api.client.models.sessions_get200_response_inner import (- SessionsGet200ResponseInner,-)from e2b.api.client.models.template import Templatediff --git a/packages/python-sdk/e2b/api/client/api/default_api.py b/packages/python-sdk/e2b/api/client/api/default_api.pyindex a0ba967da..141f7e912 100644--- a/packages/python-sdk/e2b/api/client/api/default_api.py+++ b/packages/python-sdk/e2b/api/client/api/default_api.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import re # noqa: F401@@ -26,14 +26,14 @@ from e2b.api.client.api_response import ApiResponsefrom e2b.api.client.exceptions import ApiTypeError, ApiValueError # noqa: F401-class DefaultApi(object):+class DefaultApi:"""NOTE: This class is auto generated by OpenAPI GeneratorRef: https://openapi-generator.techDo not edit the class manually."""- def __init__(self, api_client=None):+ def __init__(self, api_client=None) -> None:if api_client is None:api_client = ApiClient.get_default()self.api_client = api_client@@ -63,10 +63,10 @@ class DefaultApi(object)::param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -74,9 +74,8 @@ class DefaultApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the health_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the health_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.health_get_with_http_info(**kwargs) # noqa: E501diff --git a/packages/python-sdk/e2b/api/client/api/envs_api.py b/packages/python-sdk/e2b/api/client/api/envs_api.pyindex 96d42a6a4..98338f4ce 100644--- a/packages/python-sdk/e2b/api/client/api/envs_api.py+++ b/packages/python-sdk/e2b/api/client/api/envs_api.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import re # noqa: F401@@ -27,7 +27,6 @@ from typing import Listfrom e2b.api.client.models.environment import Environmentfrom e2b.api.client.models.environment_state_update import EnvironmentStateUpdatefrom e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate-from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInnerfrom e2b.api.client.models.new_environment import NewEnvironmentfrom e2b.api.client.api_client import ApiClient@@ -35,14 +34,14 @@ from e2b.api.client.api_response import ApiResponsefrom e2b.api.client.exceptions import ApiTypeError, ApiValueError # noqa: F401-class EnvsApi(object):+class EnvsApi:"""NOTE: This class is auto generated by OpenAPI GeneratorRef: https://openapi-generator.techDo not edit the class manually."""- def __init__(self, api_client=None):+ def __init__(self, api_client=None) -> None:if api_client is None:api_client = ApiClient.get_default()self.api_client = api_client@@ -86,10 +85,10 @@ class EnvsApi(object)::type code_snippet_id: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -97,9 +96,8 @@ class EnvsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_code_snippet_id_delete_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_code_snippet_id_delete_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_code_snippet_id_delete_with_http_info(@@ -260,10 +258,10 @@ class EnvsApi(object)::type code_snippet_id: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -271,9 +269,8 @@ class EnvsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_code_snippet_id_patch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_code_snippet_id_patch_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_code_snippet_id_patch_with_http_info(@@ -442,10 +439,10 @@ class EnvsApi(object)::type new_environment: NewEnvironment:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -453,9 +450,8 @@ class EnvsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_code_snippet_id_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_code_snippet_id_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_code_snippet_id_post_with_http_info(@@ -641,10 +637,10 @@ class EnvsApi(object)::type environment_state_update: EnvironmentStateUpdate:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -652,9 +648,8 @@ class EnvsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_code_snippet_id_state_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_code_snippet_id_state_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_code_snippet_id_state_put_with_http_info(@@ -840,10 +835,10 @@ class EnvsApi(object)::type environment_title_update: EnvironmentTitleUpdate:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -851,9 +846,8 @@ class EnvsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_code_snippet_id_title_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_code_snippet_id_title_put_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_code_snippet_id_title_put_with_http_info(@@ -995,21 +989,19 @@ class EnvsApi(object):@overloadasync def envs_get(self, api_key: StrictStr, **kwargs- ) -> List[EnvsGet200ResponseInner]: # noqa: E501+ ) -> List[Environment]: # noqa: E501...@overloaddef envs_get(self, api_key: StrictStr, async_req: Optional[bool] = True, **kwargs- ) -> List[EnvsGet200ResponseInner]: # noqa: E501+ ) -> List[Environment]: # noqa: E501...@validate_argumentsdef envs_get(self, api_key: StrictStr, async_req: Optional[bool] = None, **kwargs- ) -> Union[- List[EnvsGet200ResponseInner], Awaitable[List[EnvsGet200ResponseInner]]- ]: # noqa: E501+ ) -> Union[List[Environment], Awaitable[List[Environment]]]: # noqa: E501"""envs_get # noqa: E501List all environments # noqa: E501@@ -1023,20 +1015,19 @@ class EnvsApi(object)::type api_key: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.- :rtype: List[EnvsGet200ResponseInner]+ :rtype: List[Environment]"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_get_with_http_info(api_key, **kwargs) # noqa: E501@@ -1078,7 +1069,7 @@ class EnvsApi(object)::return: Returns the result object.If the method is called asynchronously,returns the request thread.- :rtype: tuple(List[EnvsGet200ResponseInner], status_code(int), headers(HTTPHeaderDict))+ :rtype: tuple(List[Environment], status_code(int), headers(HTTPHeaderDict))"""_params = locals()@@ -1132,7 +1123,7 @@ class EnvsApi(object):_auth_settings = [] # noqa: E501_response_types_map = {- "200": "List[EnvsGet200ResponseInner]",+ "200": "List[Environment]","401": "Error","500": "Error",}@@ -1195,10 +1186,10 @@ class EnvsApi(object)::type new_environment: NewEnvironment:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -1206,9 +1197,8 @@ class EnvsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the envs_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the envs_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.envs_post_with_http_info(diff --git a/packages/python-sdk/e2b/api/client/api/sessions_api.py b/packages/python-sdk/e2b/api/client/api/sessions_api.pyindex 0f300c32b..b35dbb7a5 100644--- a/packages/python-sdk/e2b/api/client/api/sessions_api.py+++ b/packages/python-sdk/e2b/api/client/api/sessions_api.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import re # noqa: F401@@ -26,23 +26,20 @@ from typing import List, Optionalfrom e2b.api.client.models.new_session import NewSessionfrom e2b.api.client.models.session import Session-from e2b.api.client.models.sessions_get200_response_inner import (- SessionsGet200ResponseInner,-)from e2b.api.client.api_client import ApiClientfrom e2b.api.client.api_response import ApiResponsefrom e2b.api.client.exceptions import ApiTypeError, ApiValueError # noqa: F401-class SessionsApi(object):+class SessionsApi:"""NOTE: This class is auto generated by OpenAPI GeneratorRef: https://openapi-generator.techDo not edit the class manually."""- def __init__(self, api_client=None):+ def __init__(self, api_client=None) -> None:if api_client is None:api_client = ApiClient.get_default()self.api_client = api_client@@ -50,21 +47,19 @@ class SessionsApi(object):@overloadasync def sessions_get(self, api_key: StrictStr, **kwargs- ) -> List[SessionsGet200ResponseInner]: # noqa: E501+ ) -> List[Session]: # noqa: E501...@overloaddef sessions_get(self, api_key: StrictStr, async_req: Optional[bool] = True, **kwargs- ) -> List[SessionsGet200ResponseInner]: # noqa: E501+ ) -> List[Session]: # noqa: E501...@validate_argumentsdef sessions_get(self, api_key: StrictStr, async_req: Optional[bool] = None, **kwargs- ) -> Union[- List[SessionsGet200ResponseInner], Awaitable[List[SessionsGet200ResponseInner]]- ]: # noqa: E501+ ) -> Union[List[Session], Awaitable[List[Session]]]: # noqa: E501"""sessions_get # noqa: E501List all sessions # noqa: E501@@ -78,20 +73,19 @@ class SessionsApi(object)::type api_key: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.- :rtype: List[SessionsGet200ResponseInner]+ :rtype: List[Session]"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the sessions_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the sessions_get_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.sessions_get_with_http_info(api_key, **kwargs) # noqa: E501@@ -133,7 +127,7 @@ class SessionsApi(object)::return: Returns the result object.If the method is called asynchronously,returns the request thread.- :rtype: tuple(List[SessionsGet200ResponseInner], status_code(int), headers(HTTPHeaderDict))+ :rtype: tuple(List[Session], status_code(int), headers(HTTPHeaderDict))"""_params = locals()@@ -187,7 +181,7 @@ class SessionsApi(object):_auth_settings = [] # noqa: E501_response_types_map = {- "200": "List[SessionsGet200ResponseInner]",+ "200": "List[Session]","401": "Error","500": "Error",}@@ -250,10 +244,10 @@ class SessionsApi(object)::type api_key: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -261,9 +255,8 @@ class SessionsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the sessions_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the sessions_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.sessions_post_with_http_info(@@ -438,10 +431,10 @@ class SessionsApi(object)::type session_id: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -449,9 +442,8 @@ class SessionsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the sessions_session_id_delete_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the sessions_session_id_delete_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.sessions_session_id_delete_with_http_info(@@ -612,10 +604,10 @@ class SessionsApi(object)::type api_key: str:param async_req: Whether to execute the request asynchronously.:type async_req: bool, optional- :param _request_timeout: timeout setting for this request. If one- number provided, it will be total request- timeout. It can also be a pair (tuple) of- (connection, read) timeouts.+ :param _request_timeout: timeout setting for this request.+ If one number provided, it will be total request+ timeout. It can also be a pair (tuple) of+ (connection, read) timeouts.:return: Returns the result object.If the method is called asynchronously,returns the request thread.@@ -623,9 +615,8 @@ class SessionsApi(object):"""kwargs["_return_http_data_only"] = Trueif "_preload_content" in kwargs:- raise ValueError(- "Error! Please call the sessions_session_id_refresh_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data"- )+ message = "Error! Please call the sessions_session_id_refresh_post_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501+ raise ValueError(message)if async_req is not None:kwargs["async_req"] = async_reqreturn self.sessions_session_id_refresh_post_with_http_info(diff --git a/packages/python-sdk/e2b/api/client/api_client.py b/packages/python-sdk/e2b/api/client/api_client.pyindex b7f0e9a81..21918aaaf 100644--- a/packages/python-sdk/e2b/api/client/api_client.py+++ b/packages/python-sdk/e2b/api/client/api_client.py@@ -3,36 +3,35 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import atexitimport datetime-from importlib import metadata+from dateutil.parser import parseimport jsonimport mimetypes+from multiprocessing.pool import ThreadPoolimport os-import platformimport reimport tempfile-from multiprocessing.pool import ThreadPool+from urllib.parse import quote+from e2b.api.client.configuration import Configuration+from e2b.api.client.api_response import ApiResponseimport e2b.api.client.models-from dateutil.parser import parsefrom e2b.api.client import rest-from e2b.api.client.api_response import ApiResponse-from e2b.api.client.configuration import Configuration-from e2b.api.client.exceptions import ApiValueError+from e2b.api.client.exceptions import ApiValueError, ApiException-class ApiClient(object):+class ApiClient:"""Generic API client for OpenAPI client library builds.OpenAPI generic API client. This client handles the client-@@ -70,7 +69,7 @@ class ApiClient(object):header_value=None,cookie=None,pool_threads=1,- ):+ ) -> None:# use default configuration if none is providedif configuration is None:configuration = Configuration.get_default()@@ -78,17 +77,7 @@ class ApiClient(object):self.pool_threads = pool_threadsself.rest_client = rest.RESTClientObject(configuration)- self.default_headers = {- "package_version": metadata.version("e2b"),- "lang": "python",- "lang_version": platform.python_version(),- "system": platform.system(),- "os": platform.platform(),- "publisher": "e2b",- "release": platform.release(),- "machine": platform.machine(),- "processor": platform.processor(),- }+ self.default_headers = {}if header_name is not None:self.default_headers[header_name] = header_valueself.cookie = cookie@@ -236,17 +225,22 @@ class ApiClient(object):url_query = self.parameters_to_url_query(query_params, collection_formats)url += "?" + url_query- # perform request and return response- response_data = await self.request(- method,- url,- query_params=query_params,- headers=header_params,- post_params=post_params,- body=body,- _preload_content=_preload_content,- _request_timeout=_request_timeout,- )+ try:+ # perform request and return response+ response_data = await self.request(+ method,+ url,+ query_params=query_params,+ headers=header_params,+ post_params=post_params,+ body=body,+ _preload_content=_preload_content,+ _request_timeout=_request_timeout,+ )+ except ApiException as e:+ if e.body:+ e.body = e.body.decode("utf-8")+ raise eself.last_response = response_data@@ -254,6 +248,15 @@ class ApiClient(object):# data needs deserialization or returns HTTP data (deserialized) onlyif _preload_content or _return_http_data_only:response_type = response_types_map.get(str(response_data.status), None)+ if (+ not response_type+ and isinstance(response_data.status, int)+ and 100 <= response_data.status <= 599+ ):+ # if not found, look for '1XX', '2XX', etc.+ response_type = response_types_map.get(+ str(response_data.status)[0] + "XX", None+ )if response_type == "bytearray":response_data.data = response_data.data@@ -355,7 +358,7 @@ class ApiClient(object):if data is None:return None- if type(klass) == str:+ if isinstance(klass, str):if klass.startswith("List["):sub_kls = re.match(r"List\[(.*)]", klass).group(1)return [self.__deserialize(sub_data, sub_kls) for sub_data in data]@@ -812,7 +815,7 @@ class ApiClient(object):return stringexcept ValueError:raise rest.ApiException(- status=0, message="Failed to parse `{0}` as date object".format(string)+ status=0, reason="Failed to parse `{0}` as date object".format(string))def __deserialize_datetime(self, string):@@ -830,7 +833,7 @@ class ApiClient(object):except ValueError:raise rest.ApiException(status=0,- message="Failed to parse `{0}` as datetime object".format(string),+ reason=("Failed to parse `{0}` as datetime object".format(string)),)def __deserialize_model(self, data, klass):diff --git a/packages/python-sdk/e2b/api/client/api_response.py b/packages/python-sdk/e2b/api/client/api_response.pyindex 0af0a2dd5..bb7e40032 100644--- a/packages/python-sdk/e2b/api/client/api_response.py+++ b/packages/python-sdk/e2b/api/client/api_response.py@@ -19,7 +19,9 @@ class ApiResponse:)raw_data: Optional[Any] = Field(None, description="Raw data (HTTP response body)")- def __init__(self, status_code=None, headers=None, data=None, raw_data=None):+ def __init__(+ self, status_code=None, headers=None, data=None, raw_data=None+ ) -> None:self.status_code = status_codeself.headers = headersself.data = datadiff --git a/packages/python-sdk/e2b/api/client/configuration.py b/packages/python-sdk/e2b/api/client/configuration.pyindex 845ce96d2..a61cc64d7 100644--- a/packages/python-sdk/e2b/api/client/configuration.py+++ b/packages/python-sdk/e2b/api/client/configuration.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import copy@@ -18,7 +18,6 @@ import sysimport urllib3import http.client as httplib-from e2b.api.client.exceptions import ApiValueErrorJSON_SCHEMA_VALIDATION_KEYWORDS = {"multipleOf",@@ -34,7 +33,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = {}-class Configuration(object):+class Configuration:"""This class contains various settings of the API client.:param host: Base url.@@ -56,7 +55,8 @@ class Configuration(object):configuration.:param server_operation_variables: Mapping from operation ID to a mapping withstring values to replace variables in templated server configuration.- The validation of enums is performed for variables with defined enum values before.+ The validation of enums is performed for variables with defined enum+ values before.:param ssl_ca_cert: str - the path to a file of concatenated CA certificatesin PEM format.@@ -97,7 +97,7 @@ class Configuration(object):server_operation_index=None,server_operation_variables=None,ssl_ca_cert=None,- ):+ ) -> None:"""Constructor"""self._base_path = "https://ondevbook.com" if host is None else host"""Default Base urldiff --git a/packages/python-sdk/e2b/api/client/docs/DefaultApi.md b/packages/python-sdk/e2b/api/client/docs/DefaultApi.mddeleted file mode 100644index 7fa04f227..000000000--- a/packages/python-sdk/e2b/api/client/docs/DefaultApi.md+++ /dev/null@@ -1,62 +0,0 @@-# e2b.api.client.DefaultApi--All URIs are relative to *https://ondevbook.com*--| Method | HTTP request | Description |-| ------------------------------------------ | --------------- | ----------- |-| [**health_get**](DefaultApi.md#health_get) | **GET** /health |--# **health_get**--> health_get()--Health check--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.DefaultApi(api_client)-- try:- await api_instance.health_get()- except Exception as e:- print("Exception when calling DefaultApi->health_get: %s\n" % e)-```--### Parameters--This endpoint does not need any parameter.--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ---------------------- | ---------------- |-| **200** | Request was successful | - |-| **401** | Authentication error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)diff --git a/packages/python-sdk/e2b/api/client/docs/EnvsApi.md b/packages/python-sdk/e2b/api/client/docs/EnvsApi.mddeleted file mode 100644index 7c48c600f..000000000--- a/packages/python-sdk/e2b/api/client/docs/EnvsApi.md+++ /dev/null@@ -1,454 +0,0 @@-# e2b.api.client.EnvsApi--All URIs are relative to *https://ondevbook.com*--| Method | HTTP request | Description |-| ------------------------------------------------------------------------------- | ----------------------------------- | ----------- |-| [**envs_code_snippet_id_delete**](EnvsApi.md#envs_code_snippet_id_delete) | **DELETE** /envs/{codeSnippetID} |-| [**envs_code_snippet_id_patch**](EnvsApi.md#envs_code_snippet_id_patch) | **PATCH** /envs/{codeSnippetID} |-| [**envs_code_snippet_id_post**](EnvsApi.md#envs_code_snippet_id_post) | **POST** /envs/{codeSnippetID} |-| [**envs_code_snippet_id_state_put**](EnvsApi.md#envs_code_snippet_id_state_put) | **PUT** /envs/{codeSnippetID}/state |-| [**envs_code_snippet_id_title_put**](EnvsApi.md#envs_code_snippet_id_title_put) | **PUT** /envs/{codeSnippetID}/title |-| [**envs_get**](EnvsApi.md#envs_get) | **GET** /envs |-| [**envs_post**](EnvsApi.md#envs_post) | **POST** /envs |--# **envs_code_snippet_id_delete**--> envs_code_snippet_id_delete(api_key, code_snippet_id)--Delete the code snippet environment--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |- code_snippet_id = 'code_snippet_id_example' # str |-- try:- await api_instance.envs_code_snippet_id_delete(api_key, code_snippet_id)- except Exception as e:- print("Exception when calling EnvsApi->envs_code_snippet_id_delete: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ------------------- | ------- | ----------- | ----- |-| **api_key** | **str** | |-| **code_snippet_id** | **str** | |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ------------------------------------ | ---------------- |-| **204** | Successfully deleted the environment | - |-| **400** | Cannot delete the environment | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **envs_code_snippet_id_patch**--> envs_code_snippet_id_patch(api_key, code_snippet_id)--Update the environment of the code snippet to match the edit environment--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |- code_snippet_id = 'code_snippet_id_example' # str |-- try:- await api_instance.envs_code_snippet_id_patch(api_key, code_snippet_id)- except Exception as e:- print("Exception when calling EnvsApi->envs_code_snippet_id_patch: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ------------------- | ------- | ----------- | ----- |-| **api_key** | **str** | |-| **code_snippet_id** | **str** | |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | --------------------------------------------- | ---------------- |-| **204** | Updated the edit environment for code snippet | - |-| **400** | Bad request | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **envs_code_snippet_id_post**--> envs_code_snippet_id_post(api_key, code_snippet_id, new_environment)--Create a new env for a code snippet--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |- code_snippet_id = 'code_snippet_id_example' # str |- new_environment = e2b.api.client.NewEnvironment() # NewEnvironment |-- try:- await api_instance.envs_code_snippet_id_post(api_key, code_snippet_id, new_environment)- except Exception as e:- print("Exception when calling EnvsApi->envs_code_snippet_id_post: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ------------------- | --------------------------------------- | ----------- | ----- |-| **api_key** | **str** | |-| **code_snippet_id** | **str** | |-| **new_environment** | [**NewEnvironment**](NewEnvironment.md) | |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: application/json-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ----------------------------------- | ---------------- |-| **204** | Successfully created an environment | - |-| **400** | Bad request | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **envs_code_snippet_id_state_put**--> envs_code_snippet_id_state_put(api_key, code_snippet_id, environment_state_update)--Update the state of the environment--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |- code_snippet_id = 'code_snippet_id_example' # str |- environment_state_update = e2b.api.client.EnvironmentStateUpdate() # EnvironmentStateUpdate |-- try:- await api_instance.envs_code_snippet_id_state_put(api_key, code_snippet_id, environment_state_update)- except Exception as e:- print("Exception when calling EnvsApi->envs_code_snippet_id_state_put: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ---------------------------- | ------------------------------------------------------- | ----------- | ----- |-| **api_key** | **str** | |-| **code_snippet_id** | **str** | |-| **environment_state_update** | [**EnvironmentStateUpdate**](EnvironmentStateUpdate.md) | |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: application/json-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | -------------------------------- | ---------------- |-| **204** | Updated the state of environment | - |-| **400** | Bad request | - |-| **401** | Authentication error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **envs_code_snippet_id_title_put**--> envs_code_snippet_id_title_put(api_key, code_snippet_id, environment_title_update)--Update the title of the environment--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |- code_snippet_id = 'code_snippet_id_example' # str |- environment_title_update = e2b.api.client.EnvironmentTitleUpdate() # EnvironmentTitleUpdate |-- try:- await api_instance.envs_code_snippet_id_title_put(api_key, code_snippet_id, environment_title_update)- except Exception as e:- print("Exception when calling EnvsApi->envs_code_snippet_id_title_put: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ---------------------------- | ------------------------------------------------------- | ----------- | ----- |-| **api_key** | **str** | |-| **code_snippet_id** | **str** | |-| **environment_title_update** | [**EnvironmentTitleUpdate**](EnvironmentTitleUpdate.md) | |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: application/json-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ------------------------------------- | ---------------- |-| **204** | Updated the title of the code snippet | - |-| **400** | Bad request | - |-| **401** | Authentication error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **envs_get**--> List[EnvsGet200ResponseInner] envs_get(api_key)--List all environments--### Example--```python-import e2b.api.client-from pprint import pprint--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |-- try:- api_response = await api_instance.envs_get(api_key)- print("The response of EnvsApi->envs_get:\n")- pprint(api_response)- except Exception as e:- print("Exception when calling EnvsApi->envs_get: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ----------- | ------- | ----------- | ----- |-| **api_key** | **str** | |--### Return type--[**List[EnvsGet200ResponseInner]**](EnvsGet200ResponseInner.md)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | -------------------------------------- | ---------------- |-| **200** | Successfully returned all environments | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **envs_post**--> Environment envs_post(api_key, new_environment)--Create a new environment--### Example--```python-import e2b.api.client-from pprint import pprint--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.EnvsApi(api_client)- api_key = 'api_key_example' # str |- new_environment = e2b.api.client.NewEnvironment() # NewEnvironment |-- try:- api_response = await api_instance.envs_post(api_key, new_environment)- print("The response of EnvsApi->envs_post:\n")- pprint(api_response)- except Exception as e:- print("Exception when calling EnvsApi->envs_post: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ------------------- | --------------------------------------- | ----------- | ----- |-| **api_key** | **str** | |-| **new_environment** | [**NewEnvironment**](NewEnvironment.md) | |--### Return type--[**Environment**](Environment.md)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: application/json-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ----------------------------------- | ---------------- |-| **200** | Successfully created an environment | - |-| **400** | Bad request | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)diff --git a/packages/python-sdk/e2b/api/client/docs/SessionsApi.md b/packages/python-sdk/e2b/api/client/docs/SessionsApi.mddeleted file mode 100644index 8278706b2..000000000--- a/packages/python-sdk/e2b/api/client/docs/SessionsApi.md+++ /dev/null@@ -1,259 +0,0 @@-# e2b.api.client.SessionsApi--All URIs are relative to *https://ondevbook.com*--| Method | HTTP request | Description |-| --------------------------------------------------------------------------------------- | -------------------------------------- | ----------- |-| [**sessions_get**](SessionsApi.md#sessions_get) | **GET** /sessions |-| [**sessions_post**](SessionsApi.md#sessions_post) | **POST** /sessions |-| [**sessions_session_id_delete**](SessionsApi.md#sessions_session_id_delete) | **DELETE** /sessions/{sessionID} |-| [**sessions_session_id_refresh_post**](SessionsApi.md#sessions_session_id_refresh_post) | **POST** /sessions/{sessionID}/refresh |--# **sessions_get**--> List[SessionsGet200ResponseInner] sessions_get(api_key)--List all sessions--### Example--```python-import e2b.api.client-from pprint import pprint--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.SessionsApi(api_client)- api_key = 'api_key_example' # str |-- try:- api_response = await api_instance.sessions_get(api_key)- print("The response of SessionsApi->sessions_get:\n")- pprint(api_response)- except Exception as e:- print("Exception when calling SessionsApi->sessions_get: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| ----------- | ------- | ----------- | ----- |-| **api_key** | **str** | |--### Return type--[**List[SessionsGet200ResponseInner]**](SessionsGet200ResponseInner.md)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ---------------------------------- | ---------------- |-| **200** | Successfully returned all sessions | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **sessions_post**--> Session sessions_post(new_session, api_key=api_key)--Create a session on the server--### Example--```python-import e2b.api.client-from pprint import pprint--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.SessionsApi(api_client)- new_session = e2b.api.client.NewSession() # NewSession |- api_key = 'api_key_example' # str | (optional)-- try:- api_response = await api_instance.sessions_post(new_session, api_key=api_key)- print("The response of SessionsApi->sessions_post:\n")- pprint(api_response)- except Exception as e:- print("Exception when calling SessionsApi->sessions_post: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| --------------- | ------------------------------- | ----------- | ---------- |-| **new_session** | [**NewSession**](NewSession.md) | |-| **api_key** | **str** | | [optional] |--### Return type--[**Session**](Session.md)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: application/json-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | ------------------------------ | ---------------- |-| **201** | Successfully created a session | - |-| **401** | Authentication error | - |-| **400** | Bad request | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **sessions_session_id_delete**--> sessions_session_id_delete(api_key, session_id)--Delete a session on the server--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.SessionsApi(api_client)- api_key = 'api_key_example' # str |- session_id = 'session_id_example' # str |-- try:- await api_instance.sessions_session_id_delete(api_key, session_id)- except Exception as e:- print("Exception when calling SessionsApi->sessions_session_id_delete: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| -------------- | ------- | ----------- | ----- |-| **api_key** | **str** | |-| **session_id** | **str** | |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | -------------------------------- | ---------------- |-| **204** | Successfully deleted the session | - |-| **401** | Authentication error | - |-| **500** | Server error | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)--# **sessions_session_id_refresh_post**--> sessions_session_id_refresh_post(session_id, api_key=api_key)--Refresh the session extending its time to live--### Example--```python-import e2b.api.client--# Defining the host is optional and defaults to https://ondevbook.com-# See configuration.py for a list of all supported configuration parameters.-configuration = e2b.api.client.Configuration(- host = "https://ondevbook.com"-)---# Enter a context with an instance of the API client-async with e2b.api.client.ApiClient(configuration) as api_client:- # Create an instance of the API class- api_instance = e2b.api.client.SessionsApi(api_client)- session_id = 'session_id_example' # str |- api_key = 'api_key_example' # str | (optional)-- try:- await api_instance.sessions_session_id_refresh_post(session_id, api_key=api_key)- except Exception as e:- print("Exception when calling SessionsApi->sessions_session_id_refresh_post: %s\n" % e)-```--### Parameters--| Name | Type | Description | Notes |-| -------------- | ------- | ----------- | ---------- |-| **session_id** | **str** | |-| **api_key** | **str** | | [optional] |--### Return type--void (empty response body)--### Authorization--No authorization required--### HTTP request headers--- **Content-Type**: Not defined-- **Accept**: application/json--### HTTP response details--| Status code | Description | Response headers |-| ----------- | -------------------------------------------- | ---------------- |-| **204** | Successfully refreshed the session | - |-| **401** | Authentication error | - |-| **404** | Error refreshing session - session not found | - |--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)diff --git a/packages/python-sdk/e2b/api/client/exceptions.py b/packages/python-sdk/e2b/api/client/exceptions.pyindex 2bc78f619..4c4b7ef7b 100644--- a/packages/python-sdk/e2b/api/client/exceptions.py+++ b/packages/python-sdk/e2b/api/client/exceptions.py@@ -3,14 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""-import json+""" # noqa: E501class OpenApiException(Exception):@@ -18,7 +17,9 @@ class OpenApiException(Exception):class ApiTypeError(OpenApiException, TypeError):- def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None):+ def __init__(+ self, msg, path_to_item=None, valid_classes=None, key_type=None+ ) -> None:"""Raises an exception for TypeErrorsArgs:@@ -46,7 +47,7 @@ class ApiTypeError(OpenApiException, TypeError):class ApiValueError(OpenApiException, ValueError):- def __init__(self, msg, path_to_item=None):+ def __init__(self, msg, path_to_item=None) -> None:"""Args:msg (str): the exception message@@ -64,7 +65,7 @@ class ApiValueError(OpenApiException, ValueError):class ApiAttributeError(OpenApiException, AttributeError):- def __init__(self, msg, path_to_item=None):+ def __init__(self, msg, path_to_item=None) -> None:"""Raised when an attribute reference or assignment fails.@@ -83,7 +84,7 @@ class ApiAttributeError(OpenApiException, AttributeError):class ApiKeyError(OpenApiException, KeyError):- def __init__(self, msg, path_to_item=None):+ def __init__(self, msg, path_to_item=None) -> None:"""Args:msg (str): the exception message@@ -100,37 +101,53 @@ class ApiKeyError(OpenApiException, KeyError):class ApiException(OpenApiException):- def __init__(self, status, data=None, message=None):- self.status = status- if data:- body = json.loads(data.decode("utf-8"))- self.message = body.get("message", body.get("error", "Unknown error"))+ def __init__(self, status=None, reason=None, http_resp=None) -> None:+ if http_resp:+ self.status = http_resp.status+ self.reason = http_resp.reason+ self.body = http_resp.data+ self.headers = http_resp.getheaders()else:- self.message = message+ self.status = status+ self.reason = reason+ self.body = None+ self.headers = Nonedef __str__(self):"""Custom error messages for exception"""- return "HTTP Status code ({0}) - {1}".format(self.status, self.message)+ error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason)+ if self.headers:+ error_message += "HTTP response headers: {0}\n".format(self.headers)++ if self.body:+ error_message += "HTTP response body: {0}\n".format(self.body)++ return error_message+++class BadRequestException(ApiException):+ def __init__(self, status=None, reason=None, http_resp=None) -> None:+ super(BadRequestException, self).__init__(status, reason, http_resp)class NotFoundException(ApiException):- def __init__(self, status, data):- super(NotFoundException, self).__init__(status, data)+ def __init__(self, status=None, reason=None, http_resp=None) -> None:+ super(NotFoundException, self).__init__(status, reason, http_resp)class UnauthorizedException(ApiException):- def __init__(self, status, data):- super(UnauthorizedException, self).__init__(status, data)+ def __init__(self, status=None, reason=None, http_resp=None) -> None:+ super(UnauthorizedException, self).__init__(status, reason, http_resp)class ForbiddenException(ApiException):- def __init__(self, status, data):- super(ForbiddenException, self).__init__(status, data)+ def __init__(self, status=None, reason=None, http_resp=None) -> None:+ super(ForbiddenException, self).__init__(status, reason, http_resp)class ServiceException(ApiException):- def __init__(self, status, data):- super(ServiceException, self).__init__(status, data)+ def __init__(self, status=None, reason=None, http_resp=None) -> None:+ super(ServiceException, self).__init__(status, reason, http_resp)def render_path(path_to_item):diff --git a/packages/python-sdk/e2b/api/client/models/__init__.py b/packages/python-sdk/e2b/api/client/models/__init__.pyindex b77b32644..1ae622672 100644--- a/packages/python-sdk/e2b/api/client/models/__init__.py+++ b/packages/python-sdk/e2b/api/client/models/__init__.py@@ -4,13 +4,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501# import models into model package@@ -18,12 +18,8 @@ from e2b.api.client.models.environment import Environmentfrom e2b.api.client.models.environment_state import EnvironmentStatefrom e2b.api.client.models.environment_state_update import EnvironmentStateUpdatefrom e2b.api.client.models.environment_title_update import EnvironmentTitleUpdate-from e2b.api.client.models.envs_get200_response_inner import EnvsGet200ResponseInnerfrom e2b.api.client.models.error import Errorfrom e2b.api.client.models.new_environment import NewEnvironmentfrom e2b.api.client.models.new_session import NewSessionfrom e2b.api.client.models.session import Session-from e2b.api.client.models.sessions_get200_response_inner import (- SessionsGet200ResponseInner,-)from e2b.api.client.models.template import Templatediff --git a/packages/python-sdk/e2b/api/client/models/environment.py b/packages/python-sdk/e2b/api/client/models/environment.pyindex 42b722466..6af75f7dd 100644--- a/packages/python-sdk/e2b/api/client/models/environment.py+++ b/packages/python-sdk/e2b/api/client/models/environment.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501from __future__ import annotations@@ -30,11 +30,10 @@ class Environment(BaseModel):id: StrictStr = Field(...)template: Optional[StrictStr] = Nonetitle: Optional[StrictStr] = None- __properties = ["id", "template", "title"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -67,7 +66,7 @@ class Environment(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["id", "template", "title"]:raise ValueError("Error due to additional fields (not defined in Environment) in the input: "+ objdiff --git a/packages/python-sdk/e2b/api/client/models/environment_state.py b/packages/python-sdk/e2b/api/client/models/environment_state.pyindex 0674e93a0..6ee94e4dd 100644--- a/packages/python-sdk/e2b/api/client/models/environment_state.py+++ b/packages/python-sdk/e2b/api/client/models/environment_state.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import jsondiff --git a/packages/python-sdk/e2b/api/client/models/environment_state_update.py b/packages/python-sdk/e2b/api/client/models/environment_state_update.pyindex 1b3332748..68151ff78 100644--- a/packages/python-sdk/e2b/api/client/models/environment_state_update.py+++ b/packages/python-sdk/e2b/api/client/models/environment_state_update.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501from __future__ import annotations@@ -28,11 +28,10 @@ class EnvironmentStateUpdate(BaseModel):"""state: EnvironmentState = Field(...)- __properties = ["state"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -65,7 +64,7 @@ class EnvironmentStateUpdate(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["state"]:raise ValueError("Error due to additional fields (not defined in EnvironmentStateUpdate) in the input: "+ objdiff --git a/packages/python-sdk/e2b/api/client/models/environment_title_update.py b/packages/python-sdk/e2b/api/client/models/environment_title_update.pyindex 4bee57af1..53ef331d5 100644--- a/packages/python-sdk/e2b/api/client/models/environment_title_update.py+++ b/packages/python-sdk/e2b/api/client/models/environment_title_update.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501from __future__ import annotations@@ -28,11 +28,10 @@ class EnvironmentTitleUpdate(BaseModel):"""title: Optional[StrictStr] = None- __properties = ["title"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -65,7 +64,7 @@ class EnvironmentTitleUpdate(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["title"]:raise ValueError("Error due to additional fields (not defined in EnvironmentTitleUpdate) in the input: "+ objdiff --git a/packages/python-sdk/e2b/api/client/models/envs_get200_response_inner.py b/packages/python-sdk/e2b/api/client/models/envs_get200_response_inner.pydeleted file mode 100644index 0596a79f2..000000000--- a/packages/python-sdk/e2b/api/client/models/envs_get200_response_inner.py+++ /dev/null@@ -1,83 +0,0 @@-# coding: utf-8--"""- Devbook-- Devbook API # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by OpenAPI Generator (https://openapi-generator.tech)-- Do not edit the class manually.-"""---from __future__ import annotations-import pprint-import re # noqa: F401-import json---from typing import Optional-from pydantic import BaseModel, Field, StrictStr---class EnvsGet200ResponseInner(BaseModel):- """- EnvsGet200ResponseInner- """-- id: StrictStr = Field(...)- template: Optional[StrictStr] = None- title: Optional[StrictStr] = None- __properties = ["id", "template", "title"]-- class Config:- """Pydantic configuration"""-- allow_population_by_field_name = True- validate_assignment = True-- def to_str(self) -> str:- """Returns the string representation of the model using alias"""- return pprint.pformat(self.dict(by_alias=True))-- def to_json(self) -> str:- """Returns the JSON representation of the model using alias"""- return json.dumps(self.to_dict())-- @classmethod- def from_json(cls, json_str: str) -> EnvsGet200ResponseInner:- """Create an instance of EnvsGet200ResponseInner from a JSON string"""- return cls.from_dict(json.loads(json_str))-- def to_dict(self):- """Returns the dictionary representation of the model using alias"""- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)- return _dict-- @classmethod- def from_dict(cls, obj: dict) -> EnvsGet200ResponseInner:- """Create an instance of EnvsGet200ResponseInner from a dict"""- if obj is None:- return None-- if not isinstance(obj, dict):- return EnvsGet200ResponseInner.parse_obj(obj)-- # raise errors for additional fields in the input- for _key in obj.keys():- if _key not in cls.__properties:- raise ValueError(- "Error due to additional fields (not defined in EnvsGet200ResponseInner) in the input: "- + obj- )-- _obj = EnvsGet200ResponseInner.parse_obj(- {- "id": obj.get("id"),- "template": obj.get("template"),- "title": obj.get("title"),- }- )- return _objdiff --git a/packages/python-sdk/e2b/api/client/models/error.py b/packages/python-sdk/e2b/api/client/models/error.pyindex f5520fe65..ac9292817 100644--- a/packages/python-sdk/e2b/api/client/models/error.py+++ b/packages/python-sdk/e2b/api/client/models/error.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501from __future__ import annotations@@ -28,11 +28,10 @@ class Error(BaseModel):code: StrictInt = Field(..., description="Error code")message: StrictStr = Field(..., description="Error")- __properties = ["code", "message"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -65,7 +64,7 @@ class Error(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["code", "message"]:raise ValueError("Error due to additional fields (not defined in Error) in the input: "+ objdiff --git a/packages/python-sdk/e2b/api/client/models/new_environment.py b/packages/python-sdk/e2b/api/client/models/new_environment.pyindex d8b17d845..005a5b9d7 100644--- a/packages/python-sdk/e2b/api/client/models/new_environment.py+++ b/packages/python-sdk/e2b/api/client/models/new_environment.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501from __future__ import annotations@@ -29,11 +29,10 @@ class NewEnvironment(BaseModel):title: Optional[StrictStr] = Nonetemplate: StrictStr = Field(...)- __properties = ["title", "template"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -66,7 +65,7 @@ class NewEnvironment(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["title", "template"]:raise ValueError("Error due to additional fields (not defined in NewEnvironment) in the input: "+ objdiff --git a/packages/python-sdk/e2b/api/client/models/new_session.py b/packages/python-sdk/e2b/api/client/models/new_session.pyindex 23e0e4c35..04699ea26 100644--- a/packages/python-sdk/e2b/api/client/models/new_session.py+++ b/packages/python-sdk/e2b/api/client/models/new_session.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501from __future__ import annotations@@ -37,11 +37,10 @@ class NewSession(BaseModel):alias="codeSnippetID",description="Identifier of a code snippet which which is the environment associated",)- __properties = ["editEnabled", "codeSnippetID"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -74,7 +73,7 @@ class NewSession(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["editEnabled", "codeSnippetID"]:raise ValueError("Error due to additional fields (not defined in NewSession) in the input: "+ objdiff --git a/packages/python-sdk/e2b/api/client/models/session.py b/packages/python-sdk/e2b/api/client/models/session.pyindex caca7dd75..84fca8a37 100644--- a/packages/python-sdk/e2b/api/client/models/session.py+++ b/packages/python-sdk/e2b/api/client/models/session.py@@ -3,20 +3,19 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""-+""" # noqa: E501from __future__ import annotations++import jsonimport pprintimport re # noqa: F401-import json-from pydantic import BaseModel, Field, StrictBool, StrictStr@@ -42,11 +41,10 @@ class Session(BaseModel):client_id: StrictStr = Field(..., alias="clientID", description="Identifier of the client")- __properties = ["codeSnippetID", "editEnabled", "sessionID", "clientID"]- class Config:- """Pydantic configuration"""+ """Pydantic configuration"""+ class Config:allow_population_by_field_name = Truevalidate_assignment = True@@ -79,18 +77,11 @@ class Session(BaseModel):# raise errors for additional fields in the inputfor _key in obj.keys():- if _key not in cls.__properties:+ if _key not in ["codeSnippetID", "editEnabled", "sessionID", "clientID"]:raise ValueError("Error due to additional fields (not defined in Session) in the input: "+ obj)- _obj = Session.parse_obj(- {- "code_snippet_id": obj.get("codeSnippetID"),- "edit_enabled": obj.get("editEnabled"),- "session_id": obj.get("sessionID"),- "client_id": obj.get("clientID"),- }- )+ _obj = Session.parse_obj(obj)return _objdiff --git a/packages/python-sdk/e2b/api/client/models/sessions_get200_response_inner.py b/packages/python-sdk/e2b/api/client/models/sessions_get200_response_inner.pydeleted file mode 100644index 9f451a51b..000000000--- a/packages/python-sdk/e2b/api/client/models/sessions_get200_response_inner.py+++ /dev/null@@ -1,96 +0,0 @@-# coding: utf-8--"""- Devbook-- Devbook API # noqa: E501-- The version of the OpenAPI document: 1.0.0- Generated by OpenAPI Generator (https://openapi-generator.tech)-- Do not edit the class manually.-"""---from __future__ import annotations-import pprint-import re # noqa: F401-import json---from pydantic import BaseModel, Field, StrictBool, StrictStr---class SessionsGet200ResponseInner(BaseModel):- """- SessionsGet200ResponseInner- """-- code_snippet_id: StrictStr = Field(- ...,- alias="codeSnippetID",- description="Identifier of a code snippet which which is the environment associated",- )- edit_enabled: StrictBool = Field(- ...,- alias="editEnabled",- description="Information if the session is a shared persistent edit session",- )- session_id: StrictStr = Field(- ..., alias="sessionID", description="Identifier of the session"- )- client_id: StrictStr = Field(- ..., alias="clientID", description="Identifier of the client"- )- __properties = ["codeSnippetID", "editEnabled", "sessionID", "clientID"]-- class Config:- """Pydantic configuration"""-- allow_population_by_field_name = True- validate_assignment = True-- def to_str(self) -> str:- """Returns the string representation of the model using alias"""- return pprint.pformat(self.dict(by_alias=True))-- def to_json(self) -> str:- """Returns the JSON representation of the model using alias"""- return json.dumps(self.to_dict())-- @classmethod- def from_json(cls, json_str: str) -> SessionsGet200ResponseInner:- """Create an instance of SessionsGet200ResponseInner from a JSON string"""- return cls.from_dict(json.loads(json_str))-- def to_dict(self):- """Returns the dictionary representation of the model using alias"""- _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)- return _dict-- @classmethod- def from_dict(cls, obj: dict) -> SessionsGet200ResponseInner:- """Create an instance of SessionsGet200ResponseInner from a dict"""- if obj is None:- return None-- if not isinstance(obj, dict):- return SessionsGet200ResponseInner.parse_obj(obj)-- # raise errors for additional fields in the input- for _key in obj.keys():- if _key not in cls.__properties:- raise ValueError(- "Error due to additional fields (not defined in SessionsGet200ResponseInner) in the input: "- + obj- )-- _obj = SessionsGet200ResponseInner.parse_obj(- {- "code_snippet_id": obj.get("codeSnippetID"),- "edit_enabled": obj.get("editEnabled"),- "session_id": obj.get("sessionID"),- "client_id": obj.get("clientID"),- }- )- return _objdiff --git a/packages/python-sdk/e2b/api/client/models/template.py b/packages/python-sdk/e2b/api/client/models/template.pyindex daa6a22b8..86004936c 100644--- a/packages/python-sdk/e2b/api/client/models/template.py+++ b/packages/python-sdk/e2b/api/client/models/template.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import jsondiff --git a/packages/python-sdk/e2b/api/client/rest.py b/packages/python-sdk/e2b/api/client/rest.pyindex 0a49d7a24..b477bd6ff 100644--- a/packages/python-sdk/e2b/api/client/rest.py+++ b/packages/python-sdk/e2b/api/client/rest.py@@ -3,13 +3,13 @@"""Devbook- Devbook API # noqa: E501+ Devbook APIThe version of the OpenAPI document: 1.0.0Generated by OpenAPI Generator (https://openapi-generator.tech)Do not edit the class manually.-"""+""" # noqa: E501import io@@ -17,23 +17,17 @@ import jsonimport loggingimport reimport ssl-from urllib.parse import urlencodeimport aiohttp-from e2b.api.client.exceptions import (- ApiException,- ApiValueError,- ForbiddenException,- NotFoundException,- ServiceException,- UnauthorizedException,-)+from urllib.parse import urlencode, quote_plus++from e2b.api.client.exceptions import ApiException, ApiValueErrorlogger = logging.getLogger(__name__)class RESTResponse(io.IOBase):- def __init__(self, resp, data):+ def __init__(self, resp, data) -> None:self.aiohttp_response = respself.status = resp.statusself.reason = resp.reason@@ -48,8 +42,8 @@ class RESTResponse(io.IOBase):return self.aiohttp_response.headers.get(name, default)-class RESTClientObject(object):- def __init__(self, configuration, pools_size=4, maxsize=None):+class RESTClientObject:+ def __init__(self, configuration, pools_size=4, maxsize=None) -> None:# maxsize is number of requests to host that are allowed in parallelif maxsize is None:maxsize = configuration.connection_pool_maxsize@@ -164,7 +158,7 @@ class RESTClientObject(object):msg = """Cannot prepare a request message for providedarguments. Please check that your arguments matchdeclared content type."""- raise ApiException(status=0, message=msg)+ raise ApiException(status=0, reason=msg)r = await self.pool_manager.request(**args)if _preload_content:@@ -175,16 +169,7 @@ class RESTClientObject(object):logger.debug("response body: %s", r.data)if not 200 <= r.status <= 299:- if r.status == 401:- raise UnauthorizedException(status=r.status, data=r.data)- elif r.status == 403:- raise ForbiddenException(status=r.status, data=r.data)- elif r.status == 404:- raise NotFoundException(status=r.status, data=r.data)- elif r.status == 500:- raise ServiceException(status=r.status, data=r.data)- else:- raise ApiException(status=r.status, data=r.data)+ raise ApiException(http_resp=r)return rdiff --git a/packages/python-sdk/e2b/api/client_README.md b/packages/python-sdk/e2b/api/client_README.mdindex 5609f3652..8387137e2 100644--- a/packages/python-sdk/e2b/api/client_README.md+++ b/packages/python-sdk/e2b/api/client_README.md@@ -1,12 +1,11 @@# e2b.api.client-Devbook APIThe `e2b.api.client` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:- API version: 1.0.0- Package version: 1.0.0-- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen+- Build package: org.openapitools.codegen.languages.PythonClientCodegen## Requirements.@@ -18,11 +17,11 @@ This python library package is generated without supporting files like setup.pyTo be able to use it, you will need these dependencies in your own package that uses this library:-- urllib3 >= 1.25.3-- python-dateutil-- aiohttp-- pydantic-- aenum+* urllib3 >= 1.25.3+* python-dateutil+* aiohttp+* pydantic+* aenum## Getting Started@@ -31,8 +30,10 @@ you can run the following:```python+import timeimport e2b.api.clientfrom e2b.api.client.rest import ApiException+from pprint import pprint# Defining the host is optional and defaults to https://ondevbook.com# See configuration.py for a list of all supported configuration parameters.@@ -58,46 +59,50 @@ async with e2b.api.client.ApiClient(configuration) as api_client:All URIs are relative to *https://ondevbook.com*-| Class | Method | HTTP request | Description |-| ------------- | ----------------------------------------------------------------------------------------------------------- | -------------------------------------- | ----------- |-| _DefaultApi_ | [**health_get**](e2b/api/client/docs/DefaultApi.md#health_get) | **GET** /health |-| _EnvsApi_ | [**envs_code_snippet_id_delete**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_delete) | **DELETE** /envs/{codeSnippetID} |-| _EnvsApi_ | [**envs_code_snippet_id_patch**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_patch) | **PATCH** /envs/{codeSnippetID} |-| _EnvsApi_ | [**envs_code_snippet_id_post**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_post) | **POST** /envs/{codeSnippetID} |-| _EnvsApi_ | [**envs_code_snippet_id_state_put**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_state_put) | **PUT** /envs/{codeSnippetID}/state |-| _EnvsApi_ | [**envs_code_snippet_id_title_put**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_title_put) | **PUT** /envs/{codeSnippetID}/title |-| _EnvsApi_ | [**envs_get**](e2b/api/client/docs/EnvsApi.md#envs_get) | **GET** /envs |-| _EnvsApi_ | [**envs_post**](e2b/api/client/docs/EnvsApi.md#envs_post) | **POST** /envs |-| _SessionsApi_ | [**sessions_get**](e2b/api/client/docs/SessionsApi.md#sessions_get) | **GET** /sessions |-| _SessionsApi_ | [**sessions_post**](e2b/api/client/docs/SessionsApi.md#sessions_post) | **POST** /sessions |-| _SessionsApi_ | [**sessions_session_id_delete**](e2b/api/client/docs/SessionsApi.md#sessions_session_id_delete) | **DELETE** /sessions/{sessionID} |-| _SessionsApi_ | [**sessions_session_id_refresh_post**](e2b/api/client/docs/SessionsApi.md#sessions_session_id_refresh_post) | **POST** /sessions/{sessionID}/refresh |+Class | Method | HTTP request | Description+------------ | ------------- | ------------- | -------------+*DefaultApi* | [**health_get**](e2b/api/client/docs/DefaultApi.md#health_get) | **GET** /health |+*EnvsApi* | [**envs_code_snippet_id_delete**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_delete) | **DELETE** /envs/{codeSnippetID} |+*EnvsApi* | [**envs_code_snippet_id_patch**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_patch) | **PATCH** /envs/{codeSnippetID} |+*EnvsApi* | [**envs_code_snippet_id_post**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_post) | **POST** /envs/{codeSnippetID} |+*EnvsApi* | [**envs_code_snippet_id_state_put**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_state_put) | **PUT** /envs/{codeSnippetID}/state |+*EnvsApi* | [**envs_code_snippet_id_title_put**](e2b/api/client/docs/EnvsApi.md#envs_code_snippet_id_title_put) | **PUT** /envs/{codeSnippetID}/title |+*EnvsApi* | [**envs_get**](e2b/api/client/docs/EnvsApi.md#envs_get) | **GET** /envs |+*EnvsApi* | [**envs_post**](e2b/api/client/docs/EnvsApi.md#envs_post) | **POST** /envs |+*SessionsApi* | [**sessions_get**](e2b/api/client/docs/SessionsApi.md#sessions_get) | **GET** /sessions |+*SessionsApi* | [**sessions_post**](e2b/api/client/docs/SessionsApi.md#sessions_post) | **POST** /sessions |+*SessionsApi* | [**sessions_session_id_delete**](e2b/api/client/docs/SessionsApi.md#sessions_session_id_delete) | **DELETE** /sessions/{sessionID} |+*SessionsApi* | [**sessions_session_id_refresh_post**](e2b/api/client/docs/SessionsApi.md#sessions_session_id_refresh_post) | **POST** /sessions/{sessionID}/refresh |+## Documentation For Models-- [Environment](e2b/api/client/docs/Environment.md)-- [EnvironmentState](e2b/api/client/docs/EnvironmentState.md)-- [EnvironmentStateUpdate](e2b/api/client/docs/EnvironmentStateUpdate.md)-- [EnvironmentTitleUpdate](e2b/api/client/docs/EnvironmentTitleUpdate.md)-- [EnvsGet200ResponseInner](e2b/api/client/docs/EnvsGet200ResponseInner.md)-- [Error](e2b/api/client/docs/Error.md)-- [NewEnvironment](e2b/api/client/docs/NewEnvironment.md)-- [NewSession](e2b/api/client/docs/NewSession.md)-- [Session](e2b/api/client/docs/Session.md)-- [SessionsGet200ResponseInner](e2b/api/client/docs/SessionsGet200ResponseInner.md)-- [Template](e2b/api/client/docs/Template.md)+ - [Environment](e2b/api/client/docs/Environment.md)+ - [EnvironmentState](e2b/api/client/docs/EnvironmentState.md)+ - [EnvironmentStateUpdate](e2b/api/client/docs/EnvironmentStateUpdate.md)+ - [EnvironmentTitleUpdate](e2b/api/client/docs/EnvironmentTitleUpdate.md)+ - [Error](e2b/api/client/docs/Error.md)+ - [NewEnvironment](e2b/api/client/docs/NewEnvironment.md)+ - [NewSession](e2b/api/client/docs/NewSession.md)+ - [Session](e2b/api/client/docs/Session.md)+ - [Template](e2b/api/client/docs/Template.md)-<a id="documentation-for-authorization"></a>+<a id="documentation-for-authorization"></a>## Documentation For Authorization+Authentication schemes defined for the API:<a id="ApiKeyAuth"></a>-### ApiKeyAuth- **Type**: API key- **API key parameter name**: api_key- **Location**: URL query string+## Author++++diff --git a/packages/python-sdk/e2b/session/filesystem.py b/packages/python-sdk/e2b/session/filesystem.pyindex 2c3bdb011..921f30455 100644--- a/packages/python-sdk/e2b/session/filesystem.py+++ b/packages/python-sdk/e2b/session/filesystem.py@@ -110,7 +110,9 @@ class FilesystemManager:except RpcException as e:raise FilesystemException(e.message) from e- async def list(self, path: str, timeout: Optional[float] = TIMEOUT) -> List[FileInfo]:+ async def list(+ self, path: str, timeout: Optional[float] = TIMEOUT+ ) -> List[FileInfo]:"""List files in a directory.diff --git a/packages/python-sdk/e2b/session/session_connection.py b/packages/python-sdk/e2b/session/session_connection.pyindex be32b5656..93ef2c008 100644--- a/packages/python-sdk/e2b/session/session_connection.py+++ b/packages/python-sdk/e2b/session/session_connection.py@@ -129,9 +129,7 @@ class SessionConnection:await self._rpc.close()self._close()- logger.info(- f"Session closed"- )+ logger.info(f"Session closed")def _close(self):if self._on_close_child:diff --git a/packages/python-sdk/e2b/session/websocket_client.py b/packages/python-sdk/e2b/session/websocket_client.pyindex 4fb559544..2b8c2f9e3 100644--- a/packages/python-sdk/e2b/session/websocket_client.py+++ b/packages/python-sdk/e2b/session/websocket_client.py@@ -16,12 +16,12 @@ logger = logging.getLogger(__name__)class WebSocket:def __init__(- self,- url: str,- started: Event,- stopped: Event,- queue_in: Queue[dict],- queue_out: JanusQueue[Data],+ self,+ url: str,+ started: Event,+ stopped: Event,+ queue_in: Queue[dict],+ queue_out: JanusQueue[Data],):self._ws: Optional[WebSocketClientProtocol] = Noneself.url = urldiff --git a/packages/python-sdk/example.py b/packages/python-sdk/example.pyindex 4baf17c65..0fd7be008 100644--- a/packages/python-sdk/example.py+++ b/packages/python-sdk/example.py@@ -13,8 +13,6 @@ async def main():s = Session("Nodejs")await s.open()--await s.close()returndiff --git a/packages/python-sdk/poetry.lock b/packages/python-sdk/poetry.lockindex e62f8b413..7ba1b3417 100644--- a/packages/python-sdk/poetry.lock+++ b/packages/python-sdk/poetry.lock@@ -134,6 +134,20 @@ files = [[package.dependencies]frozenlist = ">=1.1.0"+[[package]]+name = "annotated-types"+version = "0.5.0"+description = "Reusable constraint types to use with typing.Annotated"+optional = false+python-versions = ">=3.7"+files = [+ {file = "annotated_types-0.5.0-py3-none-any.whl", hash = "sha256:58da39888f92c276ad970249761ebea80ba544b77acddaa1a4d6cf78287d45fd"},+ {file = "annotated_types-0.5.0.tar.gz", hash = "sha256:47cdc3490d9ac1506ce92c7aaa76c579dc3509ff11e098fc867e5130ab7be802"},+]++[package.dependencies]+typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.9\""}+[[package]]name = "async-timeout"version = "4.0.3"@@ -165,33 +179,33 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte[[package]]name = "black"-version = "23.7.0"+version = "23.9.1"description = "The uncompromising code formatter."optional = falsepython-versions = ">=3.8"files = [- {file = "black-23.7.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:5c4bc552ab52f6c1c506ccae05681fab58c3f72d59ae6e6639e8885e94fe2587"},- {file = "black-23.7.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:552513d5cd5694590d7ef6f46e1767a4df9af168d449ff767b13b084c020e63f"},- {file = "black-23.7.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:86cee259349b4448adb4ef9b204bb4467aae74a386bce85d56ba4f5dc0da27be"},- {file = "black-23.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:501387a9edcb75d7ae8a4412bb8749900386eaef258f1aefab18adddea1936bc"},- {file = "black-23.7.0-cp310-cp310-win_amd64.whl", hash = "sha256:fb074d8b213749fa1d077d630db0d5f8cc3b2ae63587ad4116e8a436e9bbe995"},- {file = "black-23.7.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:b5b0ee6d96b345a8b420100b7d71ebfdd19fab5e8301aff48ec270042cd40ac2"},- {file = "black-23.7.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:893695a76b140881531062d48476ebe4a48f5d1e9388177e175d76234ca247cd"},- {file = "black-23.7.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:c333286dc3ddca6fdff74670b911cccedacb4ef0a60b34e491b8a67c833b343a"},- {file = "black-23.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:831d8f54c3a8c8cf55f64d0422ee875eecac26f5f649fb6c1df65316b67c8926"},- {file = "black-23.7.0-cp311-cp311-win_amd64.whl", hash = "sha256:7f3bf2dec7d541b4619b8ce526bda74a6b0bffc480a163fed32eb8b3c9aed8ad"},- {file = "black-23.7.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:f9062af71c59c004cd519e2fb8f5d25d39e46d3af011b41ab43b9c74e27e236f"},- {file = "black-23.7.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:01ede61aac8c154b55f35301fac3e730baf0c9cf8120f65a9cd61a81cfb4a0c3"},- {file = "black-23.7.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:327a8c2550ddc573b51e2c352adb88143464bb9d92c10416feb86b0f5aee5ff6"},- {file = "black-23.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1c6022b86f83b632d06f2b02774134def5d4d4f1dac8bef16d90cda18ba28a"},- {file = "black-23.7.0-cp38-cp38-win_amd64.whl", hash = "sha256:27eb7a0c71604d5de083757fbdb245b1a4fae60e9596514c6ec497eb63f95320"},- {file = "black-23.7.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:8417dbd2f57b5701492cd46edcecc4f9208dc75529bcf76c514864e48da867d9"},- {file = "black-23.7.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:47e56d83aad53ca140da0af87678fb38e44fd6bc0af71eebab2d1f59b1acf1d3"},- {file = "black-23.7.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:25cc308838fe71f7065df53aedd20327969d05671bac95b38fdf37ebe70ac087"},- {file = "black-23.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:642496b675095d423f9b8448243336f8ec71c9d4d57ec17bf795b67f08132a91"},- {file = "black-23.7.0-cp39-cp39-win_amd64.whl", hash = "sha256:ad0014efc7acf0bd745792bd0d8857413652979200ab924fbf239062adc12491"},- {file = "black-23.7.0-py3-none-any.whl", hash = "sha256:9fd59d418c60c0348505f2ddf9609c1e1de8e7493eab96198fc89d9f865e7a96"},- {file = "black-23.7.0.tar.gz", hash = "sha256:022a582720b0d9480ed82576c920a8c1dde97cc38ff11d8d8859b3bd6ca9eedb"},+ {file = "black-23.9.1-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:d6bc09188020c9ac2555a498949401ab35bb6bf76d4e0f8ee251694664df6301"},+ {file = "black-23.9.1-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:13ef033794029b85dfea8032c9d3b92b42b526f1ff4bf13b2182ce4e917f5100"},+ {file = "black-23.9.1-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:75a2dc41b183d4872d3a500d2b9c9016e67ed95738a3624f4751a0cb4818fe71"},+ {file = "black-23.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13a2e4a93bb8ca74a749b6974925c27219bb3df4d42fc45e948a5d9feb5122b7"},+ {file = "black-23.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:adc3e4442eef57f99b5590b245a328aad19c99552e0bdc7f0b04db6656debd80"},+ {file = "black-23.9.1-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:8431445bf62d2a914b541da7ab3e2b4f3bc052d2ccbf157ebad18ea126efb91f"},+ {file = "black-23.9.1-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:8fc1ddcf83f996247505db6b715294eba56ea9372e107fd54963c7553f2b6dfe"},+ {file = "black-23.9.1-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:7d30ec46de88091e4316b17ae58bbbfc12b2de05e069030f6b747dfc649ad186"},+ {file = "black-23.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:031e8c69f3d3b09e1aa471a926a1eeb0b9071f80b17689a655f7885ac9325a6f"},+ {file = "black-23.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:538efb451cd50f43aba394e9ec7ad55a37598faae3348d723b59ea8e91616300"},+ {file = "black-23.9.1-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:638619a559280de0c2aa4d76f504891c9860bb8fa214267358f0a20f27c12948"},+ {file = "black-23.9.1-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:a732b82747235e0542c03bf352c126052c0fbc458d8a239a94701175b17d4855"},+ {file = "black-23.9.1-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:cf3a4d00e4cdb6734b64bf23cd4341421e8953615cba6b3670453737a72ec204"},+ {file = "black-23.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cf99f3de8b3273a8317681d8194ea222f10e0133a24a7548c73ce44ea1679377"},+ {file = "black-23.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:14f04c990259576acd093871e7e9b14918eb28f1866f91968ff5524293f9c573"},+ {file = "black-23.9.1-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:c619f063c2d68f19b2d7270f4cf3192cb81c9ec5bc5ba02df91471d0b88c4c5c"},+ {file = "black-23.9.1-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:6a3b50e4b93f43b34a9d3ef00d9b6728b4a722c997c99ab09102fd5efdb88325"},+ {file = "black-23.9.1-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:c46767e8df1b7beefb0899c4a95fb43058fa8500b6db144f4ff3ca38eb2f6393"},+ {file = "black-23.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50254ebfa56aa46a9fdd5d651f9637485068a1adf42270148cd101cdf56e0ad9"},+ {file = "black-23.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:403397c033adbc45c2bd41747da1f7fc7eaa44efbee256b53842470d4ac5a70f"},+ {file = "black-23.9.1-py3-none-any.whl", hash = "sha256:6ccd59584cc834b6d127628713e4b6b968e5f79572da66284532525a042549f9"},+ {file = "black-23.9.1.tar.gz", hash = "sha256:24b6b3ff5c6d9ea08a8888f6977eae858e1f340d7260cf56d70a49823236b62d"},][package.dependencies]@@ -201,7 +215,7 @@ packaging = ">=22.0"pathspec = ">=0.9.0"platformdirs = ">=2"tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}-typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}+typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""}[package.extras]colorama = ["colorama (>=0.4.3)"]@@ -633,65 +647,150 @@ files = [[[package]]name = "pydantic"-version = "1.10.12"-description = "Data validation and settings management using python type hints"+version = "2.4.0"+description = "Data validation using Python type hints"optional = falsepython-versions = ">=3.7"files = [- {file = "pydantic-1.10.12-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a1fcb59f2f355ec350073af41d927bf83a63b50e640f4dbaa01053a28b7a7718"},- {file = "pydantic-1.10.12-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b7ccf02d7eb340b216ec33e53a3a629856afe1c6e0ef91d84a4e6f2fb2ca70fe"},- {file = "pydantic-1.10.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8fb2aa3ab3728d950bcc885a2e9eff6c8fc40bc0b7bb434e555c215491bcf48b"},- {file = "pydantic-1.10.12-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:771735dc43cf8383959dc9b90aa281f0b6092321ca98677c5fb6125a6f56d58d"},- {file = "pydantic-1.10.12-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ca48477862372ac3770969b9d75f1bf66131d386dba79506c46d75e6b48c1e09"},- {file = "pydantic-1.10.12-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a5e7add47a5b5a40c49b3036d464e3c7802f8ae0d1e66035ea16aa5b7a3923ed"},- {file = "pydantic-1.10.12-cp310-cp310-win_amd64.whl", hash = "sha256:e4129b528c6baa99a429f97ce733fff478ec955513630e61b49804b6cf9b224a"},- {file = "pydantic-1.10.12-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b0d191db0f92dfcb1dec210ca244fdae5cbe918c6050b342d619c09d31eea0cc"},- {file = "pydantic-1.10.12-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:795e34e6cc065f8f498c89b894a3c6da294a936ee71e644e4bd44de048af1405"},- {file = "pydantic-1.10.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:69328e15cfda2c392da4e713443c7dbffa1505bc9d566e71e55abe14c97ddc62"},- {file = "pydantic-1.10.12-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2031de0967c279df0d8a1c72b4ffc411ecd06bac607a212892757db7462fc494"},- {file = "pydantic-1.10.12-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:ba5b2e6fe6ca2b7e013398bc7d7b170e21cce322d266ffcd57cca313e54fb246"},- {file = "pydantic-1.10.12-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:2a7bac939fa326db1ab741c9d7f44c565a1d1e80908b3797f7f81a4f86bc8d33"},- {file = "pydantic-1.10.12-cp311-cp311-win_amd64.whl", hash = "sha256:87afda5539d5140cb8ba9e8b8c8865cb5b1463924d38490d73d3ccfd80896b3f"},- {file = "pydantic-1.10.12-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:549a8e3d81df0a85226963611950b12d2d334f214436a19537b2efed61b7639a"},- {file = "pydantic-1.10.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:598da88dfa127b666852bef6d0d796573a8cf5009ffd62104094a4fe39599565"},- {file = "pydantic-1.10.12-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ba5c4a8552bff16c61882db58544116d021d0b31ee7c66958d14cf386a5b5350"},- {file = "pydantic-1.10.12-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:c79e6a11a07da7374f46970410b41d5e266f7f38f6a17a9c4823db80dadf4303"},- {file = "pydantic-1.10.12-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ab26038b8375581dc832a63c948f261ae0aa21f1d34c1293469f135fa92972a5"},- {file = "pydantic-1.10.12-cp37-cp37m-win_amd64.whl", hash = "sha256:e0a16d274b588767602b7646fa05af2782576a6cf1022f4ba74cbb4db66f6ca8"},- {file = "pydantic-1.10.12-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6a9dfa722316f4acf4460afdf5d41d5246a80e249c7ff475c43a3a1e9d75cf62"},- {file = "pydantic-1.10.12-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a73f489aebd0c2121ed974054cb2759af8a9f747de120acd2c3394cf84176ccb"},- {file = "pydantic-1.10.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b30bcb8cbfccfcf02acb8f1a261143fab622831d9c0989707e0e659f77a18e0"},- {file = "pydantic-1.10.12-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2fcfb5296d7877af406ba1547dfde9943b1256d8928732267e2653c26938cd9c"},- {file = "pydantic-1.10.12-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:2f9a6fab5f82ada41d56b0602606a5506aab165ca54e52bc4545028382ef1c5d"},- {file = "pydantic-1.10.12-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:dea7adcc33d5d105896401a1f37d56b47d443a2b2605ff8a969a0ed5543f7e33"},- {file = "pydantic-1.10.12-cp38-cp38-win_amd64.whl", hash = "sha256:1eb2085c13bce1612da8537b2d90f549c8cbb05c67e8f22854e201bde5d98a47"},- {file = "pydantic-1.10.12-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ef6c96b2baa2100ec91a4b428f80d8f28a3c9e53568219b6c298c1125572ebc6"},- {file = "pydantic-1.10.12-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6c076be61cd0177a8433c0adcb03475baf4ee91edf5a4e550161ad57fc90f523"},- {file = "pydantic-1.10.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2d5a58feb9a39f481eda4d5ca220aa8b9d4f21a41274760b9bc66bfd72595b86"},- {file = "pydantic-1.10.12-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5f805d2d5d0a41633651a73fa4ecdd0b3d7a49de4ec3fadf062fe16501ddbf1"},- {file = "pydantic-1.10.12-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:1289c180abd4bd4555bb927c42ee42abc3aee02b0fb2d1223fb7c6e5bef87dbe"},- {file = "pydantic-1.10.12-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5d1197e462e0364906cbc19681605cb7c036f2475c899b6f296104ad42b9f5fb"},- {file = "pydantic-1.10.12-cp39-cp39-win_amd64.whl", hash = "sha256:fdbdd1d630195689f325c9ef1a12900524dceb503b00a987663ff4f58669b93d"},- {file = "pydantic-1.10.12-py3-none-any.whl", hash = "sha256:b749a43aa51e32839c9d71dc67eb1e4221bb04af1033a32e3923d46f9effa942"},- {file = "pydantic-1.10.12.tar.gz", hash = "sha256:0fe8a415cea8f340e7a9af9c54fc71a649b43e8ca3cc732986116b3cb135d303"},+ {file = "pydantic-2.4.0-py3-none-any.whl", hash = "sha256:909b2b7d7be775a890631218e8c4b6b5418c9b6c57074ae153e5c09b73bf06a3"},+ {file = "pydantic-2.4.0.tar.gz", hash = "sha256:54216ccb537a606579f53d7f6ed912e98fffce35aff93b25cd80b1c2ca806fc3"},][package.dependencies]-typing-extensions = ">=4.2.0"+annotated-types = ">=0.4.0"+pydantic-core = "2.10.0"+typing-extensions = ">=4.6.1"[package.extras]-dotenv = ["python-dotenv (>=0.10.4)"]-email = ["email-validator (>=1.0.3)"]+email = ["email-validator (>=2.0.0)"]++[[package]]+name = "pydantic-core"+version = "2.10.0"+description = ""+optional = false+python-versions = ">=3.7"+files = [+ {file = "pydantic_core-2.10.0-cp310-cp310-macosx_10_7_x86_64.whl", hash = "sha256:daea90360d99ad06a3f686b3e628222ac3aa953b1982f13be5b69b2648c5e6bb"},+ {file = "pydantic_core-2.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5f76cb8d68d87fd05e56aba392c841d98eeb3ad378bcf5331b42bac7afee0d66"},+ {file = "pydantic_core-2.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5e816d042f80dd630aaedbc75c21084da9e1d7ea5918619b8089c7edaedd57e8"},+ {file = "pydantic_core-2.10.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7192492b09c1e4ad103e5cb98eb397f9b61a9037fce03e94cafe3238404dbe0f"},+ {file = "pydantic_core-2.10.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:312831c5bf50d9d432c11baf9bbd8d8961740608ccbc66fb1290d532aff21b18"},+ {file = "pydantic_core-2.10.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:873db84afcbcf3f1ed0040ed9c5534bc1af5d647d13c04be12f3568421f5dd3e"},+ {file = "pydantic_core-2.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0aa8bdc2d78afadd191148726f094be81d5e4b76011f8fa9300f317e06a1b732"},+ {file = "pydantic_core-2.10.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7cbf77664099345a25932ebe25d7bf9a330fc29acd9a909e8751ac0c42097fb3"},+ {file = "pydantic_core-2.10.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:a537e87ca600e59e532fbc770a60f9f3a5ebcff9bae8c60aceeec5beb326e1b8"},+ {file = "pydantic_core-2.10.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ed5f8d6cb834c80fb813d233f9bfb60d3453b7450c80c0814b8e78c23d1ea8bf"},+ {file = "pydantic_core-2.10.0-cp310-none-win32.whl", hash = "sha256:0e210107faf47d5965fcebc294c41891573adab36e5cf70731c57d0068fc7c5c"},+ {file = "pydantic_core-2.10.0-cp310-none-win_amd64.whl", hash = "sha256:9527cf9c25fd655617620c8d6cb43216c0ce5779871ab7f83175421267b85199"},+ {file = "pydantic_core-2.10.0-cp311-cp311-macosx_10_7_x86_64.whl", hash = "sha256:ab2d56dfa13244164f0ba8125d8315c799fa0150459b88fc42ed5c1e3c04d47a"},+ {file = "pydantic_core-2.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d1e79893a20207ff671f13f5562c1f0aaece030e6e30252683f536286ba89864"},+ {file = "pydantic_core-2.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:030ba2f59e78c8732445d8c9f093579674f2b5b93b3960945face14ec2e82682"},+ {file = "pydantic_core-2.10.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:705fad71297dfedc5c9e3c935702864aa0cc7812be11ac544f152677ba6ea430"},+ {file = "pydantic_core-2.10.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:394a8ce4a7495af8dbf33038daf57a6170be15f8d1d92a7b63c6f2211527d950"},+ {file = "pydantic_core-2.10.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:19c7aa3c0ff08ddc91597d8af08f8c4de59b27fe752b3bd1db9a67f6f08c4020"},+ {file = "pydantic_core-2.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb204346d3eda4e0c63cbeeec6398a52682ac51f9cf7379a13505863e47d3186"},+ {file = "pydantic_core-2.10.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b1fefe63baa04f1d9dd5b4564b1e73d133e1c745589933d7ef9718235915cc81"},+ {file = "pydantic_core-2.10.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:fa4bd88165d860111e860e8b43efd97afd137a9165cf24eb3cfb2371f57452bf"},+ {file = "pydantic_core-2.10.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9e21ab9c49cc58282c228ff89fb4a5e4b447233ccd53acb7f333d1cde58df37b"},+ {file = "pydantic_core-2.10.0-cp311-none-win32.whl", hash = "sha256:2a6f28e2b2a5cef3b52b5ac6c6d64fe810ca51ec57081554f447c818778eea09"},+ {file = "pydantic_core-2.10.0-cp311-none-win_amd64.whl", hash = "sha256:f94539aa4265ab5528d8c3dc4505a19369083c29d0713b8ed536f93b9bc1e94f"},+ {file = "pydantic_core-2.10.0-cp311-none-win_arm64.whl", hash = "sha256:2352f7cb8ef0cd21fbc582abe2a14105d7e8400f97a551ca2e3b05dee77525d2"},+ {file = "pydantic_core-2.10.0-cp312-cp312-macosx_10_7_x86_64.whl", hash = "sha256:c2a126c7271a9421005a0f57cf71294ad49c375e4d0a9198b93665796f49e7f7"},+ {file = "pydantic_core-2.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7440933341f655a64456065211cf7657c3cf3524d5b0b02f5d9b63ef5a7e0d49"},+ {file = "pydantic_core-2.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:85d8225cd08aacb8a2843cf0a0a72f1c403c6ac6f18d4cfeecabe050f80c9ea3"},+ {file = "pydantic_core-2.10.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:573e89b3da5908f564ae54b6284e20b490158681e91e1776a59dfda17ec0a6a8"},+ {file = "pydantic_core-2.10.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0061965942489e6da23f0399b1136fd10eff0a4f0cefae13369eba1776e22a6"},+ {file = "pydantic_core-2.10.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:725f0276402773a6b61b6f67bf9562f37ba08a8bfebdfb9990eea786ed5711b2"},+ {file = "pydantic_core-2.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:25cacd12689b1a357ae6212c7f5980ebf487720db5bbf1bb5d91085226b6a962"},+ {file = "pydantic_core-2.10.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e70c6c882ab101a72010c8f91e87db211fa2aaf6aa51acc7160fe5649630ed75"},+ {file = "pydantic_core-2.10.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:e079540fd4c45c23de4465cafb20cddcd8befe3b5f46505a2eb28e49b9d13ee2"},+ {file = "pydantic_core-2.10.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:98474284adb71c8738e5efb71ccb1382d8d66f042ad0875018c78bcb38ac0f47"},+ {file = "pydantic_core-2.10.0-cp312-none-win32.whl", hash = "sha256:ab1fa046ef9058ceef941b576c5e7711bab3d99be00a304fb4726cf4b94e05ff"},+ {file = "pydantic_core-2.10.0-cp312-none-win_amd64.whl", hash = "sha256:b4df023610af081d6da85328411fed7aacf19e939fe955bb31f29212f8dcf306"},+ {file = "pydantic_core-2.10.0-cp312-none-win_arm64.whl", hash = "sha256:f1a70f99d1a7270d4f321a8824e87d5b88acd64c2af6049915b7fd8215437e04"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-macosx_10_7_x86_64.whl", hash = "sha256:f622778eb180cf7eba25e65d2fe37a57a0eadd8403df4c44606b56d204f686de"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-macosx_11_0_arm64.whl", hash = "sha256:fb513fc74bdf5f649e6e855fc87ed9b81ee8b0be96717190f9e00683244f0616"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:82c3f0752547f928e4fcfb00151d6deb9124be7d35e012c567429fe93ec71b71"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:100bbd622433d9d7ca8ee4fa63dfae90f9f38358558955173aed6ed56c573db8"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8f919d17581fdf6e71ff3d3fe4b02ed32aaa0429e0b4346798de7a1361e098ef"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f32df1d8d383e1b729674ad1053d8f43f7ed79848496d3cb6ca81a906318317b"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ab4d279c480e83c516e4e0b7b1f882f168f614d9c62e18ab779edef0cd13aaa9"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c394e9ed6f9e6f4af3618c34bc15f2af4237f7d1989b7f45588f8e855bc10e08"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:bc0a33779fded534ff0b5d8ef766a1c94d3e740877ea8adab65cbf1878ba03b4"},+ {file = "pydantic_core-2.10.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:c1041d8fcd313c68b77dec6a16bf1d690008270b50eec11e96d89e1b4ba756b1"},+ {file = "pydantic_core-2.10.0-cp37-none-win32.whl", hash = "sha256:68992f78507e95ed63ca87b8b177785d9806cde34ca3a9f98382188dd11d8720"},+ {file = "pydantic_core-2.10.0-cp37-none-win_amd64.whl", hash = "sha256:aa45f0846773cb142252ccef66b096d917bb76c6ef9da1aa747e6b44aa318192"},+ {file = "pydantic_core-2.10.0-cp38-cp38-macosx_10_7_x86_64.whl", hash = "sha256:a04054b91afc41282a0a7426147654849136b37a41da86412d4ff5ba51b9cd2f"},+ {file = "pydantic_core-2.10.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:1c1bfa2ca352bf43d34b7099f8ed675deb88113bd36c76880f4ca18fc0d3af50"},+ {file = "pydantic_core-2.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ba288fa675b2951e7898ebfdd8defa0e958e514d4d1cc7a5f6a8d627378c0c47"},+ {file = "pydantic_core-2.10.0-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fbba90179672707ab69ad19ef7d3c3f0a8e2f0a0579f0eb79649ffcdacf476d0"},+ {file = "pydantic_core-2.10.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7c6915a9b3dd16e016dba7e76070e667eca50530f957daa5b78c73abbf281b25"},+ {file = "pydantic_core-2.10.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e72c1e06a20c10b9c5f7a3fe09ec46e0e208c65a69d2efb92a3e1b64443e6c3"},+ {file = "pydantic_core-2.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0b50848d1a614093c05c97d0fdf841ef547d8c087fbd06f6eafe8ef1d836d6c1"},+ {file = "pydantic_core-2.10.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ad7b5f4352f3dfcc481b008bce3b3931a485a93112deaa0a25bee2817d3f7b98"},+ {file = "pydantic_core-2.10.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:66c0169457733a4dfe72be51dd359414eddd0738b15dda07827f18a10e9f6ab7"},+ {file = "pydantic_core-2.10.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e24d92d3a60d6eb19a1bd0f1f259369f478e0f34412a33e794da6cdaa36218be"},+ {file = "pydantic_core-2.10.0-cp38-none-win32.whl", hash = "sha256:30c5df611afc5a9f2ad48babe2192f9cf0d12ed6c0dd5eb57b3538491c113737"},+ {file = "pydantic_core-2.10.0-cp38-none-win_amd64.whl", hash = "sha256:d72a561d7c0738ae5d05a709c739b2953d05e18151539750ca9622f3438de041"},+ {file = "pydantic_core-2.10.0-cp39-cp39-macosx_10_7_x86_64.whl", hash = "sha256:7cecd7669b1ebee8ae90f5aa7d459770b6e79db7b95983aacc5b7392a050b9ab"},+ {file = "pydantic_core-2.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:923000ea46def1bdded511b5792ec19866909797a05dc8f75342c6a9cacb2d66"},+ {file = "pydantic_core-2.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:729a2fc4bc1564d164258eaf138ab4c03baa2080a5e3f91a9b3cb2d758248b8f"},+ {file = "pydantic_core-2.10.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6930eaf3aa2ba660ed3f64206902a534f454f9954e5de06354e20d890bebbd8a"},+ {file = "pydantic_core-2.10.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d0b17e8d08a1c94efb91d8d389ec76a32fc3f85ba06626b5ef0c2d6bffcbe066"},+ {file = "pydantic_core-2.10.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c61755149ba534123ae08e6aa814aa34f47c6ba45a622ea98ddd7860b5312767"},+ {file = "pydantic_core-2.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22b126893f53c789ad2253c9288a59362171a5bafbb865190c43d430dc805edb"},+ {file = "pydantic_core-2.10.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:776eee60ca8ca3de83add0fb95a0034ac965a12590bb22ec09b05c87870ba401"},+ {file = "pydantic_core-2.10.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b1496f38e49c7960461002768c5f4c9ba9720fe259cd5c8b229cd0b3b0861844"},+ {file = "pydantic_core-2.10.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:cd175beab2ac845a90d31bb4ea8e6c1e8be12efaf14b9918d0ab4828dd3c916b"},+ {file = "pydantic_core-2.10.0-cp39-none-win32.whl", hash = "sha256:391805e8a4ad731e729a22d8e14bad2d724915d28618be6c66dc7ccb421a13a0"},+ {file = "pydantic_core-2.10.0-cp39-none-win_amd64.whl", hash = "sha256:7e2360b86b21e2aab8d4f1ce2551e2b731bc30610b7cc9324ea7517af4375b08"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-macosx_10_7_x86_64.whl", hash = "sha256:b40221d1490f2c6e488d2576773a574d42436b5aba1faed91f59a9feb82c384b"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:9f3b25201efe20d182f3bd6fe8d99685f4ed01cac67b79c017c9cf688b747263"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34a45943bb14275e9681fd4abafbe3acae1e7dac7248bebf38ac5bde492e00f7"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc5be7a29a6b25a186941e9e2b5f9281c05723628e1fdb244f429f4c1682ff49"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:17460ffd8f8e49ca52711b4926fefe2b336d01b63dc27aee432a576c2147c8ce"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:c1ab3701d660bd136a22e1ca95292bfed50245eb869adaee2e08f29d4dd5e360"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:09ac18617199704327d99c85893d697b8442c18b8c2db1ea636ba83313223541"},+ {file = "pydantic_core-2.10.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:e3f69d48191103587950981cf47c936064c808b6c18f57e745ed130a305c73a6"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-macosx_10_7_x86_64.whl", hash = "sha256:792af9e4f78d6f1d0aabfb95162c5ed56b5369b25350eaa68b1495e8f675d4d9"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1ecd28fb4c98c97836046d092029017bcc35e060ea547484aa1234b8a592de17"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4a622a8abf656cc51960766fa4d194504e8a9f85ae48032f87fb42c79462c7b8"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:52eb5c61de017bfee422f6aa9a3e76de5aa5a9189ba808bba63b9de67e55c4ca"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:69772dcdcf90b677d0d2ecedafe4c6a610572f1fad15912cde28a6f8eb5654fd"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:12470a4de172aaa1bbadb45744de4a9b0298fa8f974eb508314c3b5da0cb4aed"},+ {file = "pydantic_core-2.10.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:f9f2c70257f03db712658d4138e2b892bdd7c71472783eaebc2813a47fd29ef3"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-macosx_10_7_x86_64.whl", hash = "sha256:8a5323d6778931ab1b3b22bac05fb7c961786d3b04a6c84f7c0ffcc331b4b998"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:5f00e83aa9aebbfd4382695a5ed94e6282ac01455fbb1a37d99d2effa29df30f"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c871820c60fc863c7b3f660612af6ce5bb8f5f69d6364f208e29d2ca7992d154"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c1bcb1b9b33573eeef218ffb3a2910c57fedc8831caf3c942e68a2222481d2cc"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d122a46c360c8069f7ac39c6f2c29cf99436baa48ba1e28ea5443336e9bbb838"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3ffb2a3462bb7905c4d849b95f536ac1f3948e92f5e0fc7e65bd3f3b0d132cf4"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:b5d4eec8aba25b163a4d9dcc6be8354bc8f939040bc15a6400cbd62ba0511a5f"},+ {file = "pydantic_core-2.10.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:5cbfe4cd608cf6d032374961e4e07d0506acfaec7b1a69beade1d5f98dce00fd"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-macosx_10_7_x86_64.whl", hash = "sha256:02b3d546342e7f583bf58f4a4618c7e97f44426db2358789393537dd4e9a921d"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:7820faf076216654ae54ad8a8443a296faaac9057a49ff404ce92ab85c9518a3"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f114130c44ae52b3bd2450dac8e1d3e1e92a92baecb24dbcdb6de2d2fc15bdb5"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9f6f70680c15876c583a24bd476e49004327e87392be0282aedbc65773519ea8"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3f230d70be54447e12fcd0f1c2319dac74341244fafd2350d5675aa194f6c3f4"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:96b3007451863b46e8138f8096ef31aea6f7721a9910843b0554ce4ae17024a2"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:b196c4ace34be6c2953c6ec3906d1af88c418b93325d612d7f900ed30bf1e0ac"},+ {file = "pydantic_core-2.10.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:5958b1af7acd7b4a629e9758ce54a31c1910695e85e0ef847ba3daa4f25a0a08"},+ {file = "pydantic_core-2.10.0.tar.gz", hash = "sha256:8fe66506700efdfc699c613ccc4974ac7d8fceed8c74983e55ec380504db2e05"},+]++[package.dependencies]+typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0"[[package]]name = "pytest"-version = "7.4.0"+version = "7.4.2"description = "pytest: simple powerful testing with Python"optional = falsepython-versions = ">=3.7"files = [- {file = "pytest-7.4.0-py3-none-any.whl", hash = "sha256:78bf16451a2eb8c7a2ea98e32dc119fd2aa758f1d5d66dbf0a59d69a3969df32"},- {file = "pytest-7.4.0.tar.gz", hash = "sha256:b4bf8c45bd59934ed84001ad51e11b4ee40d40a1229d2c79f9c592b0a3f6bd8a"},+ {file = "pytest-7.4.2-py3-none-any.whl", hash = "sha256:1d881c6124e08ff0a1bb75ba3ec0bfd8b5354a01c194ddd5a0a870a48d99b002"},+ {file = "pytest-7.4.2.tar.gz", hash = "sha256:a766259cfab564a2ad52cb1aae1b881a75c3eb7e34ca3779697c23ed47c47069"},][package.dependencies]@@ -757,6 +856,20 @@ files = [[package.dependencies]six = ">=1.5"+[[package]]+name = "python-dotenv"+version = "1.0.0"+description = "Read key-value pairs from a .env file and set them as environment variables"+optional = false+python-versions = ">=3.8"+files = [+ {file = "python-dotenv-1.0.0.tar.gz", hash = "sha256:a8df96034aae6d2d50a4ebe8216326c61c3eb64836776504fcca410e5937a3ba"},+ {file = "python_dotenv-1.0.0-py3-none-any.whl", hash = "sha256:f5971a9226b701070a4bf2c38c89e5a3f0d64de8debda981d1db98583009122a"},+]++[package.extras]+cli = ["click (>=5.0)"]+[[package]]name = "six"version = "1.16.0"@@ -781,24 +894,24 @@ files = [[[package]]name = "typing-extensions"-version = "4.7.1"-description = "Backported and Experimental Type Hints for Python 3.7+"+version = "4.8.0"+description = "Backported and Experimental Type Hints for Python 3.8+"optional = false-python-versions = ">=3.7"+python-versions = ">=3.8"files = [- {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"},- {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"},+ {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"},+ {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"},][[package]]name = "urllib3"-version = "2.0.4"+version = "2.0.5"description = "HTTP library with thread-safe connection pooling, file post, and more."optional = falsepython-versions = ">=3.7"files = [- {file = "urllib3-2.0.4-py3-none-any.whl", hash = "sha256:de7df1803967d2c2a98e4b11bb7d6bd9210474c46e8a0401514e3a42a75ebde4"},- {file = "urllib3-2.0.4.tar.gz", hash = "sha256:8d22f86aae8ef5e410d4f539fde9ce6b2113a001bb4d189e0aed70642d602b11"},+ {file = "urllib3-2.0.5-py3-none-any.whl", hash = "sha256:ef16afa8ba34a1f989db38e1dbbe0c302e4289a47856990d0682e374563ce35e"},+ {file = "urllib3-2.0.5.tar.gz", hash = "sha256:13abf37382ea2ce6fb744d4dad67838eec857c9f4f57009891805e0b5e123594"},][package.extras]@@ -976,4 +1089,4 @@ multidict = ">=4.0"[metadata]lock-version = "2.0"python-versions = "^3.8"-content-hash = "192dbb67addf4bf9e45ff15ce2fc5272c44701550ae9231c5b8f1e98223c9b18"+content-hash = "3e1a8be6a625876609484f89b16259eb58c4876f16a1125cbb92c9c27e8a7ffc"diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.tomlindex c02cfe437..f88df2f33 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -15,7 +15,7 @@ python = "^3.8"urllib3 = ">= 1.25.3"python-dateutil = ">=2.8.2"aiohttp = ">= 3.8.4"-pydantic = "^1.10.5, <2"+pydantic = "^2.4.0"aenum = ">=3.1.11"websockets = "^11.0.3"jsonrpcclient = "^4.0.3"@@ -28,6 +28,7 @@ pytest = "^7.4.0"pytest-xdist = "^3.3.1"pytest-asyncio = "^0.21.1"psycopg2 = "^2.9.7"+python-dotenv = "^1.0.0"[build-system]requires = ["poetry-core"]diff --git a/packages/python-sdk/scripts/upload_test_results.py b/packages/python-sdk/scripts/upload_test_results.pyindex 2d83de33d..856f4ab5c 100644--- a/packages/python-sdk/scripts/upload_test_results.py+++ b/packages/python-sdk/scripts/upload_test_results.py@@ -30,11 +30,15 @@ conn = psycopg2.connect(cur = conn.cursor()# Get values to insert-result_values = [[result["test_name"], result["duration"], result['outcome']] for result in results]+result_values = [+ [result["test_name"], result["duration"], result["outcome"]] for result in results+]# Insert all results into the databaseexecute_values(- cur, "INSERT INTO tests.test_results (test_name, duration, outcome) VALUES %s", result_values+ cur,+ "INSERT INTO tests.test_results (test_name, duration, outcome) VALUES %s",+ result_values,)# Commit the changesdiff --git a/packages/python-sdk/tests/test_filesystem.py b/packages/python-sdk/tests/test_filesystem.pyindex 7b49670eb..04527c041 100644--- a/packages/python-sdk/tests/test_filesystem.py+++ b/packages/python-sdk/tests/test_filesystem.py@@ -101,6 +101,7 @@ async def test_write_bytes():await session.close()+async def test_read_bytes():file_name = "video.webm"local_dir = "tests/assets"