aurigma-asset-storage-api-client
Python client library for Aurigma Asset Storage API.
Requirements.
- Python 3.9+
- Dependencies:
- python-dateutil>=2.8.2
- httpx>=0.28.1
- pydantic>=2
- typing-extensions>=4.7.1
Installation & Usage
pip install
pip install aurigma-asset-storage-api-client
Then import the package:
import aurigma.asset_storage
Getting Started
In your own code, to use this library to connect and interact with aurigma-asset-storage-api-client, you can run the following:
import aurigma.asset_storage
from aurigma.asset_storage.rest import ApiException
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = aurigma.asset_storage.Configuration(
host = "http://api.customerscanvashub.com/"
)
# 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: ApiKey
configuration.api_key['ApiKey'] = os.environ["API_KEY"]
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
async with aurigma.asset_storage.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = aurigma.asset_storage.ArtifactsApi(api_client)
file = None # bytearray | File content.
name = 'name_example' # str | Entity name.
tenant_id = 56 # int | Tenant ID. (optional)
description = 'description_example' # str | Artifact description. (optional)
group = 'group_example' # str | Artifact group. (optional)
alias = 'alias_example' # str | Artifact alias (special name within group). (optional)
type = aurigma.asset_storage.ArtifactType() # ArtifactType | Artifact type. (optional)
format = 'format_example' # str | Artifact file format. (optional)
anonymous_access = True # bool | Artifact 'anonymous access' tag. It indicates whether artifact can be accessed anonymously. (optional)
custom_fields = None # Dict[str, Optional[object]] | Entity custom attributes. (optional)
try:
# Creates a new entity.
api_response = await api_instance.artifacts_create(file, name, tenant_id=tenant_id, description=description, group=group, alias=alias, type=type, format=format, anonymous_access=anonymous_access, custom_fields=custom_fields)
print("The response of ArtifactsApi->artifacts_create:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ArtifactsApi->artifacts_create: %s\n" % e)
Metadata
Release files for aurigma-asset-storage-api-client 2.82.1.34183
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aurigma_asset_storage_api_client-2.82.1.34183.tar.gz | 157.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aurigma_asset_storage_api_client-2.82.1.34183-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 454.2 kB
Release files / aurigma_asset_storage_api_client-2.82.1.34183.tar.gz
| Download URL | aurigma_asset_storage_api_client-2.82.1.34183.tar.gz |
|---|---|
| Size | 157.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66c5523311828f0acdfc5bf4232b6534a78e5a8a1238c6fb9315e80645d19dd7
|
|
BLAKE2b-256 checksum How to use checksums |
be078abb12cfe817a459578f7519c5f18b96afccdd1c5ca62932e20d1b6a6c22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / aurigma_asset_storage_api_client-2.82.1.34183-py3-none-any.whl
| Download URL | aurigma_asset_storage_api_client-2.82.1.34183-py3-none-any.whl |
|---|---|
| Size | 296.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8032d67f990f871bb5728f05d8df0bf10fbb4baf7874660dc7443f0639448ba2
|
|
BLAKE2b-256 checksum How to use checksums |
ea4e5c6738bb55589c4207d0d63c9101702a74b393a9ce339db19f897a5104f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|