From 02b798afd85ae3151136e6eba2b2532c3ca19ab3 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 04:13:54 +0000 Subject: [PATCH] SDK regeneration --- README.md | 12 +- pyproject.toml | 4 +- reference.md | 216 +++++++++--------- .../__init__.py | 0 .../client.py | 4 +- .../core/__init__.py | 0 .../core/api_error.py | 0 .../core/client_wrapper.py | 2 +- .../core/datetime_utils.py | 0 .../core/file.py | 0 .../core/http_client.py | 0 .../core/jsonable_encoder.py | 0 .../core/pagination.py | 0 .../core/pydantic_utilities.py | 0 .../core/query_encoder.py | 0 .../core/remove_none_from_dict.py | 0 .../core/request_options.py | 0 .../core/serialization.py | 0 .../errors/__init__.py | 0 .../errors/unprocessable_entity_error.py | 0 .../health/__init__.py | 0 .../health/client.py | 8 +- src/{truefoundry => truefoundry_sdk}/py.typed | 0 .../types/__init__.py | 0 .../types/agent.py | 0 .../types/agent_app.py | 0 .../types/agent_manifest.py | 0 .../types/agent_open_api_tool_manifest.py | 0 ...ent_open_api_tool_manifest_openapi_spec.py | 0 .../types/agent_open_api_tool_with_fqn.py | 0 ...ent_open_api_tool_with_fqn_openapi_spec.py | 0 .../types/agent_version.py | 0 .../types/agent_with_fqn.py | 0 .../types/apply_request.py | 0 .../types/apply_response.py | 0 .../types/apply_sdk_code.py | 0 .../types/artifact.py | 0 .../types/artifact_path.py | 0 .../types/artifact_type.py | 0 .../types/artifact_version.py | 0 .../types/artifact_version_manifest.py | 0 .../types/assistant_message.py | 0 .../types/base_artifact_version.py | 0 .../types/blob_storage_reference.py | 0 .../types/chat_prompt_manifest.py | 0 .../chat_prompt_manifest_messages_item.py | 0 .../types/code_file_data.py | 0 .../types/collaborator.py | 0 .../types/content.py | 0 .../types/create_multi_part_upload_request.py | 0 .../types/data.py | 0 .../types/data_directory.py | 0 .../types/data_directory_manifest.py | 0 .../types/empty_response.py | 0 .../types/external_blob_storage_source.py | 0 .../types/fast_ai_framework.py | 0 .../types/file_info.py | 0 .../types/framework.py | 0 .../types/get_agent_response.py | 0 .../types/get_agent_version_response.py | 0 .../types/get_apply_sdk_code_request.py | 0 .../types/get_apply_sdk_code_response.py | 0 .../types/get_artifact_response.py | 0 .../types/get_artifact_version_response.py | 0 .../types/get_data_directory_response.py | 0 .../types/get_ml_repo_response.py | 0 .../types/get_model_response.py | 0 .../types/get_model_version_response.py | 0 .../types/get_prompt_response.py | 0 .../types/get_prompt_version_response.py | 0 .../types/get_signed_ur_ls_request.py | 0 .../types/get_signed_ur_ls_response.py | 0 .../types/get_tool_response.py | 0 .../types/get_tool_version_response.py | 0 .../types/gluon_framework.py | 0 .../types/h2o_framework.py | 0 .../types/http_validation_error.py | 0 .../types/image_content_part.py | 0 .../types/image_url.py | 0 .../types/infer_method_name.py | 0 .../types/keras_framework.py | 0 .../types/library_name.py | 0 .../types/light_gbm_framework.py | 0 .../types/list_agent_versions_response.py | 0 .../types/list_agents_response.py | 0 .../types/list_artifact_version_response.py | 0 .../types/list_artifacts_response.py | 0 .../types/list_data_directories_response.py | 0 .../types/list_files_request.py | 0 .../types/list_files_response.py | 0 .../types/list_ml_repos_response.py | 0 .../types/list_model_versions_response.py | 0 .../types/list_models_response.py | 0 .../types/list_prompt_versions_response.py | 0 .../types/list_prompts_response.py | 0 .../types/list_tool_versions_response.py | 0 .../types/list_tools_response.py | 0 .../types/local_artifact_source.py | 0 .../types/local_model_source.py | 0 .../types/manifest.py | 0 .../types/method.py | 0 .../types/mime_type.py | 0 .../types/ml_repo.py | 0 .../types/ml_repo_manifest.py | 0 .../types/model.py | 0 .../types/model_configuration.py | 0 .../types/model_version.py | 0 .../types/model_version_environment.py | 0 .../types/model_version_manifest.py | 0 .../types/multi_part_upload.py | 0 .../types/multi_part_upload_response.py | 0 .../multi_part_upload_storage_provider.py | 0 .../types/onnx_framework.py | 0 .../types/operation.py | 0 .../types/paddle_framework.py | 0 .../types/pagination.py | 0 .../types/parameters.py | 0 .../types/prompt.py | 0 .../types/prompt_version.py | 0 .../types/py_torch_framework.py | 0 .../types/resolve_agent_app_response.py | 0 .../types/signed_url.py | 0 .../types/sklearn_framework.py | 0 .../types/sklearn_model_schema.py | 0 .../types/sklearn_serialization_format.py | 0 .../types/source.py | 0 .../types/spa_cy_framework.py | 0 .../types/stage_artifact_response.py | 0 .../types/stats_models_framework.py | 0 .../types/stop.py | 0 .../types/subject.py | 0 .../types/subject_type.py | 0 .../types/system_message.py | 0 .../types/tensor_flow_framework.py | 0 .../types/text.py | 0 .../types/text_content_part.py | 0 .../types/token_pagination.py | 0 .../types/tool.py | 0 .../types/tool_version.py | 0 .../types/transformers_framework.py | 0 .../types/true_foundry_managed_source.py | 0 .../types/url.py | 0 .../types/user_message.py | 0 .../types/user_message_content_item.py | 0 .../types/validation_error.py | 0 .../types/validation_error_loc_item.py | 0 .../types/xg_boost_framework.py | 0 .../types/xg_boost_model_schema.py | 0 .../types/xg_boost_serialization_format.py | 0 .../v1/__init__.py | 0 .../v1/agent_versions/__init__.py | 0 .../v1/agent_versions/client.py | 16 +- .../v1/agents/__init__.py | 0 .../v1/agents/client.py | 16 +- .../v1/artifact_versions/__init__.py | 0 .../v1/artifact_versions/client.py | 28 +-- .../v1/artifact_versions/types/__init__.py | 0 .../v1/artifact_versions/types/manifest.py | 0 .../v1/artifacts/__init__.py | 0 .../v1/artifacts/client.py | 16 +- .../v1/client.py | 4 +- .../v1/data_directories/__init__.py | 0 .../v1/data_directories/client.py | 32 +-- .../v1/ml_repos/__init__.py | 0 .../v1/ml_repos/client.py | 12 +- .../v1/model_versions/__init__.py | 0 .../v1/model_versions/client.py | 12 +- .../v1/models/__init__.py | 0 .../v1/models/client.py | 16 +- .../v1/prompt_versions/__init__.py | 0 .../v1/prompt_versions/client.py | 12 +- .../v1/prompts/__init__.py | 0 .../v1/prompts/client.py | 16 +- .../v1/tool_versions/__init__.py | 0 .../v1/tool_versions/client.py | 12 +- .../v1/tools/__init__.py | 0 .../v1/tools/client.py | 16 +- .../version.py | 0 tests/utils/assets/models/circle.py | 2 +- .../models/object_with_optional_field.py | 2 +- tests/utils/assets/models/shape.py | 2 +- tests/utils/assets/models/square.py | 2 +- tests/utils/test_http_client.py | 4 +- tests/utils/test_query_encoding.py | 2 +- tests/utils/test_serialization.py | 2 +- 185 files changed, 235 insertions(+), 235 deletions(-) rename src/{truefoundry => truefoundry_sdk}/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/core/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/api_error.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/client_wrapper.py (98%) rename src/{truefoundry => truefoundry_sdk}/core/datetime_utils.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/file.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/http_client.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/jsonable_encoder.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/pagination.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/pydantic_utilities.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/query_encoder.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/remove_none_from_dict.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/request_options.py (100%) rename src/{truefoundry => truefoundry_sdk}/core/serialization.py (100%) rename src/{truefoundry => truefoundry_sdk}/errors/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/errors/unprocessable_entity_error.py (100%) rename src/{truefoundry => truefoundry_sdk}/health/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/health/client.py (96%) rename src/{truefoundry => truefoundry_sdk}/py.typed (100%) rename src/{truefoundry => truefoundry_sdk}/types/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_app.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_open_api_tool_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_open_api_tool_manifest_openapi_spec.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_open_api_tool_with_fqn.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_open_api_tool_with_fqn_openapi_spec.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_version.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/agent_with_fqn.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/apply_request.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/apply_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/apply_sdk_code.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/artifact.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/artifact_path.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/artifact_type.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/artifact_version.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/artifact_version_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/assistant_message.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/base_artifact_version.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/blob_storage_reference.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/chat_prompt_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/chat_prompt_manifest_messages_item.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/code_file_data.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/collaborator.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/content.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/create_multi_part_upload_request.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/data.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/data_directory.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/data_directory_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/empty_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/external_blob_storage_source.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/fast_ai_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/file_info.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_agent_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_agent_version_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_apply_sdk_code_request.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_apply_sdk_code_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_artifact_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_artifact_version_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_data_directory_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_ml_repo_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_model_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_model_version_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_prompt_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_prompt_version_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_signed_ur_ls_request.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_signed_ur_ls_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_tool_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/get_tool_version_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/gluon_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/h2o_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/http_validation_error.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/image_content_part.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/image_url.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/infer_method_name.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/keras_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/library_name.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/light_gbm_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_agent_versions_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_agents_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_artifact_version_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_artifacts_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_data_directories_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_files_request.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_files_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_ml_repos_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_model_versions_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_models_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_prompt_versions_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_prompts_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_tool_versions_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/list_tools_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/local_artifact_source.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/local_model_source.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/method.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/mime_type.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/ml_repo.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/ml_repo_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/model.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/model_configuration.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/model_version.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/model_version_environment.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/model_version_manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/multi_part_upload.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/multi_part_upload_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/multi_part_upload_storage_provider.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/onnx_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/operation.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/paddle_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/pagination.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/parameters.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/prompt.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/prompt_version.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/py_torch_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/resolve_agent_app_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/signed_url.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/sklearn_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/sklearn_model_schema.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/sklearn_serialization_format.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/source.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/spa_cy_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/stage_artifact_response.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/stats_models_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/stop.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/subject.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/subject_type.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/system_message.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/tensor_flow_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/text.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/text_content_part.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/token_pagination.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/tool.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/tool_version.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/transformers_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/true_foundry_managed_source.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/url.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/user_message.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/user_message_content_item.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/validation_error.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/validation_error_loc_item.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/xg_boost_framework.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/xg_boost_model_schema.py (100%) rename src/{truefoundry => truefoundry_sdk}/types/xg_boost_serialization_format.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/agent_versions/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/agent_versions/client.py (97%) rename src/{truefoundry => truefoundry_sdk}/v1/agents/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/agents/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/artifact_versions/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/artifact_versions/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/artifact_versions/types/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/artifact_versions/types/manifest.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/artifacts/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/artifacts/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/client.py (99%) rename src/{truefoundry => truefoundry_sdk}/v1/data_directories/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/data_directories/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/ml_repos/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/ml_repos/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/model_versions/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/model_versions/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/models/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/models/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/prompt_versions/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/prompt_versions/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/prompts/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/prompts/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/tool_versions/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/tool_versions/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/v1/tools/__init__.py (100%) rename src/{truefoundry => truefoundry_sdk}/v1/tools/client.py (98%) rename src/{truefoundry => truefoundry_sdk}/version.py (100%) diff --git a/README.md b/README.md index 89912e72..c7acab43 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ A full reference for this library is available [here](./reference.md). Instantiate and use the client with the following: ```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -40,7 +40,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t ```python import asyncio -from truefoundry import AsyncTrueFoundry +from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -65,7 +65,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass will be thrown. ```python -from truefoundry.core.api_error import ApiError +from truefoundry_sdk.core.api_error import ApiError try: client.v1.artifact_versions.get_signed_urls(...) @@ -79,7 +79,7 @@ except ApiError as e: Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object. ```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -121,7 +121,7 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o ```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( ..., @@ -141,7 +141,7 @@ You can override the `httpx` client to customize it for your use-case. Some comm and transports. ```python import httpx -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( ..., diff --git a/pyproject.toml b/pyproject.toml index df527f8c..29db1d78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "truefoundry-sdk" [tool.poetry] name = "truefoundry-sdk" -version = "0.0.1" +version = "0.0.2" description = "" readme = "README.md" authors = [] @@ -27,7 +27,7 @@ classifiers = [ "Typing :: Typed" ] packages = [ - { include = "truefoundry", from = "src"} + { include = "truefoundry_sdk", from = "src"} ] [project.urls] diff --git a/reference.md b/reference.md index c9f40f7b..30b1c543 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference ## V1 -
client.v1.apply(...) +
client.v1.apply(...)
@@ -13,7 +13,7 @@
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -65,7 +65,7 @@ client.v1.apply(
## Health -
client.health.serve_get() +
client.health.serve_get()
@@ -78,7 +78,7 @@ client.v1.apply(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -112,7 +112,7 @@ client.health.serve_get()
-
client.health.get() +
client.health.get()
@@ -125,7 +125,7 @@ client.health.serve_get()
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -160,7 +160,7 @@ client.health.get()
## V1 Artifacts -
client.v1.artifacts.get(...) +
client.v1.artifacts.get(...)
@@ -173,7 +173,7 @@ client.health.get()
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -217,7 +217,7 @@ client.v1.artifacts.get(
-
client.v1.artifacts.delete(...) +
client.v1.artifacts.delete(...)
@@ -230,7 +230,7 @@ client.v1.artifacts.get(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -274,7 +274,7 @@ client.v1.artifacts.delete(
-
client.v1.artifacts.list(...) +
client.v1.artifacts.list(...)
@@ -287,7 +287,7 @@ client.v1.artifacts.delete(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -366,7 +366,7 @@ for page in response.iter_pages():
-
client.v1.artifacts.create_or_update(...) +
client.v1.artifacts.create_or_update(...)
@@ -379,7 +379,7 @@ for page in response.iter_pages():
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -431,7 +431,7 @@ client.v1.artifacts.create_or_update(
## V1 Agents -
client.v1.agents.get(...) +
client.v1.agents.get(...)
@@ -444,7 +444,7 @@ client.v1.artifacts.create_or_update(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -488,7 +488,7 @@ client.v1.agents.get(
-
client.v1.agents.delete(...) +
client.v1.agents.delete(...)
@@ -501,7 +501,7 @@ client.v1.agents.get(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -545,7 +545,7 @@ client.v1.agents.delete(
-
client.v1.agents.list(...) +
client.v1.agents.list(...)
@@ -558,7 +558,7 @@ client.v1.agents.delete(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -629,7 +629,7 @@ for page in response.iter_pages():
-
client.v1.agents.create_or_update(...) +
client.v1.agents.create_or_update(...)
@@ -642,7 +642,7 @@ for page in response.iter_pages():
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -694,7 +694,7 @@ client.v1.agents.create_or_update(
## V1 Prompts -
client.v1.prompts.get(...) +
client.v1.prompts.get(...)
@@ -707,7 +707,7 @@ client.v1.agents.create_or_update(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -751,7 +751,7 @@ client.v1.prompts.get(
-
client.v1.prompts.delete(...) +
client.v1.prompts.delete(...)
@@ -764,7 +764,7 @@ client.v1.prompts.get(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -808,7 +808,7 @@ client.v1.prompts.delete(
-
client.v1.prompts.list(...) +
client.v1.prompts.list(...)
@@ -821,7 +821,7 @@ client.v1.prompts.delete(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -892,7 +892,7 @@ for page in response.iter_pages():
-
client.v1.prompts.create_or_update(...) +
client.v1.prompts.create_or_update(...)
@@ -905,7 +905,7 @@ for page in response.iter_pages():
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -957,7 +957,7 @@ client.v1.prompts.create_or_update(
## V1 Tools -
client.v1.tools.get(...) +
client.v1.tools.get(...)
@@ -970,7 +970,7 @@ client.v1.prompts.create_or_update(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1014,7 +1014,7 @@ client.v1.tools.get(
-
client.v1.tools.delete(...) +
client.v1.tools.delete(...)
@@ -1027,7 +1027,7 @@ client.v1.tools.get(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1071,7 +1071,7 @@ client.v1.tools.delete(
-
client.v1.tools.list(...) +
client.v1.tools.list(...)
@@ -1084,7 +1084,7 @@ client.v1.tools.delete(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1155,7 +1155,7 @@ for page in response.iter_pages():
-
client.v1.tools.create_or_update(...) +
client.v1.tools.create_or_update(...)
@@ -1168,7 +1168,7 @@ for page in response.iter_pages():
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -1220,7 +1220,7 @@ client.v1.tools.create_or_update(
## V1 Models -
client.v1.models.get(...) +
client.v1.models.get(...)
@@ -1233,7 +1233,7 @@ client.v1.tools.create_or_update(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1277,7 +1277,7 @@ client.v1.models.get(
-
client.v1.models.delete(...) +
client.v1.models.delete(...)
@@ -1290,7 +1290,7 @@ client.v1.models.get(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1334,7 +1334,7 @@ client.v1.models.delete(
-
client.v1.models.list(...) +
client.v1.models.list(...)
@@ -1347,7 +1347,7 @@ client.v1.models.delete(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1426,7 +1426,7 @@ for page in response.iter_pages():
-
client.v1.models.create_or_update(...) +
client.v1.models.create_or_update(...)
@@ -1439,7 +1439,7 @@ for page in response.iter_pages():
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -1491,7 +1491,7 @@ client.v1.models.create_or_update(
## V1 ArtifactVersions -
client.v1.artifact_versions.get(...) +
client.v1.artifact_versions.get(...)
@@ -1518,7 +1518,7 @@ Get artifact version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1562,7 +1562,7 @@ client.v1.artifact_versions.get(
-
client.v1.artifact_versions.delete(...) +
client.v1.artifact_versions.delete(...)
@@ -1589,7 +1589,7 @@ Delete artifact versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1633,7 +1633,7 @@ client.v1.artifact_versions.delete(
-
client.v1.artifact_versions.list(...) +
client.v1.artifact_versions.list(...)
@@ -1660,7 +1660,7 @@ List artifact version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1755,7 +1755,7 @@ for page in response.iter_pages():
-
client.v1.artifact_versions.get_signed_urls(...) +
client.v1.artifact_versions.get_signed_urls(...)
@@ -1768,7 +1768,7 @@ for page in response.iter_pages():
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1830,7 +1830,7 @@ client.v1.artifact_versions.get_signed_urls(
-
client.v1.artifact_versions.create_multi_part_upload(...) +
client.v1.artifact_versions.create_multi_part_upload(...)
@@ -1843,7 +1843,7 @@ client.v1.artifact_versions.get_signed_urls(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -1905,7 +1905,7 @@ client.v1.artifact_versions.create_multi_part_upload(
-
client.v1.artifact_versions.stage(...) +
client.v1.artifact_versions.stage(...)
@@ -1918,7 +1918,7 @@ client.v1.artifact_versions.create_multi_part_upload(
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -1969,7 +1969,7 @@ client.v1.artifact_versions.stage(
-
client.v1.artifact_versions.list_files(...) +
client.v1.artifact_versions.list_files(...)
@@ -1982,7 +1982,7 @@ client.v1.artifact_versions.stage(
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2056,7 +2056,7 @@ for page in response.iter_pages():
## V1 ModelVersions -
client.v1.model_versions.get(...) +
client.v1.model_versions.get(...)
@@ -2083,7 +2083,7 @@ Get model version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2127,7 +2127,7 @@ client.v1.model_versions.get(
-
client.v1.model_versions.delete(...) +
client.v1.model_versions.delete(...)
@@ -2154,7 +2154,7 @@ Delete model versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2198,7 +2198,7 @@ client.v1.model_versions.delete(
-
client.v1.model_versions.list(...) +
client.v1.model_versions.list(...)
@@ -2225,7 +2225,7 @@ List model version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2329,7 +2329,7 @@ for page in response.iter_pages():
## V1 PromptVersions -
client.v1.prompt_versions.get(...) +
client.v1.prompt_versions.get(...)
@@ -2356,7 +2356,7 @@ Get prompt version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2400,7 +2400,7 @@ client.v1.prompt_versions.get(
-
client.v1.prompt_versions.delete(...) +
client.v1.prompt_versions.delete(...)
@@ -2427,7 +2427,7 @@ Delete prompt versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2471,7 +2471,7 @@ client.v1.prompt_versions.delete(
-
client.v1.prompt_versions.list(...) +
client.v1.prompt_versions.list(...)
@@ -2498,7 +2498,7 @@ List prompt version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2570,7 +2570,7 @@ for page in response.iter_pages():
## V1 ToolVersions -
client.v1.tool_versions.get(...) +
client.v1.tool_versions.get(...)
@@ -2597,7 +2597,7 @@ Get tool version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2641,7 +2641,7 @@ client.v1.tool_versions.get(
-
client.v1.tool_versions.delete(...) +
client.v1.tool_versions.delete(...)
@@ -2668,7 +2668,7 @@ Delete tool versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2712,7 +2712,7 @@ client.v1.tool_versions.delete(
-
client.v1.tool_versions.list(...) +
client.v1.tool_versions.list(...)
@@ -2739,7 +2739,7 @@ List tool versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2811,7 +2811,7 @@ for page in response.iter_pages():
## V1 AgentVersions -
client.v1.agent_versions.get(...) +
client.v1.agent_versions.get(...)
@@ -2838,7 +2838,7 @@ Get agent version API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2882,7 +2882,7 @@ client.v1.agent_versions.get(
-
client.v1.agent_versions.delete(...) +
client.v1.agent_versions.delete(...)
@@ -2909,7 +2909,7 @@ Delete agent versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -2953,7 +2953,7 @@ client.v1.agent_versions.delete(
-
client.v1.agent_versions.list(...) +
client.v1.agent_versions.list(...)
@@ -2980,7 +2980,7 @@ List agent versions API
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3051,7 +3051,7 @@ for page in response.iter_pages():
-
client.v1.agent_versions.resolve(...) +
client.v1.agent_versions.resolve(...)
@@ -3064,7 +3064,7 @@ for page in response.iter_pages():
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3109,7 +3109,7 @@ client.v1.agent_versions.resolve(
## V1 DataDirectories -
client.v1.data_directories.get(...) +
client.v1.data_directories.get(...)
@@ -3143,7 +3143,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3187,7 +3187,7 @@ client.v1.data_directories.get(
-
client.v1.data_directories.delete(...) +
client.v1.data_directories.delete(...)
@@ -3222,7 +3222,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3274,7 +3274,7 @@ client.v1.data_directories.delete(
-
client.v1.data_directories.list(...) +
client.v1.data_directories.list(...)
@@ -3312,7 +3312,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3383,7 +3383,7 @@ for page in response.iter_pages():
-
client.v1.data_directories.create_or_update(...) +
client.v1.data_directories.create_or_update(...)
@@ -3396,7 +3396,7 @@ for page in response.iter_pages():
```python -from truefoundry import ( +from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -3447,7 +3447,7 @@ client.v1.data_directories.create_or_update(
-
client.v1.data_directories.get_signed_urls(...) +
client.v1.data_directories.get_signed_urls(...)
@@ -3481,7 +3481,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3543,7 +3543,7 @@ client.v1.data_directories.get_signed_urls(
-
client.v1.data_directories.list_files(...) +
client.v1.data_directories.list_files(...)
@@ -3577,7 +3577,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3650,7 +3650,7 @@ for page in response.iter_pages():
-
client.v1.data_directories.delete_files(...) +
client.v1.data_directories.delete_files(...)
@@ -3684,7 +3684,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3737,7 +3737,7 @@ client.v1.data_directories.delete_files(
-
client.v1.data_directories.create_multipart_upload(...) +
client.v1.data_directories.create_multipart_upload(...)
@@ -3771,7 +3771,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3834,7 +3834,7 @@ client.v1.data_directories.create_multipart_upload(
## V1 MlRepos -
client.v1.ml_repos.get(...) +
client.v1.ml_repos.get(...)
@@ -3867,7 +3867,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3911,7 +3911,7 @@ client.v1.ml_repos.get(
-
client.v1.ml_repos.delete(...) +
client.v1.ml_repos.delete(...)
@@ -3944,7 +3944,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -3988,7 +3988,7 @@ client.v1.ml_repos.delete(
-
client.v1.ml_repos.list(...) +
client.v1.ml_repos.list(...)
@@ -4021,7 +4021,7 @@ Returns:
```python -from truefoundry import TrueFoundry +from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/__init__.py b/src/truefoundry_sdk/__init__.py similarity index 100% rename from src/truefoundry/__init__.py rename to src/truefoundry_sdk/__init__.py diff --git a/src/truefoundry/client.py b/src/truefoundry_sdk/client.py similarity index 98% rename from src/truefoundry/client.py rename to src/truefoundry_sdk/client.py index 71d25824..24f73125 100644 --- a/src/truefoundry/client.py +++ b/src/truefoundry_sdk/client.py @@ -32,7 +32,7 @@ class TrueFoundry: Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -85,7 +85,7 @@ class AsyncTrueFoundry: Examples -------- - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/core/__init__.py b/src/truefoundry_sdk/core/__init__.py similarity index 100% rename from src/truefoundry/core/__init__.py rename to src/truefoundry_sdk/core/__init__.py diff --git a/src/truefoundry/core/api_error.py b/src/truefoundry_sdk/core/api_error.py similarity index 100% rename from src/truefoundry/core/api_error.py rename to src/truefoundry_sdk/core/api_error.py diff --git a/src/truefoundry/core/client_wrapper.py b/src/truefoundry_sdk/core/client_wrapper.py similarity index 98% rename from src/truefoundry/core/client_wrapper.py rename to src/truefoundry_sdk/core/client_wrapper.py index 1a00b36b..f1d97606 100644 --- a/src/truefoundry/core/client_wrapper.py +++ b/src/truefoundry_sdk/core/client_wrapper.py @@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", "X-Fern-SDK-Name": "truefoundry-sdk", - "X-Fern-SDK-Version": "0.0.1", + "X-Fern-SDK-Version": "0.0.2", } api_key = self._get_api_key() if api_key is not None: diff --git a/src/truefoundry/core/datetime_utils.py b/src/truefoundry_sdk/core/datetime_utils.py similarity index 100% rename from src/truefoundry/core/datetime_utils.py rename to src/truefoundry_sdk/core/datetime_utils.py diff --git a/src/truefoundry/core/file.py b/src/truefoundry_sdk/core/file.py similarity index 100% rename from src/truefoundry/core/file.py rename to src/truefoundry_sdk/core/file.py diff --git a/src/truefoundry/core/http_client.py b/src/truefoundry_sdk/core/http_client.py similarity index 100% rename from src/truefoundry/core/http_client.py rename to src/truefoundry_sdk/core/http_client.py diff --git a/src/truefoundry/core/jsonable_encoder.py b/src/truefoundry_sdk/core/jsonable_encoder.py similarity index 100% rename from src/truefoundry/core/jsonable_encoder.py rename to src/truefoundry_sdk/core/jsonable_encoder.py diff --git a/src/truefoundry/core/pagination.py b/src/truefoundry_sdk/core/pagination.py similarity index 100% rename from src/truefoundry/core/pagination.py rename to src/truefoundry_sdk/core/pagination.py diff --git a/src/truefoundry/core/pydantic_utilities.py b/src/truefoundry_sdk/core/pydantic_utilities.py similarity index 100% rename from src/truefoundry/core/pydantic_utilities.py rename to src/truefoundry_sdk/core/pydantic_utilities.py diff --git a/src/truefoundry/core/query_encoder.py b/src/truefoundry_sdk/core/query_encoder.py similarity index 100% rename from src/truefoundry/core/query_encoder.py rename to src/truefoundry_sdk/core/query_encoder.py diff --git a/src/truefoundry/core/remove_none_from_dict.py b/src/truefoundry_sdk/core/remove_none_from_dict.py similarity index 100% rename from src/truefoundry/core/remove_none_from_dict.py rename to src/truefoundry_sdk/core/remove_none_from_dict.py diff --git a/src/truefoundry/core/request_options.py b/src/truefoundry_sdk/core/request_options.py similarity index 100% rename from src/truefoundry/core/request_options.py rename to src/truefoundry_sdk/core/request_options.py diff --git a/src/truefoundry/core/serialization.py b/src/truefoundry_sdk/core/serialization.py similarity index 100% rename from src/truefoundry/core/serialization.py rename to src/truefoundry_sdk/core/serialization.py diff --git a/src/truefoundry/errors/__init__.py b/src/truefoundry_sdk/errors/__init__.py similarity index 100% rename from src/truefoundry/errors/__init__.py rename to src/truefoundry_sdk/errors/__init__.py diff --git a/src/truefoundry/errors/unprocessable_entity_error.py b/src/truefoundry_sdk/errors/unprocessable_entity_error.py similarity index 100% rename from src/truefoundry/errors/unprocessable_entity_error.py rename to src/truefoundry_sdk/errors/unprocessable_entity_error.py diff --git a/src/truefoundry/health/__init__.py b/src/truefoundry_sdk/health/__init__.py similarity index 100% rename from src/truefoundry/health/__init__.py rename to src/truefoundry_sdk/health/__init__.py diff --git a/src/truefoundry/health/client.py b/src/truefoundry_sdk/health/client.py similarity index 96% rename from src/truefoundry/health/client.py rename to src/truefoundry_sdk/health/client.py index 6943d8c6..f61840c7 100644 --- a/src/truefoundry/health/client.py +++ b/src/truefoundry_sdk/health/client.py @@ -27,7 +27,7 @@ def serve_get(self, *, request_options: typing.Optional[RequestOptions] = None) Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -68,7 +68,7 @@ def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> typ Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -118,7 +118,7 @@ async def serve_get( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -167,7 +167,7 @@ async def get(self, *, request_options: typing.Optional[RequestOptions] = None) -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/py.typed b/src/truefoundry_sdk/py.typed similarity index 100% rename from src/truefoundry/py.typed rename to src/truefoundry_sdk/py.typed diff --git a/src/truefoundry/types/__init__.py b/src/truefoundry_sdk/types/__init__.py similarity index 100% rename from src/truefoundry/types/__init__.py rename to src/truefoundry_sdk/types/__init__.py diff --git a/src/truefoundry/types/agent.py b/src/truefoundry_sdk/types/agent.py similarity index 100% rename from src/truefoundry/types/agent.py rename to src/truefoundry_sdk/types/agent.py diff --git a/src/truefoundry/types/agent_app.py b/src/truefoundry_sdk/types/agent_app.py similarity index 100% rename from src/truefoundry/types/agent_app.py rename to src/truefoundry_sdk/types/agent_app.py diff --git a/src/truefoundry/types/agent_manifest.py b/src/truefoundry_sdk/types/agent_manifest.py similarity index 100% rename from src/truefoundry/types/agent_manifest.py rename to src/truefoundry_sdk/types/agent_manifest.py diff --git a/src/truefoundry/types/agent_open_api_tool_manifest.py b/src/truefoundry_sdk/types/agent_open_api_tool_manifest.py similarity index 100% rename from src/truefoundry/types/agent_open_api_tool_manifest.py rename to src/truefoundry_sdk/types/agent_open_api_tool_manifest.py diff --git a/src/truefoundry/types/agent_open_api_tool_manifest_openapi_spec.py b/src/truefoundry_sdk/types/agent_open_api_tool_manifest_openapi_spec.py similarity index 100% rename from src/truefoundry/types/agent_open_api_tool_manifest_openapi_spec.py rename to src/truefoundry_sdk/types/agent_open_api_tool_manifest_openapi_spec.py diff --git a/src/truefoundry/types/agent_open_api_tool_with_fqn.py b/src/truefoundry_sdk/types/agent_open_api_tool_with_fqn.py similarity index 100% rename from src/truefoundry/types/agent_open_api_tool_with_fqn.py rename to src/truefoundry_sdk/types/agent_open_api_tool_with_fqn.py diff --git a/src/truefoundry/types/agent_open_api_tool_with_fqn_openapi_spec.py b/src/truefoundry_sdk/types/agent_open_api_tool_with_fqn_openapi_spec.py similarity index 100% rename from src/truefoundry/types/agent_open_api_tool_with_fqn_openapi_spec.py rename to src/truefoundry_sdk/types/agent_open_api_tool_with_fqn_openapi_spec.py diff --git a/src/truefoundry/types/agent_version.py b/src/truefoundry_sdk/types/agent_version.py similarity index 100% rename from src/truefoundry/types/agent_version.py rename to src/truefoundry_sdk/types/agent_version.py diff --git a/src/truefoundry/types/agent_with_fqn.py b/src/truefoundry_sdk/types/agent_with_fqn.py similarity index 100% rename from src/truefoundry/types/agent_with_fqn.py rename to src/truefoundry_sdk/types/agent_with_fqn.py diff --git a/src/truefoundry/types/apply_request.py b/src/truefoundry_sdk/types/apply_request.py similarity index 100% rename from src/truefoundry/types/apply_request.py rename to src/truefoundry_sdk/types/apply_request.py diff --git a/src/truefoundry/types/apply_response.py b/src/truefoundry_sdk/types/apply_response.py similarity index 100% rename from src/truefoundry/types/apply_response.py rename to src/truefoundry_sdk/types/apply_response.py diff --git a/src/truefoundry/types/apply_sdk_code.py b/src/truefoundry_sdk/types/apply_sdk_code.py similarity index 100% rename from src/truefoundry/types/apply_sdk_code.py rename to src/truefoundry_sdk/types/apply_sdk_code.py diff --git a/src/truefoundry/types/artifact.py b/src/truefoundry_sdk/types/artifact.py similarity index 100% rename from src/truefoundry/types/artifact.py rename to src/truefoundry_sdk/types/artifact.py diff --git a/src/truefoundry/types/artifact_path.py b/src/truefoundry_sdk/types/artifact_path.py similarity index 100% rename from src/truefoundry/types/artifact_path.py rename to src/truefoundry_sdk/types/artifact_path.py diff --git a/src/truefoundry/types/artifact_type.py b/src/truefoundry_sdk/types/artifact_type.py similarity index 100% rename from src/truefoundry/types/artifact_type.py rename to src/truefoundry_sdk/types/artifact_type.py diff --git a/src/truefoundry/types/artifact_version.py b/src/truefoundry_sdk/types/artifact_version.py similarity index 100% rename from src/truefoundry/types/artifact_version.py rename to src/truefoundry_sdk/types/artifact_version.py diff --git a/src/truefoundry/types/artifact_version_manifest.py b/src/truefoundry_sdk/types/artifact_version_manifest.py similarity index 100% rename from src/truefoundry/types/artifact_version_manifest.py rename to src/truefoundry_sdk/types/artifact_version_manifest.py diff --git a/src/truefoundry/types/assistant_message.py b/src/truefoundry_sdk/types/assistant_message.py similarity index 100% rename from src/truefoundry/types/assistant_message.py rename to src/truefoundry_sdk/types/assistant_message.py diff --git a/src/truefoundry/types/base_artifact_version.py b/src/truefoundry_sdk/types/base_artifact_version.py similarity index 100% rename from src/truefoundry/types/base_artifact_version.py rename to src/truefoundry_sdk/types/base_artifact_version.py diff --git a/src/truefoundry/types/blob_storage_reference.py b/src/truefoundry_sdk/types/blob_storage_reference.py similarity index 100% rename from src/truefoundry/types/blob_storage_reference.py rename to src/truefoundry_sdk/types/blob_storage_reference.py diff --git a/src/truefoundry/types/chat_prompt_manifest.py b/src/truefoundry_sdk/types/chat_prompt_manifest.py similarity index 100% rename from src/truefoundry/types/chat_prompt_manifest.py rename to src/truefoundry_sdk/types/chat_prompt_manifest.py diff --git a/src/truefoundry/types/chat_prompt_manifest_messages_item.py b/src/truefoundry_sdk/types/chat_prompt_manifest_messages_item.py similarity index 100% rename from src/truefoundry/types/chat_prompt_manifest_messages_item.py rename to src/truefoundry_sdk/types/chat_prompt_manifest_messages_item.py diff --git a/src/truefoundry/types/code_file_data.py b/src/truefoundry_sdk/types/code_file_data.py similarity index 100% rename from src/truefoundry/types/code_file_data.py rename to src/truefoundry_sdk/types/code_file_data.py diff --git a/src/truefoundry/types/collaborator.py b/src/truefoundry_sdk/types/collaborator.py similarity index 100% rename from src/truefoundry/types/collaborator.py rename to src/truefoundry_sdk/types/collaborator.py diff --git a/src/truefoundry/types/content.py b/src/truefoundry_sdk/types/content.py similarity index 100% rename from src/truefoundry/types/content.py rename to src/truefoundry_sdk/types/content.py diff --git a/src/truefoundry/types/create_multi_part_upload_request.py b/src/truefoundry_sdk/types/create_multi_part_upload_request.py similarity index 100% rename from src/truefoundry/types/create_multi_part_upload_request.py rename to src/truefoundry_sdk/types/create_multi_part_upload_request.py diff --git a/src/truefoundry/types/data.py b/src/truefoundry_sdk/types/data.py similarity index 100% rename from src/truefoundry/types/data.py rename to src/truefoundry_sdk/types/data.py diff --git a/src/truefoundry/types/data_directory.py b/src/truefoundry_sdk/types/data_directory.py similarity index 100% rename from src/truefoundry/types/data_directory.py rename to src/truefoundry_sdk/types/data_directory.py diff --git a/src/truefoundry/types/data_directory_manifest.py b/src/truefoundry_sdk/types/data_directory_manifest.py similarity index 100% rename from src/truefoundry/types/data_directory_manifest.py rename to src/truefoundry_sdk/types/data_directory_manifest.py diff --git a/src/truefoundry/types/empty_response.py b/src/truefoundry_sdk/types/empty_response.py similarity index 100% rename from src/truefoundry/types/empty_response.py rename to src/truefoundry_sdk/types/empty_response.py diff --git a/src/truefoundry/types/external_blob_storage_source.py b/src/truefoundry_sdk/types/external_blob_storage_source.py similarity index 100% rename from src/truefoundry/types/external_blob_storage_source.py rename to src/truefoundry_sdk/types/external_blob_storage_source.py diff --git a/src/truefoundry/types/fast_ai_framework.py b/src/truefoundry_sdk/types/fast_ai_framework.py similarity index 100% rename from src/truefoundry/types/fast_ai_framework.py rename to src/truefoundry_sdk/types/fast_ai_framework.py diff --git a/src/truefoundry/types/file_info.py b/src/truefoundry_sdk/types/file_info.py similarity index 100% rename from src/truefoundry/types/file_info.py rename to src/truefoundry_sdk/types/file_info.py diff --git a/src/truefoundry/types/framework.py b/src/truefoundry_sdk/types/framework.py similarity index 100% rename from src/truefoundry/types/framework.py rename to src/truefoundry_sdk/types/framework.py diff --git a/src/truefoundry/types/get_agent_response.py b/src/truefoundry_sdk/types/get_agent_response.py similarity index 100% rename from src/truefoundry/types/get_agent_response.py rename to src/truefoundry_sdk/types/get_agent_response.py diff --git a/src/truefoundry/types/get_agent_version_response.py b/src/truefoundry_sdk/types/get_agent_version_response.py similarity index 100% rename from src/truefoundry/types/get_agent_version_response.py rename to src/truefoundry_sdk/types/get_agent_version_response.py diff --git a/src/truefoundry/types/get_apply_sdk_code_request.py b/src/truefoundry_sdk/types/get_apply_sdk_code_request.py similarity index 100% rename from src/truefoundry/types/get_apply_sdk_code_request.py rename to src/truefoundry_sdk/types/get_apply_sdk_code_request.py diff --git a/src/truefoundry/types/get_apply_sdk_code_response.py b/src/truefoundry_sdk/types/get_apply_sdk_code_response.py similarity index 100% rename from src/truefoundry/types/get_apply_sdk_code_response.py rename to src/truefoundry_sdk/types/get_apply_sdk_code_response.py diff --git a/src/truefoundry/types/get_artifact_response.py b/src/truefoundry_sdk/types/get_artifact_response.py similarity index 100% rename from src/truefoundry/types/get_artifact_response.py rename to src/truefoundry_sdk/types/get_artifact_response.py diff --git a/src/truefoundry/types/get_artifact_version_response.py b/src/truefoundry_sdk/types/get_artifact_version_response.py similarity index 100% rename from src/truefoundry/types/get_artifact_version_response.py rename to src/truefoundry_sdk/types/get_artifact_version_response.py diff --git a/src/truefoundry/types/get_data_directory_response.py b/src/truefoundry_sdk/types/get_data_directory_response.py similarity index 100% rename from src/truefoundry/types/get_data_directory_response.py rename to src/truefoundry_sdk/types/get_data_directory_response.py diff --git a/src/truefoundry/types/get_ml_repo_response.py b/src/truefoundry_sdk/types/get_ml_repo_response.py similarity index 100% rename from src/truefoundry/types/get_ml_repo_response.py rename to src/truefoundry_sdk/types/get_ml_repo_response.py diff --git a/src/truefoundry/types/get_model_response.py b/src/truefoundry_sdk/types/get_model_response.py similarity index 100% rename from src/truefoundry/types/get_model_response.py rename to src/truefoundry_sdk/types/get_model_response.py diff --git a/src/truefoundry/types/get_model_version_response.py b/src/truefoundry_sdk/types/get_model_version_response.py similarity index 100% rename from src/truefoundry/types/get_model_version_response.py rename to src/truefoundry_sdk/types/get_model_version_response.py diff --git a/src/truefoundry/types/get_prompt_response.py b/src/truefoundry_sdk/types/get_prompt_response.py similarity index 100% rename from src/truefoundry/types/get_prompt_response.py rename to src/truefoundry_sdk/types/get_prompt_response.py diff --git a/src/truefoundry/types/get_prompt_version_response.py b/src/truefoundry_sdk/types/get_prompt_version_response.py similarity index 100% rename from src/truefoundry/types/get_prompt_version_response.py rename to src/truefoundry_sdk/types/get_prompt_version_response.py diff --git a/src/truefoundry/types/get_signed_ur_ls_request.py b/src/truefoundry_sdk/types/get_signed_ur_ls_request.py similarity index 100% rename from src/truefoundry/types/get_signed_ur_ls_request.py rename to src/truefoundry_sdk/types/get_signed_ur_ls_request.py diff --git a/src/truefoundry/types/get_signed_ur_ls_response.py b/src/truefoundry_sdk/types/get_signed_ur_ls_response.py similarity index 100% rename from src/truefoundry/types/get_signed_ur_ls_response.py rename to src/truefoundry_sdk/types/get_signed_ur_ls_response.py diff --git a/src/truefoundry/types/get_tool_response.py b/src/truefoundry_sdk/types/get_tool_response.py similarity index 100% rename from src/truefoundry/types/get_tool_response.py rename to src/truefoundry_sdk/types/get_tool_response.py diff --git a/src/truefoundry/types/get_tool_version_response.py b/src/truefoundry_sdk/types/get_tool_version_response.py similarity index 100% rename from src/truefoundry/types/get_tool_version_response.py rename to src/truefoundry_sdk/types/get_tool_version_response.py diff --git a/src/truefoundry/types/gluon_framework.py b/src/truefoundry_sdk/types/gluon_framework.py similarity index 100% rename from src/truefoundry/types/gluon_framework.py rename to src/truefoundry_sdk/types/gluon_framework.py diff --git a/src/truefoundry/types/h2o_framework.py b/src/truefoundry_sdk/types/h2o_framework.py similarity index 100% rename from src/truefoundry/types/h2o_framework.py rename to src/truefoundry_sdk/types/h2o_framework.py diff --git a/src/truefoundry/types/http_validation_error.py b/src/truefoundry_sdk/types/http_validation_error.py similarity index 100% rename from src/truefoundry/types/http_validation_error.py rename to src/truefoundry_sdk/types/http_validation_error.py diff --git a/src/truefoundry/types/image_content_part.py b/src/truefoundry_sdk/types/image_content_part.py similarity index 100% rename from src/truefoundry/types/image_content_part.py rename to src/truefoundry_sdk/types/image_content_part.py diff --git a/src/truefoundry/types/image_url.py b/src/truefoundry_sdk/types/image_url.py similarity index 100% rename from src/truefoundry/types/image_url.py rename to src/truefoundry_sdk/types/image_url.py diff --git a/src/truefoundry/types/infer_method_name.py b/src/truefoundry_sdk/types/infer_method_name.py similarity index 100% rename from src/truefoundry/types/infer_method_name.py rename to src/truefoundry_sdk/types/infer_method_name.py diff --git a/src/truefoundry/types/keras_framework.py b/src/truefoundry_sdk/types/keras_framework.py similarity index 100% rename from src/truefoundry/types/keras_framework.py rename to src/truefoundry_sdk/types/keras_framework.py diff --git a/src/truefoundry/types/library_name.py b/src/truefoundry_sdk/types/library_name.py similarity index 100% rename from src/truefoundry/types/library_name.py rename to src/truefoundry_sdk/types/library_name.py diff --git a/src/truefoundry/types/light_gbm_framework.py b/src/truefoundry_sdk/types/light_gbm_framework.py similarity index 100% rename from src/truefoundry/types/light_gbm_framework.py rename to src/truefoundry_sdk/types/light_gbm_framework.py diff --git a/src/truefoundry/types/list_agent_versions_response.py b/src/truefoundry_sdk/types/list_agent_versions_response.py similarity index 100% rename from src/truefoundry/types/list_agent_versions_response.py rename to src/truefoundry_sdk/types/list_agent_versions_response.py diff --git a/src/truefoundry/types/list_agents_response.py b/src/truefoundry_sdk/types/list_agents_response.py similarity index 100% rename from src/truefoundry/types/list_agents_response.py rename to src/truefoundry_sdk/types/list_agents_response.py diff --git a/src/truefoundry/types/list_artifact_version_response.py b/src/truefoundry_sdk/types/list_artifact_version_response.py similarity index 100% rename from src/truefoundry/types/list_artifact_version_response.py rename to src/truefoundry_sdk/types/list_artifact_version_response.py diff --git a/src/truefoundry/types/list_artifacts_response.py b/src/truefoundry_sdk/types/list_artifacts_response.py similarity index 100% rename from src/truefoundry/types/list_artifacts_response.py rename to src/truefoundry_sdk/types/list_artifacts_response.py diff --git a/src/truefoundry/types/list_data_directories_response.py b/src/truefoundry_sdk/types/list_data_directories_response.py similarity index 100% rename from src/truefoundry/types/list_data_directories_response.py rename to src/truefoundry_sdk/types/list_data_directories_response.py diff --git a/src/truefoundry/types/list_files_request.py b/src/truefoundry_sdk/types/list_files_request.py similarity index 100% rename from src/truefoundry/types/list_files_request.py rename to src/truefoundry_sdk/types/list_files_request.py diff --git a/src/truefoundry/types/list_files_response.py b/src/truefoundry_sdk/types/list_files_response.py similarity index 100% rename from src/truefoundry/types/list_files_response.py rename to src/truefoundry_sdk/types/list_files_response.py diff --git a/src/truefoundry/types/list_ml_repos_response.py b/src/truefoundry_sdk/types/list_ml_repos_response.py similarity index 100% rename from src/truefoundry/types/list_ml_repos_response.py rename to src/truefoundry_sdk/types/list_ml_repos_response.py diff --git a/src/truefoundry/types/list_model_versions_response.py b/src/truefoundry_sdk/types/list_model_versions_response.py similarity index 100% rename from src/truefoundry/types/list_model_versions_response.py rename to src/truefoundry_sdk/types/list_model_versions_response.py diff --git a/src/truefoundry/types/list_models_response.py b/src/truefoundry_sdk/types/list_models_response.py similarity index 100% rename from src/truefoundry/types/list_models_response.py rename to src/truefoundry_sdk/types/list_models_response.py diff --git a/src/truefoundry/types/list_prompt_versions_response.py b/src/truefoundry_sdk/types/list_prompt_versions_response.py similarity index 100% rename from src/truefoundry/types/list_prompt_versions_response.py rename to src/truefoundry_sdk/types/list_prompt_versions_response.py diff --git a/src/truefoundry/types/list_prompts_response.py b/src/truefoundry_sdk/types/list_prompts_response.py similarity index 100% rename from src/truefoundry/types/list_prompts_response.py rename to src/truefoundry_sdk/types/list_prompts_response.py diff --git a/src/truefoundry/types/list_tool_versions_response.py b/src/truefoundry_sdk/types/list_tool_versions_response.py similarity index 100% rename from src/truefoundry/types/list_tool_versions_response.py rename to src/truefoundry_sdk/types/list_tool_versions_response.py diff --git a/src/truefoundry/types/list_tools_response.py b/src/truefoundry_sdk/types/list_tools_response.py similarity index 100% rename from src/truefoundry/types/list_tools_response.py rename to src/truefoundry_sdk/types/list_tools_response.py diff --git a/src/truefoundry/types/local_artifact_source.py b/src/truefoundry_sdk/types/local_artifact_source.py similarity index 100% rename from src/truefoundry/types/local_artifact_source.py rename to src/truefoundry_sdk/types/local_artifact_source.py diff --git a/src/truefoundry/types/local_model_source.py b/src/truefoundry_sdk/types/local_model_source.py similarity index 100% rename from src/truefoundry/types/local_model_source.py rename to src/truefoundry_sdk/types/local_model_source.py diff --git a/src/truefoundry/types/manifest.py b/src/truefoundry_sdk/types/manifest.py similarity index 100% rename from src/truefoundry/types/manifest.py rename to src/truefoundry_sdk/types/manifest.py diff --git a/src/truefoundry/types/method.py b/src/truefoundry_sdk/types/method.py similarity index 100% rename from src/truefoundry/types/method.py rename to src/truefoundry_sdk/types/method.py diff --git a/src/truefoundry/types/mime_type.py b/src/truefoundry_sdk/types/mime_type.py similarity index 100% rename from src/truefoundry/types/mime_type.py rename to src/truefoundry_sdk/types/mime_type.py diff --git a/src/truefoundry/types/ml_repo.py b/src/truefoundry_sdk/types/ml_repo.py similarity index 100% rename from src/truefoundry/types/ml_repo.py rename to src/truefoundry_sdk/types/ml_repo.py diff --git a/src/truefoundry/types/ml_repo_manifest.py b/src/truefoundry_sdk/types/ml_repo_manifest.py similarity index 100% rename from src/truefoundry/types/ml_repo_manifest.py rename to src/truefoundry_sdk/types/ml_repo_manifest.py diff --git a/src/truefoundry/types/model.py b/src/truefoundry_sdk/types/model.py similarity index 100% rename from src/truefoundry/types/model.py rename to src/truefoundry_sdk/types/model.py diff --git a/src/truefoundry/types/model_configuration.py b/src/truefoundry_sdk/types/model_configuration.py similarity index 100% rename from src/truefoundry/types/model_configuration.py rename to src/truefoundry_sdk/types/model_configuration.py diff --git a/src/truefoundry/types/model_version.py b/src/truefoundry_sdk/types/model_version.py similarity index 100% rename from src/truefoundry/types/model_version.py rename to src/truefoundry_sdk/types/model_version.py diff --git a/src/truefoundry/types/model_version_environment.py b/src/truefoundry_sdk/types/model_version_environment.py similarity index 100% rename from src/truefoundry/types/model_version_environment.py rename to src/truefoundry_sdk/types/model_version_environment.py diff --git a/src/truefoundry/types/model_version_manifest.py b/src/truefoundry_sdk/types/model_version_manifest.py similarity index 100% rename from src/truefoundry/types/model_version_manifest.py rename to src/truefoundry_sdk/types/model_version_manifest.py diff --git a/src/truefoundry/types/multi_part_upload.py b/src/truefoundry_sdk/types/multi_part_upload.py similarity index 100% rename from src/truefoundry/types/multi_part_upload.py rename to src/truefoundry_sdk/types/multi_part_upload.py diff --git a/src/truefoundry/types/multi_part_upload_response.py b/src/truefoundry_sdk/types/multi_part_upload_response.py similarity index 100% rename from src/truefoundry/types/multi_part_upload_response.py rename to src/truefoundry_sdk/types/multi_part_upload_response.py diff --git a/src/truefoundry/types/multi_part_upload_storage_provider.py b/src/truefoundry_sdk/types/multi_part_upload_storage_provider.py similarity index 100% rename from src/truefoundry/types/multi_part_upload_storage_provider.py rename to src/truefoundry_sdk/types/multi_part_upload_storage_provider.py diff --git a/src/truefoundry/types/onnx_framework.py b/src/truefoundry_sdk/types/onnx_framework.py similarity index 100% rename from src/truefoundry/types/onnx_framework.py rename to src/truefoundry_sdk/types/onnx_framework.py diff --git a/src/truefoundry/types/operation.py b/src/truefoundry_sdk/types/operation.py similarity index 100% rename from src/truefoundry/types/operation.py rename to src/truefoundry_sdk/types/operation.py diff --git a/src/truefoundry/types/paddle_framework.py b/src/truefoundry_sdk/types/paddle_framework.py similarity index 100% rename from src/truefoundry/types/paddle_framework.py rename to src/truefoundry_sdk/types/paddle_framework.py diff --git a/src/truefoundry/types/pagination.py b/src/truefoundry_sdk/types/pagination.py similarity index 100% rename from src/truefoundry/types/pagination.py rename to src/truefoundry_sdk/types/pagination.py diff --git a/src/truefoundry/types/parameters.py b/src/truefoundry_sdk/types/parameters.py similarity index 100% rename from src/truefoundry/types/parameters.py rename to src/truefoundry_sdk/types/parameters.py diff --git a/src/truefoundry/types/prompt.py b/src/truefoundry_sdk/types/prompt.py similarity index 100% rename from src/truefoundry/types/prompt.py rename to src/truefoundry_sdk/types/prompt.py diff --git a/src/truefoundry/types/prompt_version.py b/src/truefoundry_sdk/types/prompt_version.py similarity index 100% rename from src/truefoundry/types/prompt_version.py rename to src/truefoundry_sdk/types/prompt_version.py diff --git a/src/truefoundry/types/py_torch_framework.py b/src/truefoundry_sdk/types/py_torch_framework.py similarity index 100% rename from src/truefoundry/types/py_torch_framework.py rename to src/truefoundry_sdk/types/py_torch_framework.py diff --git a/src/truefoundry/types/resolve_agent_app_response.py b/src/truefoundry_sdk/types/resolve_agent_app_response.py similarity index 100% rename from src/truefoundry/types/resolve_agent_app_response.py rename to src/truefoundry_sdk/types/resolve_agent_app_response.py diff --git a/src/truefoundry/types/signed_url.py b/src/truefoundry_sdk/types/signed_url.py similarity index 100% rename from src/truefoundry/types/signed_url.py rename to src/truefoundry_sdk/types/signed_url.py diff --git a/src/truefoundry/types/sklearn_framework.py b/src/truefoundry_sdk/types/sklearn_framework.py similarity index 100% rename from src/truefoundry/types/sklearn_framework.py rename to src/truefoundry_sdk/types/sklearn_framework.py diff --git a/src/truefoundry/types/sklearn_model_schema.py b/src/truefoundry_sdk/types/sklearn_model_schema.py similarity index 100% rename from src/truefoundry/types/sklearn_model_schema.py rename to src/truefoundry_sdk/types/sklearn_model_schema.py diff --git a/src/truefoundry/types/sklearn_serialization_format.py b/src/truefoundry_sdk/types/sklearn_serialization_format.py similarity index 100% rename from src/truefoundry/types/sklearn_serialization_format.py rename to src/truefoundry_sdk/types/sklearn_serialization_format.py diff --git a/src/truefoundry/types/source.py b/src/truefoundry_sdk/types/source.py similarity index 100% rename from src/truefoundry/types/source.py rename to src/truefoundry_sdk/types/source.py diff --git a/src/truefoundry/types/spa_cy_framework.py b/src/truefoundry_sdk/types/spa_cy_framework.py similarity index 100% rename from src/truefoundry/types/spa_cy_framework.py rename to src/truefoundry_sdk/types/spa_cy_framework.py diff --git a/src/truefoundry/types/stage_artifact_response.py b/src/truefoundry_sdk/types/stage_artifact_response.py similarity index 100% rename from src/truefoundry/types/stage_artifact_response.py rename to src/truefoundry_sdk/types/stage_artifact_response.py diff --git a/src/truefoundry/types/stats_models_framework.py b/src/truefoundry_sdk/types/stats_models_framework.py similarity index 100% rename from src/truefoundry/types/stats_models_framework.py rename to src/truefoundry_sdk/types/stats_models_framework.py diff --git a/src/truefoundry/types/stop.py b/src/truefoundry_sdk/types/stop.py similarity index 100% rename from src/truefoundry/types/stop.py rename to src/truefoundry_sdk/types/stop.py diff --git a/src/truefoundry/types/subject.py b/src/truefoundry_sdk/types/subject.py similarity index 100% rename from src/truefoundry/types/subject.py rename to src/truefoundry_sdk/types/subject.py diff --git a/src/truefoundry/types/subject_type.py b/src/truefoundry_sdk/types/subject_type.py similarity index 100% rename from src/truefoundry/types/subject_type.py rename to src/truefoundry_sdk/types/subject_type.py diff --git a/src/truefoundry/types/system_message.py b/src/truefoundry_sdk/types/system_message.py similarity index 100% rename from src/truefoundry/types/system_message.py rename to src/truefoundry_sdk/types/system_message.py diff --git a/src/truefoundry/types/tensor_flow_framework.py b/src/truefoundry_sdk/types/tensor_flow_framework.py similarity index 100% rename from src/truefoundry/types/tensor_flow_framework.py rename to src/truefoundry_sdk/types/tensor_flow_framework.py diff --git a/src/truefoundry/types/text.py b/src/truefoundry_sdk/types/text.py similarity index 100% rename from src/truefoundry/types/text.py rename to src/truefoundry_sdk/types/text.py diff --git a/src/truefoundry/types/text_content_part.py b/src/truefoundry_sdk/types/text_content_part.py similarity index 100% rename from src/truefoundry/types/text_content_part.py rename to src/truefoundry_sdk/types/text_content_part.py diff --git a/src/truefoundry/types/token_pagination.py b/src/truefoundry_sdk/types/token_pagination.py similarity index 100% rename from src/truefoundry/types/token_pagination.py rename to src/truefoundry_sdk/types/token_pagination.py diff --git a/src/truefoundry/types/tool.py b/src/truefoundry_sdk/types/tool.py similarity index 100% rename from src/truefoundry/types/tool.py rename to src/truefoundry_sdk/types/tool.py diff --git a/src/truefoundry/types/tool_version.py b/src/truefoundry_sdk/types/tool_version.py similarity index 100% rename from src/truefoundry/types/tool_version.py rename to src/truefoundry_sdk/types/tool_version.py diff --git a/src/truefoundry/types/transformers_framework.py b/src/truefoundry_sdk/types/transformers_framework.py similarity index 100% rename from src/truefoundry/types/transformers_framework.py rename to src/truefoundry_sdk/types/transformers_framework.py diff --git a/src/truefoundry/types/true_foundry_managed_source.py b/src/truefoundry_sdk/types/true_foundry_managed_source.py similarity index 100% rename from src/truefoundry/types/true_foundry_managed_source.py rename to src/truefoundry_sdk/types/true_foundry_managed_source.py diff --git a/src/truefoundry/types/url.py b/src/truefoundry_sdk/types/url.py similarity index 100% rename from src/truefoundry/types/url.py rename to src/truefoundry_sdk/types/url.py diff --git a/src/truefoundry/types/user_message.py b/src/truefoundry_sdk/types/user_message.py similarity index 100% rename from src/truefoundry/types/user_message.py rename to src/truefoundry_sdk/types/user_message.py diff --git a/src/truefoundry/types/user_message_content_item.py b/src/truefoundry_sdk/types/user_message_content_item.py similarity index 100% rename from src/truefoundry/types/user_message_content_item.py rename to src/truefoundry_sdk/types/user_message_content_item.py diff --git a/src/truefoundry/types/validation_error.py b/src/truefoundry_sdk/types/validation_error.py similarity index 100% rename from src/truefoundry/types/validation_error.py rename to src/truefoundry_sdk/types/validation_error.py diff --git a/src/truefoundry/types/validation_error_loc_item.py b/src/truefoundry_sdk/types/validation_error_loc_item.py similarity index 100% rename from src/truefoundry/types/validation_error_loc_item.py rename to src/truefoundry_sdk/types/validation_error_loc_item.py diff --git a/src/truefoundry/types/xg_boost_framework.py b/src/truefoundry_sdk/types/xg_boost_framework.py similarity index 100% rename from src/truefoundry/types/xg_boost_framework.py rename to src/truefoundry_sdk/types/xg_boost_framework.py diff --git a/src/truefoundry/types/xg_boost_model_schema.py b/src/truefoundry_sdk/types/xg_boost_model_schema.py similarity index 100% rename from src/truefoundry/types/xg_boost_model_schema.py rename to src/truefoundry_sdk/types/xg_boost_model_schema.py diff --git a/src/truefoundry/types/xg_boost_serialization_format.py b/src/truefoundry_sdk/types/xg_boost_serialization_format.py similarity index 100% rename from src/truefoundry/types/xg_boost_serialization_format.py rename to src/truefoundry_sdk/types/xg_boost_serialization_format.py diff --git a/src/truefoundry/v1/__init__.py b/src/truefoundry_sdk/v1/__init__.py similarity index 100% rename from src/truefoundry/v1/__init__.py rename to src/truefoundry_sdk/v1/__init__.py diff --git a/src/truefoundry/v1/agent_versions/__init__.py b/src/truefoundry_sdk/v1/agent_versions/__init__.py similarity index 100% rename from src/truefoundry/v1/agent_versions/__init__.py rename to src/truefoundry_sdk/v1/agent_versions/__init__.py diff --git a/src/truefoundry/v1/agent_versions/client.py b/src/truefoundry_sdk/v1/agent_versions/client.py similarity index 97% rename from src/truefoundry/v1/agent_versions/client.py rename to src/truefoundry_sdk/v1/agent_versions/client.py index 079bf0b9..54c71cbb 100644 --- a/src/truefoundry/v1/agent_versions/client.py +++ b/src/truefoundry_sdk/v1/agent_versions/client.py @@ -41,7 +41,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -98,7 +98,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -169,7 +169,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -244,7 +244,7 @@ def resolve(self, *, fqn: str, request_options: typing.Optional[RequestOptions] Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -311,7 +311,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -376,7 +376,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -455,7 +455,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -540,7 +540,7 @@ async def resolve( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/agents/__init__.py b/src/truefoundry_sdk/v1/agents/__init__.py similarity index 100% rename from src/truefoundry/v1/agents/__init__.py rename to src/truefoundry_sdk/v1/agents/__init__.py diff --git a/src/truefoundry/v1/agents/client.py b/src/truefoundry_sdk/v1/agents/client.py similarity index 98% rename from src/truefoundry/v1/agents/client.py rename to src/truefoundry_sdk/v1/agents/client.py index ad6c6912..287e357a 100644 --- a/src/truefoundry/v1/agents/client.py +++ b/src/truefoundry_sdk/v1/agents/client.py @@ -44,7 +44,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -99,7 +99,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -168,7 +168,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -245,7 +245,7 @@ def create_or_update( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -320,7 +320,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -383,7 +383,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -460,7 +460,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -545,7 +545,7 @@ async def create_or_update( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, diff --git a/src/truefoundry/v1/artifact_versions/__init__.py b/src/truefoundry_sdk/v1/artifact_versions/__init__.py similarity index 100% rename from src/truefoundry/v1/artifact_versions/__init__.py rename to src/truefoundry_sdk/v1/artifact_versions/__init__.py diff --git a/src/truefoundry/v1/artifact_versions/client.py b/src/truefoundry_sdk/v1/artifact_versions/client.py similarity index 98% rename from src/truefoundry/v1/artifact_versions/client.py rename to src/truefoundry_sdk/v1/artifact_versions/client.py index ba11740c..763f97ba 100644 --- a/src/truefoundry/v1/artifact_versions/client.py +++ b/src/truefoundry_sdk/v1/artifact_versions/client.py @@ -51,7 +51,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -108,7 +108,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -188,7 +188,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -280,7 +280,7 @@ def get_signed_urls( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -349,7 +349,7 @@ def create_multi_part_upload( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -414,7 +414,7 @@ def stage( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -499,7 +499,7 @@ def list_files( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -591,7 +591,7 @@ async def get( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -656,7 +656,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -744,7 +744,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -844,7 +844,7 @@ async def get_signed_urls( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -921,7 +921,7 @@ async def create_multi_part_upload( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -994,7 +994,7 @@ async def stage( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, @@ -1087,7 +1087,7 @@ async def list_files( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/artifact_versions/types/__init__.py b/src/truefoundry_sdk/v1/artifact_versions/types/__init__.py similarity index 100% rename from src/truefoundry/v1/artifact_versions/types/__init__.py rename to src/truefoundry_sdk/v1/artifact_versions/types/__init__.py diff --git a/src/truefoundry/v1/artifact_versions/types/manifest.py b/src/truefoundry_sdk/v1/artifact_versions/types/manifest.py similarity index 100% rename from src/truefoundry/v1/artifact_versions/types/manifest.py rename to src/truefoundry_sdk/v1/artifact_versions/types/manifest.py diff --git a/src/truefoundry/v1/artifacts/__init__.py b/src/truefoundry_sdk/v1/artifacts/__init__.py similarity index 100% rename from src/truefoundry/v1/artifacts/__init__.py rename to src/truefoundry_sdk/v1/artifacts/__init__.py diff --git a/src/truefoundry/v1/artifacts/client.py b/src/truefoundry_sdk/v1/artifacts/client.py similarity index 98% rename from src/truefoundry/v1/artifacts/client.py rename to src/truefoundry_sdk/v1/artifacts/client.py index cc2dd60e..99649f0c 100644 --- a/src/truefoundry/v1/artifacts/client.py +++ b/src/truefoundry_sdk/v1/artifacts/client.py @@ -44,7 +44,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -99,7 +99,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -171,7 +171,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -250,7 +250,7 @@ def create_or_update( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -325,7 +325,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -388,7 +388,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -468,7 +468,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -555,7 +555,7 @@ async def create_or_update( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, diff --git a/src/truefoundry/v1/client.py b/src/truefoundry_sdk/v1/client.py similarity index 99% rename from src/truefoundry/v1/client.py rename to src/truefoundry_sdk/v1/client.py index 1f1a6378..caacced7 100644 --- a/src/truefoundry/v1/client.py +++ b/src/truefoundry_sdk/v1/client.py @@ -73,7 +73,7 @@ def apply(self, *, manifest: Manifest, request_options: typing.Optional[RequestO Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -162,7 +162,7 @@ async def apply( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, diff --git a/src/truefoundry/v1/data_directories/__init__.py b/src/truefoundry_sdk/v1/data_directories/__init__.py similarity index 100% rename from src/truefoundry/v1/data_directories/__init__.py rename to src/truefoundry_sdk/v1/data_directories/__init__.py diff --git a/src/truefoundry/v1/data_directories/client.py b/src/truefoundry_sdk/v1/data_directories/client.py similarity index 98% rename from src/truefoundry/v1/data_directories/client.py rename to src/truefoundry_sdk/v1/data_directories/client.py index 49ffbb8e..56bedaa5 100644 --- a/src/truefoundry/v1/data_directories/client.py +++ b/src/truefoundry_sdk/v1/data_directories/client.py @@ -57,7 +57,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -130,7 +130,7 @@ def delete( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -215,7 +215,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -292,7 +292,7 @@ def create_or_update( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -380,7 +380,7 @@ def get_signed_urls( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -466,7 +466,7 @@ def list_files( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -560,7 +560,7 @@ def delete_files( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -639,7 +639,7 @@ def create_multipart_upload( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -720,7 +720,7 @@ async def get( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -801,7 +801,7 @@ async def delete( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -894,7 +894,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -979,7 +979,7 @@ async def create_or_update( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, @@ -1075,7 +1075,7 @@ async def get_signed_urls( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -1169,7 +1169,7 @@ async def list_files( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -1271,7 +1271,7 @@ async def delete_files( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -1358,7 +1358,7 @@ async def create_multipart_upload( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/ml_repos/__init__.py b/src/truefoundry_sdk/v1/ml_repos/__init__.py similarity index 100% rename from src/truefoundry/v1/ml_repos/__init__.py rename to src/truefoundry_sdk/v1/ml_repos/__init__.py diff --git a/src/truefoundry/v1/ml_repos/client.py b/src/truefoundry_sdk/v1/ml_repos/client.py similarity index 98% rename from src/truefoundry/v1/ml_repos/client.py rename to src/truefoundry_sdk/v1/ml_repos/client.py index c5d6c4c0..b2155493 100644 --- a/src/truefoundry/v1/ml_repos/client.py +++ b/src/truefoundry_sdk/v1/ml_repos/client.py @@ -46,7 +46,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -109,7 +109,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -183,7 +183,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -271,7 +271,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -342,7 +342,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -424,7 +424,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/model_versions/__init__.py b/src/truefoundry_sdk/v1/model_versions/__init__.py similarity index 100% rename from src/truefoundry/v1/model_versions/__init__.py rename to src/truefoundry_sdk/v1/model_versions/__init__.py diff --git a/src/truefoundry/v1/model_versions/client.py b/src/truefoundry_sdk/v1/model_versions/client.py similarity index 98% rename from src/truefoundry/v1/model_versions/client.py rename to src/truefoundry_sdk/v1/model_versions/client.py index f4a28483..fb154027 100644 --- a/src/truefoundry/v1/model_versions/client.py +++ b/src/truefoundry_sdk/v1/model_versions/client.py @@ -40,7 +40,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -97,7 +97,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -180,7 +180,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -272,7 +272,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -337,7 +337,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -428,7 +428,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/models/__init__.py b/src/truefoundry_sdk/v1/models/__init__.py similarity index 100% rename from src/truefoundry/v1/models/__init__.py rename to src/truefoundry_sdk/v1/models/__init__.py diff --git a/src/truefoundry/v1/models/client.py b/src/truefoundry_sdk/v1/models/client.py similarity index 98% rename from src/truefoundry/v1/models/client.py rename to src/truefoundry_sdk/v1/models/client.py index bc274928..46b53660 100644 --- a/src/truefoundry/v1/models/client.py +++ b/src/truefoundry_sdk/v1/models/client.py @@ -44,7 +44,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -99,7 +99,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -171,7 +171,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -250,7 +250,7 @@ def create_or_update( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -325,7 +325,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -388,7 +388,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -468,7 +468,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -555,7 +555,7 @@ async def create_or_update( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, diff --git a/src/truefoundry/v1/prompt_versions/__init__.py b/src/truefoundry_sdk/v1/prompt_versions/__init__.py similarity index 100% rename from src/truefoundry/v1/prompt_versions/__init__.py rename to src/truefoundry_sdk/v1/prompt_versions/__init__.py diff --git a/src/truefoundry/v1/prompt_versions/client.py b/src/truefoundry_sdk/v1/prompt_versions/client.py similarity index 98% rename from src/truefoundry/v1/prompt_versions/client.py rename to src/truefoundry_sdk/v1/prompt_versions/client.py index 3dc197d8..c550b4e3 100644 --- a/src/truefoundry/v1/prompt_versions/client.py +++ b/src/truefoundry_sdk/v1/prompt_versions/client.py @@ -40,7 +40,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -97,7 +97,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -168,7 +168,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -254,7 +254,7 @@ async def get( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -319,7 +319,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -398,7 +398,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/prompts/__init__.py b/src/truefoundry_sdk/v1/prompts/__init__.py similarity index 100% rename from src/truefoundry/v1/prompts/__init__.py rename to src/truefoundry_sdk/v1/prompts/__init__.py diff --git a/src/truefoundry/v1/prompts/client.py b/src/truefoundry_sdk/v1/prompts/client.py similarity index 98% rename from src/truefoundry/v1/prompts/client.py rename to src/truefoundry_sdk/v1/prompts/client.py index 13cbf91e..b40d6e1f 100644 --- a/src/truefoundry/v1/prompts/client.py +++ b/src/truefoundry_sdk/v1/prompts/client.py @@ -44,7 +44,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -99,7 +99,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -168,7 +168,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -245,7 +245,7 @@ def create_or_update( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -320,7 +320,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -383,7 +383,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -460,7 +460,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -545,7 +545,7 @@ async def create_or_update( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, diff --git a/src/truefoundry/v1/tool_versions/__init__.py b/src/truefoundry_sdk/v1/tool_versions/__init__.py similarity index 100% rename from src/truefoundry/v1/tool_versions/__init__.py rename to src/truefoundry_sdk/v1/tool_versions/__init__.py diff --git a/src/truefoundry/v1/tool_versions/client.py b/src/truefoundry_sdk/v1/tool_versions/client.py similarity index 98% rename from src/truefoundry/v1/tool_versions/client.py rename to src/truefoundry_sdk/v1/tool_versions/client.py index b4137767..6b373069 100644 --- a/src/truefoundry/v1/tool_versions/client.py +++ b/src/truefoundry_sdk/v1/tool_versions/client.py @@ -40,7 +40,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -97,7 +97,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -168,7 +168,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -252,7 +252,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -317,7 +317,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -396,7 +396,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", diff --git a/src/truefoundry/v1/tools/__init__.py b/src/truefoundry_sdk/v1/tools/__init__.py similarity index 100% rename from src/truefoundry/v1/tools/__init__.py rename to src/truefoundry_sdk/v1/tools/__init__.py diff --git a/src/truefoundry/v1/tools/client.py b/src/truefoundry_sdk/v1/tools/client.py similarity index 98% rename from src/truefoundry/v1/tools/client.py rename to src/truefoundry_sdk/v1/tools/client.py index e84ad6c9..cce3c692 100644 --- a/src/truefoundry/v1/tools/client.py +++ b/src/truefoundry_sdk/v1/tools/client.py @@ -44,7 +44,7 @@ def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = Non Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -99,7 +99,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -168,7 +168,7 @@ def list( Examples -------- - from truefoundry import TrueFoundry + from truefoundry_sdk import TrueFoundry client = TrueFoundry( api_key="YOUR_API_KEY", @@ -245,7 +245,7 @@ def create_or_update( Examples -------- - from truefoundry import ( + from truefoundry_sdk import ( ModelVersionManifest, TrueFoundry, TrueFoundryManagedSource, @@ -320,7 +320,7 @@ async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -383,7 +383,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -460,7 +460,7 @@ async def list( -------- import asyncio - from truefoundry import AsyncTrueFoundry + from truefoundry_sdk import AsyncTrueFoundry client = AsyncTrueFoundry( api_key="YOUR_API_KEY", @@ -545,7 +545,7 @@ async def create_or_update( -------- import asyncio - from truefoundry import ( + from truefoundry_sdk import ( AsyncTrueFoundry, ModelVersionManifest, TrueFoundryManagedSource, diff --git a/src/truefoundry/version.py b/src/truefoundry_sdk/version.py similarity index 100% rename from src/truefoundry/version.py rename to src/truefoundry_sdk/version.py diff --git a/tests/utils/assets/models/circle.py b/tests/utils/assets/models/circle.py index 796a78c2..0eb71790 100644 --- a/tests/utils/assets/models/circle.py +++ b/tests/utils/assets/models/circle.py @@ -4,7 +4,7 @@ import typing_extensions import typing_extensions -from truefoundry.core.serialization import FieldMetadata +from truefoundry_sdk.core.serialization import FieldMetadata class CircleParams(typing_extensions.TypedDict): diff --git a/tests/utils/assets/models/object_with_optional_field.py b/tests/utils/assets/models/object_with_optional_field.py index 231daa89..26b7ff4b 100644 --- a/tests/utils/assets/models/object_with_optional_field.py +++ b/tests/utils/assets/models/object_with_optional_field.py @@ -5,7 +5,7 @@ import typing_extensions import typing import typing_extensions -from truefoundry.core.serialization import FieldMetadata +from truefoundry_sdk.core.serialization import FieldMetadata import datetime as dt import uuid from .color import Color diff --git a/tests/utils/assets/models/shape.py b/tests/utils/assets/models/shape.py index 04b52bba..9b18bb73 100644 --- a/tests/utils/assets/models/shape.py +++ b/tests/utils/assets/models/shape.py @@ -6,7 +6,7 @@ import typing_extensions import typing_extensions import typing -from truefoundry.core.serialization import FieldMetadata +from truefoundry_sdk.core.serialization import FieldMetadata class Base(typing_extensions.TypedDict): diff --git a/tests/utils/assets/models/square.py b/tests/utils/assets/models/square.py index 16bf3a11..02bc1749 100644 --- a/tests/utils/assets/models/square.py +++ b/tests/utils/assets/models/square.py @@ -4,7 +4,7 @@ import typing_extensions import typing_extensions -from truefoundry.core.serialization import FieldMetadata +from truefoundry_sdk.core.serialization import FieldMetadata class SquareParams(typing_extensions.TypedDict): diff --git a/tests/utils/test_http_client.py b/tests/utils/test_http_client.py index d14bb615..4c875386 100644 --- a/tests/utils/test_http_client.py +++ b/tests/utils/test_http_client.py @@ -1,7 +1,7 @@ # This file was auto-generated by Fern from our API Definition. -from truefoundry.core.http_client import get_request_body -from truefoundry.core.request_options import RequestOptions +from truefoundry_sdk.core.http_client import get_request_body +from truefoundry_sdk.core.request_options import RequestOptions def get_request_options() -> RequestOptions: diff --git a/tests/utils/test_query_encoding.py b/tests/utils/test_query_encoding.py index a8d7ae2c..916ef66e 100644 --- a/tests/utils/test_query_encoding.py +++ b/tests/utils/test_query_encoding.py @@ -1,7 +1,7 @@ # This file was auto-generated by Fern from our API Definition. -from truefoundry.core.query_encoder import encode_query +from truefoundry_sdk.core.query_encoder import encode_query def test_query_encoding_deep_objects() -> None: diff --git a/tests/utils/test_serialization.py b/tests/utils/test_serialization.py index a3564a17..94a4bcc7 100644 --- a/tests/utils/test_serialization.py +++ b/tests/utils/test_serialization.py @@ -2,7 +2,7 @@ from typing import List, Any -from truefoundry.core.serialization import convert_and_respect_annotation_metadata +from truefoundry_sdk.core.serialization import convert_and_respect_annotation_metadata from .assets.models import ShapeParams, ObjectWithOptionalFieldParams