picteus-ws-client
The Picteus API
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.21.0
- Package version: 0.21.0
- Generator version: 7.17.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.linkedin.com/in/edouardmercier
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/picteus/picteus.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/picteus/picteus.git)
Then import the package:
import picteus_ws_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import picteus_ws_client
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import picteus_ws_client
from picteus_ws_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://localhost:3001
# See configuration.py for a list of all supported configuration parameters.
configuration = picteus_ws_client.Configuration(
host = "https://localhost:3001"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: api-key
configuration.api_key['api-key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Enter a context with an instance of the API client
with picteus_ws_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = picteus_ws_client.AdministrationApi(api_client)
try:
# Migrates the database
api_instance.administration_migrate_database()
except ApiException as e:
print("Exception when calling AdministrationApi->administration_migrate_database: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://localhost:3001
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AdministrationApi | administration_migrate_database | PUT /administration/migrateDatabase | Migrates the database |
| ApiSecretApi | apisecret_create | POST /apiSecret/create | Creates an API secret |
| ApiSecretApi | apisecret_delete | DELETE /apiSecret/{id}/delete | Deletes an API secret |
| ApiSecretApi | apisecret_get | GET /apiSecret/{id}/get | Gets an API secret |
| ApiSecretApi | apisecret_list | GET /apiSecret/list | Lists all API secrets |
| CollectionApi | collection_create | POST /collection/create | Creates a collection |
| CollectionApi | collection_delete | DELETE /collection/{id}/delete | Deletes collection |
| CollectionApi | collection_get | GET /collection/{id}/get | Gets a collection |
| CollectionApi | collection_list | GET /collection/list | Lists all collections |
| CollectionApi | collection_update | PUT /collection/{id}/update | Updates a collection |
| ExtensionApi | extension_activities | GET /extension/activities | Indicates the extension activities |
| ExtensionApi | extension_build | PUT /extension/build | Builds an extension |
| ExtensionApi | extension_change_state | PUT /extension/{id}/changeState | Changes the state of an extension |
| ExtensionApi | extension_compile | PUT /extension/{id}/compile | Compiles an extension |
| ExtensionApi | extension_generate | PUT /extension/generate | Generates an extension |
| ExtensionApi | extension_get | GET /extension/{id}/get | Gets an extension |
| ExtensionApi | extension_get_configuration | GET /extension/getConfiguration | Provides the extensions configuration |
| ExtensionApi | extension_get_settings | GET /extension/{id}/getSettings | Gets an extension settings |
| ExtensionApi | extension_install | POST /extension/install | Installs an extension |
| ExtensionApi | extension_install_chrome_extension | PUT /extension/{id}/installChromeExtension | Installs a Chrome extension |
| ExtensionApi | extension_list | GET /extension/list | Lists all extensions |
| ExtensionApi | extension_reset_settings | PUT /extension/{id}/resetSettings | Resets the settings of an extension |
| ExtensionApi | extension_run_image_command | PUT /extension/{id}/runImageCommand | Runs a command exposed by an extension, on images |
| ExtensionApi | extension_run_process_command | PUT /extension/{id}/runProcessCommand | Runs a command exposed by an extension, on the process |
| ExtensionApi | extension_set_settings | PUT /extension/{id}/setSettings | Sets an extension settings |
| ExtensionApi | extension_synchronize | PUT /extension/{id}/synchronize | Synchronizes the images via an extension |
| ExtensionApi | extension_uninstall | DELETE /extension/{id}/uninstall | Uninstalls an extension |
| ExtensionApi | extension_update | PUT /extension/{id}/update | Updates an extension |
| ImageApi | image_closest_embeddings_images | PUT /image/closestEmbeddingsImages | Gets the closest images to some embeddings attached to an extension |
| ImageApi | image_closest_images | GET /image/{id}/closestImages | Gets the image closest images |
| ImageApi | image_compute_format | PUT /image/format | Computes the format of an image |
| ImageApi | image_convert | PUT /image/convert | Converts an image into a format |
| ImageApi | image_delete | DELETE /image/{id}/delete | Deletes an image |
| ImageApi | image_download | GET /image/{id}/download | Downloads an image |
| ImageApi | image_ensure_tags | PUT /image/{id}/ensureTags | Ensures that the tags are set on an image |
| ImageApi | image_get | GET /image/{id}/get | Gets an image |
| ImageApi | image_get_all_embeddings | GET /image/{id}/getAllEmbeddings | Gets all the embeddings of an image |
| ImageApi | image_get_all_features | GET /image/{id}/getAllFeatures | Gets all the features of an image |
| ImageApi | image_get_all_recipes | GET /image/{id}/getAllRecipes | Gets all the recipes of an image |
| ImageApi | image_get_all_tags | GET /image/{id}/getAllTags | Gets all the tags of an image |
| ImageApi | image_get_collection_ids | GET /image/{id}/collectionIds | Gets the identifiers of the image collections |
| ImageApi | image_get_embeddings | GET /image/{id}/getEmbeddings | Gets the embeddings of an image |
| ImageApi | image_get_features | GET /image/{id}/getFeatures | Gets all the features of an image for an extension |
| ImageApi | image_get_metadata | GET /image/{id}/metadata | Gets the metadata of an image |
| ImageApi | image_get_tags | GET /image/{id}/getTags | Gets the tags of an image for an extension |
| ImageApi | image_media_url | GET /image/{id}/mediaUrl | Gets an URL of the image |
| ImageApi | image_modify | PUT /image/{id}/modify | Modifies an image |
| ImageApi | image_run_capabilities | PUT /image/{id}/runCapabilities | Runs capabilities on an image |
| ImageApi | image_search_features | POST /image/search/features | Retrieves image features |
| ImageApi | image_search_ids | POST /image/search/ids | Retrieves image ids |
| ImageApi | image_search_images | POST /image/search/images | Retrieves image details |
| ImageApi | image_search_media_url | POST /image/search/mediaUrls | Retrieves image media URLs |
| ImageApi | image_search_run_capabilities | PUT /image/search/runCapabilities | Run capabilities on images |
| ImageApi | image_search_summaries | POST /image/search/summaries | Retrieves image summaries |
| ImageApi | image_search_tags | POST /image/search/tags | Retrieves image tags |
| ImageApi | image_set_embeddings | PUT /image/{id}/setEmbeddings | Sets the embeddings of an image |
| ImageApi | image_set_features | PUT /image/{id}/setFeatures | Sets the features of an image |
| ImageApi | image_set_tags | PUT /image/{id}/setTags | Sets the tags of an image |
| ImageApi | image_text_to_images | GET /image/textToImages | Gets the closest images to a text following the embeddings of an extension |
| ImageAttachmentApi | imageattachment_create | POST /imageAttachment/create | Declares an image binary attachment |
| ImageAttachmentApi | imageattachment_download | GET /imageAttachment/{uri}/download | Downloads an image binary attachment |
| MiscellaneousApi | miscellaneous_get_configuration | GET /miscellaneous/configuration | Gets the application configuration |
| MiscellaneousApi | miscellaneous_ping | GET /miscellaneous/ping | Pings the service |
| RepositoryApi | repository_activities | GET /repository/activities | Indicates the repositories activities |
| RepositoryApi | repository_create | POST /repository/create | Creates a repository |
| RepositoryApi | repository_delete | DELETE /repository/{id}/delete | Deletes a repository |
| RepositoryApi | repository_ensure | PUT /repository/ensure | Ensures a repository exists |
| RepositoryApi | repository_get | GET /repository/{id}/get | Gets a repository |
| RepositoryApi | repository_get_embeddings_names | GET /repository/embeddingsNames | Gets all the embeddings identifiers and names |
| RepositoryApi | repository_get_feature_names | GET /repository/featureNames | Gets all the feature names |
| RepositoryApi | repository_get_image_by_url | GET /repository/getImageByUrl | Gets an image from its URL |
| RepositoryApi | repository_get_tags | GET /repository/tags | Gets all the tags |
| RepositoryApi | repository_list | GET /repository/list | Lists repositories |
| RepositoryApi | repository_rename_image | PUT /repository/{id}/renameImage | Renames an image |
| RepositoryApi | repository_start_or_stop | PUT /repository/startOrStop | Starts or stop the repositories |
| RepositoryApi | repository_store_image | POST /repository/{id}/storeImage | Creates an image in the repository |
| RepositoryApi | repository_synchronize | PUT /repository/{id}/synchronize | Synchronizes a repository |
| RepositoryApi | repository_update | PUT /repository/{id}/update | Updates a repository |
| RepositoryApi | repository_watch | PUT /repository/{id}/watch | Starts or stops watching a repository |
| SettingsApi | settings_get | GET /settings/get | Gets all the settings |
| SettingsApi | settings_set | PUT /settings/set | Sets all the settings |
Documentation For Models
- ApiSecret
- ApiSecretSummary
- ApiSecretType
- ApplicationConfiguration
- ApplicationMetadata
- ApplicationMetadataItem
- ApplicationMetadataItemValue
- ApplicationSettings
- Collection
- CommandEntity
- ComputedImageFormat
- ConfigurationCapability
- ConfigurationExtensionCommand
- ConstantsRegistry
- Dates
- Extension
- ExtensionActivity
- ExtensionActivityKind
- ExtensionAndManual
- ExtensionCategory
- ExtensionGenerationOptions
- ExtensionIdImageEmbeddingName
- ExtensionImageEmbeddings
- ExtensionImageFeature
- ExtensionImageFeatureName
- ExtensionImageFeaturesAttribute
- ExtensionImageTag
- ExtensionImageTagsAttribute
- ExtensionManual
- ExtensionSettings
- ExtensionState
- ExtensionsConfiguration
- GenerationRecipe
- GenerationRecipePrompt
- Image
- ImageDimensions
- ImageDistance
- ImageEmbedding
- ImageFeature
- ImageFeatureFormat
- ImageFeatureNullValue
- ImageFeatureType
- ImageFeatureValue
- ImageFormat
- ImageMediaUrl
- ImageMetadata
- ImageResizeRender
- ImageSummary
- InstructionsPrompt
- Manifest
- ManifestCapability
- ManifestCapabilityId
- ManifestEvent
- ManifestExecution
- ManifestExtensionCommand
- ManifestExtensionCommandOn
- ManifestExtensionCommandSpecification
- ManifestExtensionCommandUi
- ManifestInstructions
- ManifestInterfaceElement
- ManifestInterfaceElementIntegration
- ManifestRuntime
- ManifestRuntimeEnvironment
- ManifestThrottlingPolicy
- ManifestUserInterface
- PromptKind
- Repository
- RepositoryActivity
- RepositoryActivityKind
- RepositoryLocationType
- RepositoryState
- RunCommandParameters
- SearchCriteria
- SearchFeatureComparisonOperator
- SearchFeatureCondition
- SearchFeatureConditionValue
- SearchFeatureLogicalOperator
- SearchFeatures
- SearchFeaturesResult
- SearchFilter
- SearchFilterOrigin
- SearchImageIdResult
- SearchImageResult
- SearchImageSummaryResult
- SearchImagesOrigin
- SearchKeyword
- SearchMediaUrlResult
- SearchOriginNature
- SearchParameters
- SearchProperties
- SearchPropertyRange
- SearchRange
- SearchRepositoriesOrigin
- SearchSorting
- SearchSortingProperty
- SearchTags
- SearchTagsResult
- Software
- TextualPrompt
- UserInterfaceAnchor
- UserInterfaceSidebarIntegration
- UserInterfaceWindowIntegration
Documentation For Authorization
Authentication schemes defined for the API:
api-key
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header
Author
Metadata
Release files for picteus-ws-client 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| picteus_ws_client-0.21.0.tar.gz | 107.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| picteus_ws_client-0.21.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 311.8 kB
Release files / picteus_ws_client-0.21.0.tar.gz
| Download URL | picteus_ws_client-0.21.0.tar.gz |
|---|---|
| Size | 107.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
447b5001aa535137e78654907b6729d2d3ac271e4df11f877a1c8f577a8f29d7
|
|
BLAKE2b-256 checksum How to use checksums |
6099b3a37cb5ba5e49b45223c8a202aef7a57086fd9cfe8b4a5e06800f8d9a40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / picteus_ws_client-0.21.0-py3-none-any.whl
| Download URL | picteus_ws_client-0.21.0-py3-none-any.whl |
|---|---|
| Size | 204.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29d7a5288a50d31a518e52caaa29a2c5a1f99263db8f2768d400dbd2ee64618a
|
|
BLAKE2b-256 checksum How to use checksums |
3a69884f064b1267503f7883534df0e5b3f0801b65dbcfcaf1790d1ef853d788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|