perceptic-core-client 0.6.1__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client-0.6.2/PKG-INFO +93 -0
- perceptic_core_client-0.6.2/README.md +72 -0
- perceptic_core_client-0.6.2/VERSION +1 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/setup.py +1 -1
- perceptic_core_client-0.6.2/src/perceptic_core_client.egg-info/PKG-INFO +93 -0
- perceptic_core_client-0.6.1/PKG-INFO +0 -179
- perceptic_core_client-0.6.1/README.md +0 -158
- perceptic_core_client-0.6.1/VERSION +0 -1
- perceptic_core_client-0.6.1/src/perceptic_core_client.egg-info/PKG-INFO +0 -179
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/MANIFEST.in +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/pyproject.toml +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/scripts/generate_client.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/setup.cfg +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/__init__.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/__init__.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/__init__.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/connection_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/file_system_contents_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/file_system_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/indexer_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/indexing_task_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/uri_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/user_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api/worker_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api_client.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/api_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/configuration.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ActionType.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/AzureBlobConnectionSettingsApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/AzureBlobFileSystemRootMetadataApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ConnectionApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ConnectionResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ConnectionSettingsApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateConnectionRequest.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateConnectionResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateFileSystemResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateFolderRequest.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateFolderResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskRequest.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateIndexingTaskResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateManagedFileSystemRequest.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/CreateRemoteFileSystemRequest.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/FileSystemApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/FileSystemContentsResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/FileSystemResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/FileSystemRootMetadataApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetConnectionResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetIndexerResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetIndexingTaskResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetMetadataResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetParentResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetParentUriResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetSignedUrlResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetWorkerEventsResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetWorkerMetadataResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetWorkerStatusResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/GetWorkersResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexerDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexerResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexingActionDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexingActionStatus.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexingTaskDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexingTaskResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/IndexingTaskStatus.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/InfoEvent.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/JsonNode.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/JsonNodeType.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ListAllFileSystemsResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ListFileSystemResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ListIndexersResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ListIndexingActionsResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ManagedFileSystemApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/MeResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ModelSchema.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/PagedListFileSystemResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/PostWorkerRunRequest.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/PostWorkerRunResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ProgressEvent.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/RemoteFileSystemApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/RequestForInputEvent.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ResourceEntryDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ResourceId.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ResourceIdentifier.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ResourceMetadataDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/ResourceTypeDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/RunStatusDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/S3ConnectionSettingsApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/S3FileSystemRootMetadataApiDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/SchemaLocation.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/StartExecutionResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/UploadFileToManagedFileSystemResponse.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/UriResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/UserResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/WorkerEvent.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/WorkerMetadataDto.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/docs/WorkerResourceApi.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/exceptions.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/__init__.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/action_type.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/azure_blob_connection_settings_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/azure_blob_file_system_root_metadata_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/connection_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/connection_settings_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_connection_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_connection_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_folder_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_folder_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_indexing_task_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_indexing_task_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_managed_file_system_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/create_remote_file_system_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/file_system_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/file_system_root_metadata_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_connection_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_indexer_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_indexing_task_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_metadata_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_parent_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_parent_uri_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_signed_url_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_worker_events_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_worker_metadata_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_worker_status_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/get_workers_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/indexer_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/indexing_action_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/indexing_action_status.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/indexing_task_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/indexing_task_status.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/info_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/json_node.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/json_node_type.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/list_all_file_systems_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/list_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/list_indexers_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/list_indexing_actions_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/managed_file_system_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/me_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/model_schema.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/paged_list_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/post_worker_run_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/post_worker_run_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/progress_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/remote_file_system_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/request_for_input_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/resource_entry_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/resource_id.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/resource_identifier.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/resource_metadata_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/resource_type_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/run_status_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/s3_connection_settings_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/s3_file_system_root_metadata_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/schema_location.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/start_execution_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/upload_file_to_managed_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/worker_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/models/worker_metadata_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/rest.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/__init__.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_action_type.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_azure_blob_connection_settings_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_azure_blob_file_system_root_metadata_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_connection_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_connection_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_connection_settings_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_connection_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_connection_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_folder_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_folder_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_indexing_task_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_managed_file_system_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_create_remote_file_system_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_file_system_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_file_system_contents_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_file_system_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_file_system_root_metadata_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_connection_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_indexer_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_indexing_task_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_metadata_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_parent_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_parent_uri_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_signed_url_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_worker_events_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_worker_metadata_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_worker_status_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_get_workers_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexer_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexer_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexing_action_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexing_action_status.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexing_task_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexing_task_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_indexing_task_status.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_info_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_json_node.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_json_node_type.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_list_all_file_systems_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_list_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_list_indexers_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_list_indexing_actions_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_managed_file_system_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_me_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_model_schema.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_paged_list_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_post_worker_run_request.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_post_worker_run_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_progress_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_remote_file_system_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_request_for_input_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_resource_entry_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_resource_id.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_resource_identifier.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_resource_metadata_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_resource_type_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_run_status_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_s3_connection_settings_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_s3_file_system_root_metadata_api_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_schema_location.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_start_execution_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_upload_file_to_managed_file_system_response.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_uri_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_user_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_worker_event.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_worker_metadata_dto.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client/test/test_worker_resource_api.py +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client/perceptic_core_client_README.md +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client.egg-info/SOURCES.txt +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client.egg-info/dependency_links.txt +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client.egg-info/requires.txt +0 -0
- {perceptic_core_client-0.6.1 → perceptic_core_client-0.6.2}/src/perceptic_core_client.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: perceptic-core-client
|
|
3
|
+
Version: 0.6.2
|
|
4
|
+
Summary: Python client for Perceptic Core
|
|
5
|
+
Author-email: Your Name <you@example.com>
|
|
6
|
+
License: Proprietary
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
11
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
12
|
+
Requires-Dist: pydantic>=2
|
|
13
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: pytest; extra == "dev"
|
|
16
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
17
|
+
Requires-Dist: ruff; extra == "dev"
|
|
18
|
+
Requires-Dist: mypy; extra == "dev"
|
|
19
|
+
Requires-Dist: build; extra == "dev"
|
|
20
|
+
Requires-Dist: requests; extra == "dev"
|
|
21
|
+
|
|
22
|
+
# Perceptic Core API - Python Client (`perceptic-core-client`)
|
|
23
|
+
|
|
24
|
+
This package provides a generated Python client for interacting with the Perceptic Core API.
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
Install the package from the configured package registry (ensure `pip` is configured, see parent project documentation if using GitHub Packages):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install perceptic-core-client
|
|
32
|
+
|
|
33
|
+
# To install a specific version:
|
|
34
|
+
# pip install perceptic-core-client==<version>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Basic Usage
|
|
38
|
+
You need the URL of your Perceptic Core API instance and a valid authentication token (e.g., a Bearer token from Keycloak) obtained separately.
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
import os
|
|
42
|
+
from perceptic_core_client import ApiClient, Configuration, ApiException
|
|
43
|
+
# Import the specific API category you need, e.g., UserResourceApi
|
|
44
|
+
from perceptic_core_client.api.user_resource_api import UserResourceApi
|
|
45
|
+
from pprint import pprint
|
|
46
|
+
|
|
47
|
+
# --- Configuration ---
|
|
48
|
+
|
|
49
|
+
# 1. Get your API host and token (e.g., from environment variables)
|
|
50
|
+
api_host = os.environ.get("PERCEPTIC_CORE_HOST", "http://localhost:8080")
|
|
51
|
+
access_token = os.environ.get("PERCEPTIC_CORE_TOKEN")
|
|
52
|
+
|
|
53
|
+
if not access_token:
|
|
54
|
+
raise ValueError("Authentication token not found. Set PERCEPTIC_CORE_TOKEN environment variable.")
|
|
55
|
+
|
|
56
|
+
# 2. Create a Configuration object
|
|
57
|
+
configuration = Configuration(host=api_host)
|
|
58
|
+
|
|
59
|
+
# 3. Set the access token on the configuration
|
|
60
|
+
configuration.access_token = access_token
|
|
61
|
+
|
|
62
|
+
# 4. Create the main ApiClient
|
|
63
|
+
api_client = ApiClient(configuration=configuration)
|
|
64
|
+
|
|
65
|
+
# --- Making API Calls ---
|
|
66
|
+
|
|
67
|
+
# 5. Instantiate the specific API resource class you want to use
|
|
68
|
+
user_api = UserResourceApi(api_client=api_client)
|
|
69
|
+
|
|
70
|
+
# 6. Call API methods
|
|
71
|
+
try:
|
|
72
|
+
print(f"Fetching user info from {api_host}...")
|
|
73
|
+
me_response = user_api.api_v1_users_me_get()
|
|
74
|
+
|
|
75
|
+
print("API Call Successful:")
|
|
76
|
+
# Models often have a .to_dict() method for easy inspection
|
|
77
|
+
pprint(me_response.to_dict())
|
|
78
|
+
|
|
79
|
+
except ApiException as e:
|
|
80
|
+
print(f"API Error: Status {e.status}, Reason: {e.reason}")
|
|
81
|
+
if e.body:
|
|
82
|
+
print(f"Body: {e.body}")
|
|
83
|
+
except Exception as e:
|
|
84
|
+
print(f"An unexpected error occurred: {e}")
|
|
85
|
+
|
|
86
|
+
# Example of another API (if you need to interact with connections)
|
|
87
|
+
# from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
88
|
+
# connection_api = ConnectionResourceApi(api_client=api_client)
|
|
89
|
+
# try:
|
|
90
|
+
# # ... call methods on connection_api ...
|
|
91
|
+
# except ApiException as e:
|
|
92
|
+
# # ... handle error ...
|
|
93
|
+
```
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Perceptic Core API - Python Client (`perceptic-core-client`)
|
|
2
|
+
|
|
3
|
+
This package provides a generated Python client for interacting with the Perceptic Core API.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the package from the configured package registry (ensure `pip` is configured, see parent project documentation if using GitHub Packages):
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install perceptic-core-client
|
|
11
|
+
|
|
12
|
+
# To install a specific version:
|
|
13
|
+
# pip install perceptic-core-client==<version>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Basic Usage
|
|
17
|
+
You need the URL of your Perceptic Core API instance and a valid authentication token (e.g., a Bearer token from Keycloak) obtained separately.
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
import os
|
|
21
|
+
from perceptic_core_client import ApiClient, Configuration, ApiException
|
|
22
|
+
# Import the specific API category you need, e.g., UserResourceApi
|
|
23
|
+
from perceptic_core_client.api.user_resource_api import UserResourceApi
|
|
24
|
+
from pprint import pprint
|
|
25
|
+
|
|
26
|
+
# --- Configuration ---
|
|
27
|
+
|
|
28
|
+
# 1. Get your API host and token (e.g., from environment variables)
|
|
29
|
+
api_host = os.environ.get("PERCEPTIC_CORE_HOST", "http://localhost:8080")
|
|
30
|
+
access_token = os.environ.get("PERCEPTIC_CORE_TOKEN")
|
|
31
|
+
|
|
32
|
+
if not access_token:
|
|
33
|
+
raise ValueError("Authentication token not found. Set PERCEPTIC_CORE_TOKEN environment variable.")
|
|
34
|
+
|
|
35
|
+
# 2. Create a Configuration object
|
|
36
|
+
configuration = Configuration(host=api_host)
|
|
37
|
+
|
|
38
|
+
# 3. Set the access token on the configuration
|
|
39
|
+
configuration.access_token = access_token
|
|
40
|
+
|
|
41
|
+
# 4. Create the main ApiClient
|
|
42
|
+
api_client = ApiClient(configuration=configuration)
|
|
43
|
+
|
|
44
|
+
# --- Making API Calls ---
|
|
45
|
+
|
|
46
|
+
# 5. Instantiate the specific API resource class you want to use
|
|
47
|
+
user_api = UserResourceApi(api_client=api_client)
|
|
48
|
+
|
|
49
|
+
# 6. Call API methods
|
|
50
|
+
try:
|
|
51
|
+
print(f"Fetching user info from {api_host}...")
|
|
52
|
+
me_response = user_api.api_v1_users_me_get()
|
|
53
|
+
|
|
54
|
+
print("API Call Successful:")
|
|
55
|
+
# Models often have a .to_dict() method for easy inspection
|
|
56
|
+
pprint(me_response.to_dict())
|
|
57
|
+
|
|
58
|
+
except ApiException as e:
|
|
59
|
+
print(f"API Error: Status {e.status}, Reason: {e.reason}")
|
|
60
|
+
if e.body:
|
|
61
|
+
print(f"Body: {e.body}")
|
|
62
|
+
except Exception as e:
|
|
63
|
+
print(f"An unexpected error occurred: {e}")
|
|
64
|
+
|
|
65
|
+
# Example of another API (if you need to interact with connections)
|
|
66
|
+
# from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
67
|
+
# connection_api = ConnectionResourceApi(api_client=api_client)
|
|
68
|
+
# try:
|
|
69
|
+
# # ... call methods on connection_api ...
|
|
70
|
+
# except ApiException as e:
|
|
71
|
+
# # ... handle error ...
|
|
72
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.6.2
|
|
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
setup(
|
|
4
4
|
# Let pyproject.toml handle most metadata & dynamic versioning.
|
|
5
5
|
# Explicitly find packages in 'src' layout.
|
|
6
|
-
packages=find_packages(where='src'),
|
|
6
|
+
packages=find_packages(where='src/perceptic_core_client'),
|
|
7
7
|
package_dir={'': 'src'},
|
|
8
8
|
# Ensure generated files are included.
|
|
9
9
|
include_package_data=True,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: perceptic-core-client
|
|
3
|
+
Version: 0.6.2
|
|
4
|
+
Summary: Python client for Perceptic Core
|
|
5
|
+
Author-email: Your Name <you@example.com>
|
|
6
|
+
License: Proprietary
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
11
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
12
|
+
Requires-Dist: pydantic>=2
|
|
13
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: pytest; extra == "dev"
|
|
16
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
17
|
+
Requires-Dist: ruff; extra == "dev"
|
|
18
|
+
Requires-Dist: mypy; extra == "dev"
|
|
19
|
+
Requires-Dist: build; extra == "dev"
|
|
20
|
+
Requires-Dist: requests; extra == "dev"
|
|
21
|
+
|
|
22
|
+
# Perceptic Core API - Python Client (`perceptic-core-client`)
|
|
23
|
+
|
|
24
|
+
This package provides a generated Python client for interacting with the Perceptic Core API.
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
Install the package from the configured package registry (ensure `pip` is configured, see parent project documentation if using GitHub Packages):
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install perceptic-core-client
|
|
32
|
+
|
|
33
|
+
# To install a specific version:
|
|
34
|
+
# pip install perceptic-core-client==<version>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Basic Usage
|
|
38
|
+
You need the URL of your Perceptic Core API instance and a valid authentication token (e.g., a Bearer token from Keycloak) obtained separately.
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
import os
|
|
42
|
+
from perceptic_core_client import ApiClient, Configuration, ApiException
|
|
43
|
+
# Import the specific API category you need, e.g., UserResourceApi
|
|
44
|
+
from perceptic_core_client.api.user_resource_api import UserResourceApi
|
|
45
|
+
from pprint import pprint
|
|
46
|
+
|
|
47
|
+
# --- Configuration ---
|
|
48
|
+
|
|
49
|
+
# 1. Get your API host and token (e.g., from environment variables)
|
|
50
|
+
api_host = os.environ.get("PERCEPTIC_CORE_HOST", "http://localhost:8080")
|
|
51
|
+
access_token = os.environ.get("PERCEPTIC_CORE_TOKEN")
|
|
52
|
+
|
|
53
|
+
if not access_token:
|
|
54
|
+
raise ValueError("Authentication token not found. Set PERCEPTIC_CORE_TOKEN environment variable.")
|
|
55
|
+
|
|
56
|
+
# 2. Create a Configuration object
|
|
57
|
+
configuration = Configuration(host=api_host)
|
|
58
|
+
|
|
59
|
+
# 3. Set the access token on the configuration
|
|
60
|
+
configuration.access_token = access_token
|
|
61
|
+
|
|
62
|
+
# 4. Create the main ApiClient
|
|
63
|
+
api_client = ApiClient(configuration=configuration)
|
|
64
|
+
|
|
65
|
+
# --- Making API Calls ---
|
|
66
|
+
|
|
67
|
+
# 5. Instantiate the specific API resource class you want to use
|
|
68
|
+
user_api = UserResourceApi(api_client=api_client)
|
|
69
|
+
|
|
70
|
+
# 6. Call API methods
|
|
71
|
+
try:
|
|
72
|
+
print(f"Fetching user info from {api_host}...")
|
|
73
|
+
me_response = user_api.api_v1_users_me_get()
|
|
74
|
+
|
|
75
|
+
print("API Call Successful:")
|
|
76
|
+
# Models often have a .to_dict() method for easy inspection
|
|
77
|
+
pprint(me_response.to_dict())
|
|
78
|
+
|
|
79
|
+
except ApiException as e:
|
|
80
|
+
print(f"API Error: Status {e.status}, Reason: {e.reason}")
|
|
81
|
+
if e.body:
|
|
82
|
+
print(f"Body: {e.body}")
|
|
83
|
+
except Exception as e:
|
|
84
|
+
print(f"An unexpected error occurred: {e}")
|
|
85
|
+
|
|
86
|
+
# Example of another API (if you need to interact with connections)
|
|
87
|
+
# from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
88
|
+
# connection_api = ConnectionResourceApi(api_client=api_client)
|
|
89
|
+
# try:
|
|
90
|
+
# # ... call methods on connection_api ...
|
|
91
|
+
# except ApiException as e:
|
|
92
|
+
# # ... handle error ...
|
|
93
|
+
```
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: perceptic-core-client
|
|
3
|
-
Version: 0.6.1
|
|
4
|
-
Summary: Python client for Perceptic Core
|
|
5
|
-
Author-email: Your Name <you@example.com>
|
|
6
|
-
License: Proprietary
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Requires-Python: >=3.9
|
|
9
|
-
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
11
|
-
Requires-Dist: python-dateutil>=2.8.2
|
|
12
|
-
Requires-Dist: pydantic>=2
|
|
13
|
-
Requires-Dist: typing-extensions>=4.7.1
|
|
14
|
-
Provides-Extra: dev
|
|
15
|
-
Requires-Dist: pytest; extra == "dev"
|
|
16
|
-
Requires-Dist: pytest-cov; extra == "dev"
|
|
17
|
-
Requires-Dist: ruff; extra == "dev"
|
|
18
|
-
Requires-Dist: mypy; extra == "dev"
|
|
19
|
-
Requires-Dist: build; extra == "dev"
|
|
20
|
-
Requires-Dist: requests; extra == "dev"
|
|
21
|
-
|
|
22
|
-
# Perceptic Core API - Python Client Package
|
|
23
|
-
|
|
24
|
-
This directory contains the source code, build configuration, and generation scripts for the `perceptic-core-client` Python package. This package provides a client library for interacting with the Perceptic Core API.
|
|
25
|
-
|
|
26
|
-
**Note:** The actual client code within `src/perceptic_core_client/` is automatically generated during the build process from the OpenAPI specification located in the parent `perceptic-core-server` project (`../openapi/`) and is **not** checked into Git.
|
|
27
|
-
|
|
28
|
-
## Generation Process
|
|
29
|
-
|
|
30
|
-
The Python client code is generated using `openapi-generator-cli` based on the OpenAPI specification found at `../openapi/openapi.yaml` (relative to this directory).
|
|
31
|
-
|
|
32
|
-
This generation happens automatically as part of the package build process (`python -m build`) defined in `setup.py`.
|
|
33
|
-
|
|
34
|
-
**Requirements for Building:**
|
|
35
|
-
* Python >= 3.9
|
|
36
|
-
* `setuptools`, `wheel`, `build` Python packages
|
|
37
|
-
* Java Runtime Environment (JRE)
|
|
38
|
-
* `openapi-generator-cli` (Installable via npm: `npm install -g @openapitools/openapi-generator-cli`)
|
|
39
|
-
* The `PACKAGE_VERSION` environment variable must be set to the desired version string (e.g., `0.5.0`) before building.
|
|
40
|
-
* The OpenAPI spec file (`../openapi/openapi.yaml` or `.json`) must exist, typically generated by the parent Quarkus project's build.
|
|
41
|
-
|
|
42
|
-
## Building Manually (for Development/Testing)
|
|
43
|
-
|
|
44
|
-
While the primary build and publish mechanism is via GitHub Actions, you can build the package locally for testing:
|
|
45
|
-
|
|
46
|
-
1. **Navigate** to this directory (`perceptic-core-python-client`).
|
|
47
|
-
2. **Set up environment:**
|
|
48
|
-
```bash
|
|
49
|
-
# Create/activate a virtual environment
|
|
50
|
-
python -m venv .venv
|
|
51
|
-
source .venv/bin/activate # Linux/macOS
|
|
52
|
-
# .venv\Scripts\activate # Windows
|
|
53
|
-
|
|
54
|
-
# Install build and dev dependencies
|
|
55
|
-
pip install -e ".[dev]"
|
|
56
|
-
```
|
|
57
|
-
3. **Set required environment variables:**
|
|
58
|
-
```bash
|
|
59
|
-
# Bash/Zsh
|
|
60
|
-
export PACKAGE_VERSION="<target-version>" # e.g., 0.5.1.dev0
|
|
61
|
-
# OPENAPI_SPEC_PATH is determined automatically by setup.py now
|
|
62
|
-
|
|
63
|
-
# Windows CMD
|
|
64
|
-
# set PACKAGE_VERSION=<target-version>
|
|
65
|
-
|
|
66
|
-
# Windows PowerShell
|
|
67
|
-
# $env:PACKAGE_VERSION = "<target-version>"
|
|
68
|
-
```
|
|
69
|
-
4. **Run build:** Ensure the spec file exists at `../openapi/openapi.yaml` (or `.json`).
|
|
70
|
-
```bash
|
|
71
|
-
python -m build
|
|
72
|
-
```
|
|
73
|
-
This will generate the client code in `src/` and create distribution files (`.whl`, `.tar.gz`) in the `dist/` directory.
|
|
74
|
-
|
|
75
|
-
## Publishing
|
|
76
|
-
|
|
77
|
-
This package is automatically published to GitHub Packages via the GitHub Actions workflow defined in `.github/workflows/publish-python-client.yml` in the root of the `perceptic-core-server` repository. Publishing is triggered when a Git tag (e.g., `0.5.0`, `1.0.0`) is pushed to the repository.
|
|
78
|
-
|
|
79
|
-
## Installation (from GitHub Packages)
|
|
80
|
-
|
|
81
|
-
To use this client in your Python projects, install it from GitHub Packages.
|
|
82
|
-
|
|
83
|
-
1. **Configure pip:** You need to tell pip where to find the package. Add the following lines to your `pip.conf` / `pip.ini` file, or configure it using environment variables/command-line arguments. Replace `<YOUR_GITHUB_OWNER>` with the GitHub username or organization that owns the repository (e.g., `perceptic-core`).
|
|
84
|
-
|
|
85
|
-
```ini
|
|
86
|
-
[global]
|
|
87
|
-
extra-index-url = [https://pypi.pkg.github.com/](https://pypi.pkg.github.com/)<YOUR_GITHUB_OWNER>/
|
|
88
|
-
```
|
|
89
|
-
*Alternatively, use `--extra-index-url` on the command line.*
|
|
90
|
-
|
|
91
|
-
2. **Authentication (if repository is private):** You may need to authenticate pip to GitHub Packages. The recommended method is using a Personal Access Token (PAT) with the `read:packages` scope. Configure pip to use your GitHub username and the PAT. Refer to GitHub documentation for the latest authentication methods.
|
|
92
|
-
|
|
93
|
-
3. **Install the package:**
|
|
94
|
-
```bash
|
|
95
|
-
pip install perceptic-core-client
|
|
96
|
-
```
|
|
97
|
-
*(Specify a version if needed: `pip install perceptic-core-client==<version>`)*
|
|
98
|
-
|
|
99
|
-
## Usage Example
|
|
100
|
-
|
|
101
|
-
```python
|
|
102
|
-
import os
|
|
103
|
-
from perceptic_core_client import ApiClient, Configuration, ApiException
|
|
104
|
-
from perceptic_core_client.api.user_resource_api import UserResourceApi # Example API
|
|
105
|
-
from pprint import pprint
|
|
106
|
-
|
|
107
|
-
# --- Configuration ---
|
|
108
|
-
# Replace with the actual host of your Perceptic Core API instance
|
|
109
|
-
API_HOST = os.environ.get("PERCEPTIC_CORE_HOST", "http://localhost:8080")
|
|
110
|
-
|
|
111
|
-
# Obtain your authentication token separately
|
|
112
|
-
# (e.g., from Keycloak, environment variable, another library)
|
|
113
|
-
ACCESS_TOKEN = os.environ.get("PERCEPTIC_CORE_TOKEN")
|
|
114
|
-
|
|
115
|
-
if not ACCESS_TOKEN:
|
|
116
|
-
print("Error: PERCEPTIC_CORE_TOKEN environment variable not set.")
|
|
117
|
-
exit(1)
|
|
118
|
-
# ---
|
|
119
|
-
|
|
120
|
-
print(f"Configuring client for host: {API_HOST}")
|
|
121
|
-
|
|
122
|
-
# Configure API client
|
|
123
|
-
configuration = Configuration(host=API_HOST)
|
|
124
|
-
configuration.access_token = ACCESS_TOKEN # Set token for potential internal use
|
|
125
|
-
|
|
126
|
-
# Initialize API client
|
|
127
|
-
api_client = ApiClient(configuration=configuration)
|
|
128
|
-
|
|
129
|
-
# Explicitly set the Authorization header (recommended)
|
|
130
|
-
api_client.set_default_header("Authorization", f"Bearer {ACCESS_TOKEN}")
|
|
131
|
-
|
|
132
|
-
# --- Example API Call: Get current user info ---
|
|
133
|
-
user_api = UserResourceApi(api_client=api_client)
|
|
134
|
-
|
|
135
|
-
try:
|
|
136
|
-
print("Calling /api/v1/users/me...")
|
|
137
|
-
me_response = user_api.api_v1_users_me_get()
|
|
138
|
-
print("API call successful. User Info:")
|
|
139
|
-
pprint(me_response.to_dict()) # Use to_dict() for cleaner printing
|
|
140
|
-
|
|
141
|
-
except ApiException as e:
|
|
142
|
-
print(f"API Exception calling UserResourceApi->api_v1_users_me_get: {e}\n")
|
|
143
|
-
# You can inspect e.status, e.reason, e.body, e.headers
|
|
144
|
-
except Exception as e:
|
|
145
|
-
print(f"An unexpected error occurred: {e}\n")
|
|
146
|
-
|
|
147
|
-
# --- Example: Create a Connection (replace with actual details) ---
|
|
148
|
-
# from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
149
|
-
# from perceptic_core_client.models import (
|
|
150
|
-
# CreateConnectionRequest,
|
|
151
|
-
# ConnectionSettingsApiDto,
|
|
152
|
-
# S3ConnectionSettingsApiDto # Example setting type
|
|
153
|
-
# )
|
|
154
|
-
#
|
|
155
|
-
# connection_api = ConnectionResourceApi(api_client=api_client)
|
|
156
|
-
#
|
|
157
|
-
# try:
|
|
158
|
-
# print("Attempting to create a connection...")
|
|
159
|
-
# connection_request = CreateConnectionRequest(
|
|
160
|
-
# name="my-s3-connection",
|
|
161
|
-
# description="Connection to my S3 bucket",
|
|
162
|
-
# settings=ConnectionSettingsApiDto(
|
|
163
|
-
# actual_instance=S3ConnectionSettingsApiDto(
|
|
164
|
-
# type="v1/s3",
|
|
165
|
-
# region="us-east-1", # Replace with actual values
|
|
166
|
-
# access_key="YOUR_ACCESS_KEY",
|
|
167
|
-
# secret_key="YOUR_SECRET_KEY",
|
|
168
|
-
# url="[https://s3.amazonaws.com](https://s3.amazonaws.com)" # Optional endpoint URL
|
|
169
|
-
# )
|
|
170
|
-
# )
|
|
171
|
-
# )
|
|
172
|
-
# create_response = connection_api.api_v1_connections_post(connection_request)
|
|
173
|
-
# print("Connection created successfully:")
|
|
174
|
-
# pprint(create_response.to_dict())
|
|
175
|
-
#
|
|
176
|
-
# except ApiException as e:
|
|
177
|
-
# print(f"API Exception creating connection: {e}\n")
|
|
178
|
-
# except Exception as e:
|
|
179
|
-
# print(f"An unexpected error occurred: {e}\n")
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
# Perceptic Core API - Python Client Package
|
|
2
|
-
|
|
3
|
-
This directory contains the source code, build configuration, and generation scripts for the `perceptic-core-client` Python package. This package provides a client library for interacting with the Perceptic Core API.
|
|
4
|
-
|
|
5
|
-
**Note:** The actual client code within `src/perceptic_core_client/` is automatically generated during the build process from the OpenAPI specification located in the parent `perceptic-core-server` project (`../openapi/`) and is **not** checked into Git.
|
|
6
|
-
|
|
7
|
-
## Generation Process
|
|
8
|
-
|
|
9
|
-
The Python client code is generated using `openapi-generator-cli` based on the OpenAPI specification found at `../openapi/openapi.yaml` (relative to this directory).
|
|
10
|
-
|
|
11
|
-
This generation happens automatically as part of the package build process (`python -m build`) defined in `setup.py`.
|
|
12
|
-
|
|
13
|
-
**Requirements for Building:**
|
|
14
|
-
* Python >= 3.9
|
|
15
|
-
* `setuptools`, `wheel`, `build` Python packages
|
|
16
|
-
* Java Runtime Environment (JRE)
|
|
17
|
-
* `openapi-generator-cli` (Installable via npm: `npm install -g @openapitools/openapi-generator-cli`)
|
|
18
|
-
* The `PACKAGE_VERSION` environment variable must be set to the desired version string (e.g., `0.5.0`) before building.
|
|
19
|
-
* The OpenAPI spec file (`../openapi/openapi.yaml` or `.json`) must exist, typically generated by the parent Quarkus project's build.
|
|
20
|
-
|
|
21
|
-
## Building Manually (for Development/Testing)
|
|
22
|
-
|
|
23
|
-
While the primary build and publish mechanism is via GitHub Actions, you can build the package locally for testing:
|
|
24
|
-
|
|
25
|
-
1. **Navigate** to this directory (`perceptic-core-python-client`).
|
|
26
|
-
2. **Set up environment:**
|
|
27
|
-
```bash
|
|
28
|
-
# Create/activate a virtual environment
|
|
29
|
-
python -m venv .venv
|
|
30
|
-
source .venv/bin/activate # Linux/macOS
|
|
31
|
-
# .venv\Scripts\activate # Windows
|
|
32
|
-
|
|
33
|
-
# Install build and dev dependencies
|
|
34
|
-
pip install -e ".[dev]"
|
|
35
|
-
```
|
|
36
|
-
3. **Set required environment variables:**
|
|
37
|
-
```bash
|
|
38
|
-
# Bash/Zsh
|
|
39
|
-
export PACKAGE_VERSION="<target-version>" # e.g., 0.5.1.dev0
|
|
40
|
-
# OPENAPI_SPEC_PATH is determined automatically by setup.py now
|
|
41
|
-
|
|
42
|
-
# Windows CMD
|
|
43
|
-
# set PACKAGE_VERSION=<target-version>
|
|
44
|
-
|
|
45
|
-
# Windows PowerShell
|
|
46
|
-
# $env:PACKAGE_VERSION = "<target-version>"
|
|
47
|
-
```
|
|
48
|
-
4. **Run build:** Ensure the spec file exists at `../openapi/openapi.yaml` (or `.json`).
|
|
49
|
-
```bash
|
|
50
|
-
python -m build
|
|
51
|
-
```
|
|
52
|
-
This will generate the client code in `src/` and create distribution files (`.whl`, `.tar.gz`) in the `dist/` directory.
|
|
53
|
-
|
|
54
|
-
## Publishing
|
|
55
|
-
|
|
56
|
-
This package is automatically published to GitHub Packages via the GitHub Actions workflow defined in `.github/workflows/publish-python-client.yml` in the root of the `perceptic-core-server` repository. Publishing is triggered when a Git tag (e.g., `0.5.0`, `1.0.0`) is pushed to the repository.
|
|
57
|
-
|
|
58
|
-
## Installation (from GitHub Packages)
|
|
59
|
-
|
|
60
|
-
To use this client in your Python projects, install it from GitHub Packages.
|
|
61
|
-
|
|
62
|
-
1. **Configure pip:** You need to tell pip where to find the package. Add the following lines to your `pip.conf` / `pip.ini` file, or configure it using environment variables/command-line arguments. Replace `<YOUR_GITHUB_OWNER>` with the GitHub username or organization that owns the repository (e.g., `perceptic-core`).
|
|
63
|
-
|
|
64
|
-
```ini
|
|
65
|
-
[global]
|
|
66
|
-
extra-index-url = [https://pypi.pkg.github.com/](https://pypi.pkg.github.com/)<YOUR_GITHUB_OWNER>/
|
|
67
|
-
```
|
|
68
|
-
*Alternatively, use `--extra-index-url` on the command line.*
|
|
69
|
-
|
|
70
|
-
2. **Authentication (if repository is private):** You may need to authenticate pip to GitHub Packages. The recommended method is using a Personal Access Token (PAT) with the `read:packages` scope. Configure pip to use your GitHub username and the PAT. Refer to GitHub documentation for the latest authentication methods.
|
|
71
|
-
|
|
72
|
-
3. **Install the package:**
|
|
73
|
-
```bash
|
|
74
|
-
pip install perceptic-core-client
|
|
75
|
-
```
|
|
76
|
-
*(Specify a version if needed: `pip install perceptic-core-client==<version>`)*
|
|
77
|
-
|
|
78
|
-
## Usage Example
|
|
79
|
-
|
|
80
|
-
```python
|
|
81
|
-
import os
|
|
82
|
-
from perceptic_core_client import ApiClient, Configuration, ApiException
|
|
83
|
-
from perceptic_core_client.api.user_resource_api import UserResourceApi # Example API
|
|
84
|
-
from pprint import pprint
|
|
85
|
-
|
|
86
|
-
# --- Configuration ---
|
|
87
|
-
# Replace with the actual host of your Perceptic Core API instance
|
|
88
|
-
API_HOST = os.environ.get("PERCEPTIC_CORE_HOST", "http://localhost:8080")
|
|
89
|
-
|
|
90
|
-
# Obtain your authentication token separately
|
|
91
|
-
# (e.g., from Keycloak, environment variable, another library)
|
|
92
|
-
ACCESS_TOKEN = os.environ.get("PERCEPTIC_CORE_TOKEN")
|
|
93
|
-
|
|
94
|
-
if not ACCESS_TOKEN:
|
|
95
|
-
print("Error: PERCEPTIC_CORE_TOKEN environment variable not set.")
|
|
96
|
-
exit(1)
|
|
97
|
-
# ---
|
|
98
|
-
|
|
99
|
-
print(f"Configuring client for host: {API_HOST}")
|
|
100
|
-
|
|
101
|
-
# Configure API client
|
|
102
|
-
configuration = Configuration(host=API_HOST)
|
|
103
|
-
configuration.access_token = ACCESS_TOKEN # Set token for potential internal use
|
|
104
|
-
|
|
105
|
-
# Initialize API client
|
|
106
|
-
api_client = ApiClient(configuration=configuration)
|
|
107
|
-
|
|
108
|
-
# Explicitly set the Authorization header (recommended)
|
|
109
|
-
api_client.set_default_header("Authorization", f"Bearer {ACCESS_TOKEN}")
|
|
110
|
-
|
|
111
|
-
# --- Example API Call: Get current user info ---
|
|
112
|
-
user_api = UserResourceApi(api_client=api_client)
|
|
113
|
-
|
|
114
|
-
try:
|
|
115
|
-
print("Calling /api/v1/users/me...")
|
|
116
|
-
me_response = user_api.api_v1_users_me_get()
|
|
117
|
-
print("API call successful. User Info:")
|
|
118
|
-
pprint(me_response.to_dict()) # Use to_dict() for cleaner printing
|
|
119
|
-
|
|
120
|
-
except ApiException as e:
|
|
121
|
-
print(f"API Exception calling UserResourceApi->api_v1_users_me_get: {e}\n")
|
|
122
|
-
# You can inspect e.status, e.reason, e.body, e.headers
|
|
123
|
-
except Exception as e:
|
|
124
|
-
print(f"An unexpected error occurred: {e}\n")
|
|
125
|
-
|
|
126
|
-
# --- Example: Create a Connection (replace with actual details) ---
|
|
127
|
-
# from perceptic_core_client.api.connection_resource_api import ConnectionResourceApi
|
|
128
|
-
# from perceptic_core_client.models import (
|
|
129
|
-
# CreateConnectionRequest,
|
|
130
|
-
# ConnectionSettingsApiDto,
|
|
131
|
-
# S3ConnectionSettingsApiDto # Example setting type
|
|
132
|
-
# )
|
|
133
|
-
#
|
|
134
|
-
# connection_api = ConnectionResourceApi(api_client=api_client)
|
|
135
|
-
#
|
|
136
|
-
# try:
|
|
137
|
-
# print("Attempting to create a connection...")
|
|
138
|
-
# connection_request = CreateConnectionRequest(
|
|
139
|
-
# name="my-s3-connection",
|
|
140
|
-
# description="Connection to my S3 bucket",
|
|
141
|
-
# settings=ConnectionSettingsApiDto(
|
|
142
|
-
# actual_instance=S3ConnectionSettingsApiDto(
|
|
143
|
-
# type="v1/s3",
|
|
144
|
-
# region="us-east-1", # Replace with actual values
|
|
145
|
-
# access_key="YOUR_ACCESS_KEY",
|
|
146
|
-
# secret_key="YOUR_SECRET_KEY",
|
|
147
|
-
# url="[https://s3.amazonaws.com](https://s3.amazonaws.com)" # Optional endpoint URL
|
|
148
|
-
# )
|
|
149
|
-
# )
|
|
150
|
-
# )
|
|
151
|
-
# create_response = connection_api.api_v1_connections_post(connection_request)
|
|
152
|
-
# print("Connection created successfully:")
|
|
153
|
-
# pprint(create_response.to_dict())
|
|
154
|
-
#
|
|
155
|
-
# except ApiException as e:
|
|
156
|
-
# print(f"API Exception creating connection: {e}\n")
|
|
157
|
-
# except Exception as e:
|
|
158
|
-
# print(f"An unexpected error occurred: {e}\n")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.6.1
|