The Mixpeek Python SDK uses simplified, developer-friendly method names with all v1 prefixes and redundant path information removed.
| Original (Auto-generated) | Simplified | API |
|---|---|---|
create_collection_v1_collections_post |
create_collection |
Collections |
get_collection_v1_collections__collection_identifier__get |
get_collection |
Collections |
list_collections_v1_collections_list_post |
list_collections |
Collections |
delete_collection_v1_collections__collection_identifier__delete |
delete_collection |
Collections |
describe_collection_features_route_v1_collections__collection_identifier__features_get |
describe_collection_features |
Collections |
create_retriever_v1_retrievers_post |
create_retriever |
Retrievers |
execute_retriever_v1_retrievers__retriever_identifier__execute_post |
execute_retriever |
Retrievers |
list_retrievers_v1_retrievers_list_post |
list_retrievers |
Retrievers |
create_document_v1_collections__collection_identifier__documents_post |
create_document |
Documents |
get_document_v1_collections__collection_identifier__documents__document_id__get |
get_document |
Documents |
create_organization_private_v1_private_organizations_post |
create_organization |
Organizations |
create_namespace_v1_namespaces_post |
create_namespace |
Namespaces |
create_bucket_v1_buckets_post |
create_bucket |
Buckets |
execute_cluster_v1_clusters__cluster_identifier__execute_post |
execute_cluster |
Clusters |
create_taxonomy_v1_taxonomies_post |
create_taxonomy |
Taxonomies |
All methods follow a consistent, intuitive pattern:
{action}_{resource}- create - Create a new resource
- get - Retrieve a specific resource
- list - List multiple resources
- update - Update an existing resource
- delete - Delete a resource
- execute - Execute an operation (search, cluster, etc.)
- describe - Get detailed information
from mixpeek.api import collections_api
# Clean, intuitive method names
collections.create_collection(...) # Create
collections.get_collection(...) # Read
collections.update_collection(...) # Update
collections.delete_collection(...) # Delete
collections.list_collections() # Listfrom mixpeek.api import retrievers_api
# Clear, simple methods
retrievers.create_retriever(...)
retrievers.get_retriever(...)
retrievers.execute_retriever(...) # Execute search
retrievers.list_retrievers()
retrievers.delete_retriever(...)from mixpeek.api import collection_documents_api
# Straightforward document operations
documents.create_document(...)
documents.get_document(...)
documents.update_document(...)
documents.delete_document(...)
documents.list_documents()from mixpeek.api import clusters_api
# Simple cluster management
clusters.create_cluster(...)
clusters.get_cluster(...)
clusters.execute_cluster(...) # Run clustering
clusters.list_clusters()
clusters.delete_cluster(...)- No version prefixes: No more
v1_in method names - No HTTP methods: No
_post,_get,_deletesuffixes - No path duplication: No redundant
collections_collectionsorlist_list - Clean identifiers: Parameters like
collection_identifierinstead of path components
Every API follows CRUD patterns:
# Pattern is always the same
api.create_{resource}(...)
api.get_{resource}(...)
api.update_{resource}(...)
api.delete_{resource}(...)
api.list_{resources}()With simplified names, IDE autocomplete is much more useful:
from mixpeek.api import collections_api
collections.cr[TAB]
# Shows:
# - create_collection
# - (not create_collection_v1_collections_post)- BucketBatchesApi - Batch operations on buckets
- BucketObjectsApi - Object management in buckets
- BucketsApi - Bucket storage management
- ClusterTriggersApi - Automated cluster triggers
- ClustersApi - Clustering and analysis
- CollectionDocumentsApi - Document CRUD operations
- CollectionsApi - Collection management
- FeatureExtractorsApi - Feature extraction
- HealthApi - Service health checks
- NamespacesApi - Namespace management
- OrganizationsApi - Organization management
- OrganizationsPrivateApi - Private organization ops
- RetrieverStagesApi - Retriever stage definitions
- RetrieversApi - Search and retrieval
- TasksApi - Async task monitoring
- TaxonomiesApi - Classification and tagging
All APIs use the same clean, consistent method naming.
The SDK generation process automatically:
- Removes version prefixes:
_v1_,_v2_, etc. - Removes HTTP method suffixes:
_post,_get,_put,_delete,_patch - Removes path identifiers:
__identifier__,__id__ - Deduplicates words:
list_collections_list→list_collections - Removes generic terms:
route,endpoint,api,private,public - Prevents plural/singular duplication:
collections_collection→collection
These simplified names are generated during SDK creation from the OpenAPI spec. They are:
- ✅ Stable across regenerations
- ✅ Type-safe with full IDE support
- ✅ Documented with docstrings
- ✅ Include parameter hints
Note: This simplification happens automatically during SDK generation. When the API updates, the method names remain clean and consistent.