granite_assets package

granite-assets – portable asset repository abstraction.

Public API

Import the pieces you need directly from granite_assets:

from granite_assets import (
    IAssetRepository,
    AssetVisibility,
    AssetSaveRequest,
    AssetSaveResult,
    AssetDescriptor,
    AssetAccessUrl,
    UploadUrlResult,
    LocalNginxAssetRepositoryConfig,
    S3AssetRepositoryConfig,
    LocalNginxAssetRepository,
    build_asset_repository,
    AssetError,
    AssetNotFoundError,
    AssetAccessNotSupportedError,
    AssetConfigurationError,
)

S3AssetRepository is only available if the s3 extra is installed.