This is the multi-page printable view of this section. .
Python Quickstart Guide
MinIO Python SDK
SILO implements the S3-compatible server contract, so Python applications can use the upstream MinIO Python SDK directly.
Supported Python versions and SDK APIs can change independently of SILO. Check the current package metadata and SDK releases before pinning a version.
Install the package
Install minio in a virtual environment:
Configure the connection
S3_ENDPOINT is a host and optional port, without an http:// or https:// prefix. Keep credentials outside source control and set S3_USE_SSL=true when the endpoint serves TLS.
Create a bucket and upload an object
Save the following as quickstart.py:
Run it with:
Use the repository’s API reference and maintained examples for presigned URLs, server-side encryption, notifications, object locking, multipart operations, and other APIs.
Production checklist
- Use TLS and verify the server certificate.
- Load credentials from a secret manager or protected environment.
- Grant the application only the bucket and object permissions it needs.
- Pin and test the Python runtime, SDK, and HTTP dependencies together.
- Define timeouts and handle SDK exceptions, retries, streaming resources, and incomplete multipart uploads explicitly.
See Identity and Access Management for server-side policy configuration.