Picteus
Project description
picteus-ws-client
The Picteus API
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.15.0
- Package version: 0.15.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_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_pause_or_resume | PUT /extension/{id}/pauseOrResume | Pauses or resumes 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 closest images to the image following the embeddings of an extension |
| 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_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_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_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_synchronize | PUT /image/{id}/synchronize | Synchronizes 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_ping | GET /miscellaneous/ping | Pings the service |
| MiscellaneousApi | miscellaneous_test | GET /miscellaneous/test | Runs a test |
| 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_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
- ApplicationMetadata
- ApplicationMetadataItem
- ApplicationMetadataItemValue
- Collection
- CommandEntity
- ComputedImageFormat
- ConfigurationCapability
- ConfigurationExtensionCommand
- ConstantsRegistry
- Dates
- Extension
- ExtensionActivity
- ExtensionActivityKind
- ExtensionAndManual
- ExtensionGenerationOptions
- ExtensionImageEmbeddings
- ExtensionImageFeature
- ExtensionImageFeatureName
- ExtensionImageFeaturesAttribute
- ExtensionImageTag
- ExtensionImageTagsAttribute
- ExtensionManual
- ExtensionSettings
- ExtensionStatus
- ExtensionsConfiguration
- GenerationRecipe
- GenerationRecipePrompt
- Image
- ImageDimensions
- ImageDistance
- ImageEmbeddings
- ImageFeature
- ImageFeatureFormat
- ImageFeatureNullValue
- ImageFeatureType
- ImageFeatureValue
- ImageFormat
- ImageMediaUrl
- ImageMetadata
- ImageResizeRender
- ImageSummary
- InstructionsPrompt
- Manifest
- ManifestCapability
- ManifestCapabilityId
- ManifestEvent
- ManifestExecution
- ManifestExtensionCommand
- ManifestExtensionCommandOn
- ManifestExtensionCommandSpecification
- ManifestInstructions
- ManifestInterfaceElement
- ManifestInterfaceElementIntegration
- ManifestRuntime
- ManifestRuntimeEnvironment
- ManifestThrottlingPolicy
- ManifestUserInterface
- PromptKind
- Repository
- RepositoryActivity
- RepositoryActivityKind
- RepositoryLocationType
- RepositoryStatus
- 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
- Settings
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file picteus_ws_client-0.15.0.tar.gz.
File metadata
- Download URL: picteus_ws_client-0.15.0.tar.gz
- Upload date:
- Size: 101.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14bd0c3d59bde3c2cfd50b2351ce78dcffb4878b6868a2b85c62df2841d1b5c0
|
|
| MD5 |
5d86b881f3d03d506ee11d72aee6a68f
|
|
| BLAKE2b-256 |
43a058eda80f060f820e5e68cf6a561f821f1d8b09cb4c87905d6172af97b9f3
|
File details
Details for the file picteus_ws_client-0.15.0-py3-none-any.whl.
File metadata
- Download URL: picteus_ws_client-0.15.0-py3-none-any.whl
- Upload date:
- Size: 194.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
516d1cb04cf2ad37afedbc57fec8e3df4c5c2009e08a3d10c97ca9802c6b177a
|
|
| MD5 |
c0b8aac77bb8e924758fb8b72d1108c2
|
|
| BLAKE2b-256 |
fda2d9613653f2a6a1139dded418a038ceeec4aafcc6dc96622d9db3a6f0ce75
|