Skip to main content

Hanzo S3 — Python client for S3-compatible object storage

Project description

hanzo-s3

Hanzo S3 -- Python client for S3-compatible object storage.

Thin wrapper around the minio package that re-exports its public API under the hanzo_s3 namespace with Hanzo-flavoured aliases.

Install

pip install hanzo-s3
# or
uv add hanzo-s3

Quick start

from hanzo_s3 import S3Client

client = S3Client(
    "s3.hanzo.space",
    access_key="YOUR-ACCESS-KEY",
    secret_key="YOUR-SECRET-KEY",
)

# List buckets
for bucket in client.list_buckets():
    print(bucket.name, bucket.creation_date)

# Upload a file
client.fput_object("my-bucket", "remote/path.txt", "/local/path.txt")

# Download a file
client.fget_object("my-bucket", "remote/path.txt", "/local/download.txt")

Admin operations

from hanzo_s3.admin import S3Admin

admin = S3Admin("s3.hanzo.space", credentials=provider)
info = admin.info()

API

hanzo_s3 minio
S3Client / Client Minio
S3Admin / Admin MinioAdmin
S3Error / Error S3Error
S3Exception MinioException
S3AdminException MinioAdminException

All original minio names are also re-exported for backward compatibility.

Links

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

hanzo_s3-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

hanzo_s3-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file hanzo_s3-1.0.0.tar.gz.

File metadata

  • Download URL: hanzo_s3-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hanzo_s3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d60d0a767d67c4c04bddc6484674306d0642f3465395065151360dfb2367b9c0
MD5 60031dd93a19220b1acf8f7612c76e46
BLAKE2b-256 d69e7e0f26eb371dac2d5db575578640a63e9b7d92bbf2e51b599629ed559d47

See more details on using hashes here.

File details

Details for the file hanzo_s3-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hanzo_s3-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hanzo_s3-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eccdbf409e1677c71d094ae7d2a6b8d8ea838f20b39ecf0d7b7f9b1fe4566db1
MD5 f71865774c4682744e1355dd4a00f4cd
BLAKE2b-256 c87bcd228775177200464e8396a9a329a8fea24cb9dc2a2e21b56ea5806cecaf

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