-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Problem We need to update the generated core module to reflect upcoming API changes ## Solution - Migrate from v5 to v7 openapi generator to avoid generating code with deprecated urllib3 usage. - Regenerate contents of `pinecone.core` using pinecone-protos (private) repo. - Refactor to move all non-generated items out from under `pinecone.core`. These never should have been under `pinecone.core` in the first place. - Added `pinecone.utils` - Added `pinecone.grpc` to hold `GRPCIndex` and related code. - Add new dependencies required by updated generated code (`pydantic` for typechecking, `aenum` for enums) - Disable legacy `integ` tests which won't work until we refactor configuration. ## Type of Change - [x] New feature (non-breaking change which adds functionality)
- Loading branch information
Showing
100 changed files
with
6,845 additions
and
13,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,65 @@ | ||
# coding: utf-8 | ||
|
||
# flake8: noqa | ||
|
||
""" | ||
Pinecone API | ||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 | ||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: version not set | ||
Contact: support@pinecone.io | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
__version__ = "1.0.0" | ||
|
||
# import apis into sdk package | ||
from pinecone.core.client.api.index_operations_api import IndexOperationsApi | ||
from pinecone.core.client.api.vector_operations_api import VectorOperationsApi | ||
|
||
# import ApiClient | ||
from pinecone.core.client.api_response import ApiResponse | ||
from pinecone.core.client.api_client import ApiClient | ||
|
||
# import Configuration | ||
from pinecone.core.client.configuration import Configuration | ||
|
||
# import exceptions | ||
from pinecone.core.client.exceptions import OpenApiException | ||
from pinecone.core.client.exceptions import ApiAttributeError | ||
from pinecone.core.client.exceptions import ApiTypeError | ||
from pinecone.core.client.exceptions import ApiValueError | ||
from pinecone.core.client.exceptions import ApiKeyError | ||
from pinecone.core.client.exceptions import ApiAttributeError | ||
from pinecone.core.client.exceptions import ApiException | ||
|
||
# import models into sdk package | ||
from pinecone.core.client.models.approximated_config import ApproximatedConfig | ||
from pinecone.core.client.models.collection_meta import CollectionMeta | ||
from pinecone.core.client.models.create_collection_request import CreateCollectionRequest | ||
from pinecone.core.client.models.create_request import CreateRequest | ||
from pinecone.core.client.models.create_request_index_config import CreateRequestIndexConfig | ||
from pinecone.core.client.models.delete_request import DeleteRequest | ||
from pinecone.core.client.models.describe_index_stats_request import DescribeIndexStatsRequest | ||
from pinecone.core.client.models.describe_index_stats_response import DescribeIndexStatsResponse | ||
from pinecone.core.client.models.fetch_response import FetchResponse | ||
from pinecone.core.client.models.hnsw_config import HnswConfig | ||
from pinecone.core.client.models.index_meta import IndexMeta | ||
from pinecone.core.client.models.index_meta_database import IndexMetaDatabase | ||
from pinecone.core.client.models.index_meta_database_index_config import IndexMetaDatabaseIndexConfig | ||
from pinecone.core.client.models.index_meta_status import IndexMetaStatus | ||
from pinecone.core.client.models.list_indexes200_response import ListIndexes200Response | ||
from pinecone.core.client.models.namespace_summary import NamespaceSummary | ||
from pinecone.core.client.models.patch_request import PatchRequest | ||
from pinecone.core.client.models.protobuf_any import ProtobufAny | ||
from pinecone.core.client.models.protobuf_null_value import ProtobufNullValue | ||
from pinecone.core.client.models.query_request import QueryRequest | ||
from pinecone.core.client.models.query_response import QueryResponse | ||
from pinecone.core.client.models.query_vector import QueryVector | ||
from pinecone.core.client.models.rpc_status import RpcStatus | ||
from pinecone.core.client.models.scored_vector import ScoredVector | ||
from pinecone.core.client.models.single_query_results import SingleQueryResults | ||
from pinecone.core.client.models.sparse_values import SparseValues | ||
from pinecone.core.client.models.update_request import UpdateRequest | ||
from pinecone.core.client.models.upsert_request import UpsertRequest | ||
from pinecone.core.client.models.upsert_response import UpsertResponse | ||
from pinecone.core.client.models.vector import Vector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# do not import all apis into this module because that uses a lot of memory and stack frames | ||
# if you need the ability to import all apis from one package, import them with | ||
# from pinecone.core.client.apis import IndexOperationsApi | ||
# flake8: noqa | ||
|
||
# import apis into api package | ||
from pinecone.core.client.api.index_operations_api import IndexOperationsApi | ||
from pinecone.core.client.api.vector_operations_api import VectorOperationsApi |
Oops, something went wrong.