Skip to main content
Version: 1.0

aixplain.factories.asset_factory

__author__

Copyright 2022 The aiXplain SDK authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: Duraikrishna Selvaraju, Thiago Castro Ferreira, Shreyas Sharma and Lucas Pavanelli Date: December 27th 2022 Description: Asset Factory Class

AssetFactory Objects

class AssetFactory()

[view_source]

Base class for asset factories.

This class provides a common interface for creating and retrieving assets from the aiXplain platform. Subclasses should implement the abstract methods to define specific asset types.

Attributes:

  • backend_url str - Base URL for the aiXplain backend API.

get

@abstractmethod
def get(asset_id: Text) -> Asset

[view_source]

Create a 'Asset' object from id

Arguments:

  • asset_id str - ID of required asset.

Returns:

  • Asset - Created 'Asset' object