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.dev4.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.dev4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_storage_minio-0.2.0.dev4.tar.gz
Algorithm Hash digest
SHA256 3640ca351db4a96fc2517da8b21835f93b9b706bc6eca37e8a1efcf3fa8b91c6
MD5 778f434ab5b801bc0fcd76936c0b949a
BLAKE2b-256 427e07e9acae40fd1c5b469a6fc223c3a204ca01dc8235bef95301e505587239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_storage_minio-0.2.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed3a0cf506ad134fcf46ca294dfd7e04417281def5928a4090cfb36d35d1452c
MD5 e907348dfed23b5625295f3f73e0efc2
BLAKE2b-256 d66cd104f14b3dbccc7fefc08b7443df96de50cf2e8d662f5472551a23ba8951

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