Skip to main content

MinIO storage adapter for Peagen

Project description

Swarmauri MinIO Storage Adapter

Peagen storage adapter that saves artifacts to a MinIO or S3-compatible bucket.

Installation

# pip install swarmauri_storage_minio (when published)

Usage

from swarmauri_storage_minio import MinioStorageAdapter
from pydantic import SecretStr
import io

adapter = MinioStorageAdapter(
    endpoint="localhost:9000",
    access_key=SecretStr("minio"),
    secret_key=SecretStr("minio123"),
    bucket="peagen",
)
uri = adapter.upload("artifact.txt", io.BytesIO(b"data"))
print(uri)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_storage_minio-0.2.0.dev3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarmauri_storage_minio-0.2.0.dev3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_storage_minio-0.2.0.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_storage_minio-0.2.0.dev3.tar.gz
Algorithm Hash digest
SHA256 a9ad24b10ad58cc73088c494b674edb535cc1ccf1c0638af64bdc889f63c0a19
MD5 2b9fc99730562380c575b78788c90b2d
BLAKE2b-256 74d31734f074e8fd18f4102f2154a7210ef8032a72304c63248c8484070c1148

See more details on using hashes here.

File details

Details for the file swarmauri_storage_minio-0.2.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_storage_minio-0.2.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 c857ac6dc860de77208d0a4ba87f6e3c6c600badab78f5ac878779d8d7b85711
MD5 69593926ac83a4beeef046fa449f5ec8
BLAKE2b-256 6b8382fb93dcae43bd5058f870c549b9e879c4f0491e48da371669d7be21a2f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page