mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-27 04:20:09 +00:00
hanzoai/s3 (SeaweedFS fork w/ consensus+ZAP) is the canonical object store; the minio pip package and its branding are gone. hanzo-s3 is now a thin native boto3 adapter exposing a stable surface (S3Client + Bucket/ Object/Stat) so the hanzo s3 CLI and s3 MCP tool are unchanged. Removed the dead MinioAdmin re-export (no consumer) and all MinIO naming. CLI (7) + MCP S3Tool (14) tests green; ruff clean.
46 lines
852 B
Python
46 lines
852 B
Python
"""Hanzo S3 -- Python client for S3-compatible object storage.
|
|
|
|
Backed by hanzoai/s3 (a SeaweedFS fork with Hanzo consensus + ZAP). The S3
|
|
wire protocol is standard, so this client is a thin, native adapter over
|
|
``boto3`` exposing a small, stable surface.
|
|
|
|
Usage::
|
|
|
|
from hanzo_s3 import S3Client
|
|
|
|
client = S3Client(
|
|
"s3.hanzo.ai",
|
|
access_key="YOUR-ACCESS-KEY",
|
|
secret_key="YOUR-SECRET-KEY",
|
|
)
|
|
|
|
for bucket in client.list_buckets():
|
|
print(bucket.name, bucket.creation_date)
|
|
"""
|
|
|
|
from hanzo_s3.client import (
|
|
Bucket,
|
|
Object,
|
|
S3Client,
|
|
S3Error,
|
|
Stat,
|
|
)
|
|
|
|
# Convenience aliases
|
|
Client = S3Client
|
|
Error = S3Error
|
|
S3Exception = S3Error
|
|
|
|
__version__ = "1.0.0"
|
|
|
|
__all__ = [
|
|
"S3Client",
|
|
"Client",
|
|
"S3Error",
|
|
"Error",
|
|
"S3Exception",
|
|
"Bucket",
|
|
"Object",
|
|
"Stat",
|
|
]
|