picteus-ws-client
The Picteus API
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.26.0
- Package version: 0.26.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://127.0.0.1:3001
# See configuration.py for a list of all supported configuration parameters.
configuration = picteus_ws_client.Configuration(
host = "https://127.0.0.1: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://127.0.0.1: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_caption_instructions | GET /extension/{id}/getCaptionInstructions | Gets the caption instructions for an extension |
| ExtensionApi | extension_get_configuration | GET /extension/getConfiguration | Provides the extensions configuration |
| ExtensionApi | extension_get_eligible_tags_instructions | GET /extension/{id}/getEligibleTagsInstructions | Gets the eligible tags instructions for an extension |
| 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 extensions |
| ExtensionApi | extension_list_ai_models | GET /extension/listAiModels | Lists the AI models declared by 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_ai_models | PUT /extension/{id}/setAiModels | Sets the AI models declared for an extension |
| ExtensionApi | extension_set_caption_instructions | PUT /extension/{id}/setCaptionInstructions | Sets the caption instructions for an extension |
| ExtensionApi | extension_set_eligible_tags_instructions | PUT /extension/{id}/setEligibleTagsInstructions | Sets the eligible tags instructions for an extension |
| 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_features | PUT /image/{id}/ensureFeatures | Ensures that features are set on an image |
| ImageApi | image_ensure_tags | PUT /image/{id}/ensureTags | Ensures that 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 |
| MarketplaceApi | marketplace_get | GET /marketplace/{id}/get | Gets a marketplace extension |
| MarketplaceApi | marketplace_install | POST /marketplace/{id}/install | Installs an extension |
| MarketplaceApi | marketplace_list | GET /marketplace/list | Lists extensions |
| MarketplaceApi | marketplace_update | PUT /marketplace/{id}/update | Updates an extension |
| 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 attached to an extension 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
- AiModel
- ApiSecret
- ApiSecretSummary
- ApiSecretType
- ApplicationConfiguration
- ApplicationMetadata
- ApplicationMetadataItem
- ApplicationMetadataItemValue
- ApplicationSettings
- CaptionInstruction
- Collection
- CommandEntity
- ComputedImageFormat
- ConfigurationCapability
- ConfigurationExtensionCommand
- ConstantsRegistry
- Dates
- EligibleTagsInstruction
- Extension
- ExtensionActivity
- ExtensionActivityState
- ExtensionAiModel
- ExtensionAndManual
- ExtensionCategory
- ExtensionGenerationOptions
- ExtensionIdImageEmbeddingName
- ExtensionImageEmbeddings
- ExtensionImageFeature
- ExtensionImageFeatureName
- ExtensionImageFeaturesAttribute
- ExtensionImageTag
- ExtensionImageTagsAttribute
- ExtensionManual
- ExtensionSettings
- ExtensionState
- ExtensionsConfiguration
- GenerationRecipe
- GenerationRecipePrompt
- GenerationRecipeVersion
- Image
- ImageDimensions
- ImageDistance
- ImageEmbedding
- ImageFeature
- ImageFeatureFormat
- ImageFeatureNullValue
- ImageFeatureType
- ImageFeatureValue
- ImageFormat
- ImageMediaUrl
- ImageMetadata
- ImageResizeRender
- ImageSummary
- InstructionsPrompt
- Manifest
- ManifestCapability
- ManifestCapabilityCaptionsDetails
- ManifestCapabilityEligibleTagsDetails
- ManifestCapabilityId
- ManifestEvent
- ManifestExecution
- ManifestExtensionCommand
- ManifestExtensionCommandOn
- ManifestExtensionCommandSpecification
- ManifestExtensionCommandUi
- ManifestImageFeaturesCapability
- ManifestImageTagsCapability
- ManifestInstructions
- ManifestInstructionsCapabilitiesInner
- ManifestInterfaceElement
- ManifestInterfaceElementIntegration
- ManifestRuntime
- ManifestRuntimeEnvironment
- ManifestThrottlingPolicy
- ManifestUserInterface
- MarketplaceExtension
- MarketplaceExtensionDetails
- 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
- TagsPlaceholder
- 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.26.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 | Provenance | Actions |
|---|---|---|---|---|
| picteus_ws_client-0.26.0.tar.gz | 119.2 kB | Without provenance | Details for picteus_ws_client-0.26.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picteus_ws_client-0.26.0-py3-none-any.whl | Python 3 | none | any | Details for picteus_ws_client-0.26.0-py3-none-any.whl |
Total release size: 347.8 kB
Release files / picteus_ws_client-0.26.0.tar.gz
| Download URL | picteus_ws_client-0.26.0.tar.gz |
|---|---|
| Size | 119.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dbee0c38b1834655c689cc53575c13a830e6fa73c741ab164d0717b7f1395c5
|
|
BLAKE2b-256 checksum How to use checksums |
a5156dccfee788fedb7b6948888c7a5081a98753ebe44fd2d4828ca4ca7eb0a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / picteus_ws_client-0.26.0-py3-none-any.whl
| Download URL | picteus_ws_client-0.26.0-py3-none-any.whl |
|---|---|
| Size | 228.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc7acdfd5db1ae609ba5422853aafdb0f49cd4ff30c5ffdf831991616858b9a6
|
|
BLAKE2b-256 checksum How to use checksums |
0da02f9b51b6f2564245f697e292540948c7db9b3fbe47c6a5dc725cf7a8fe3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for picteus-ws-client 0.26.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.