Registry / aws / aistore

aistore

JSON →
library1.25.0pypypi✓ verified 88d ago

Python client SDK for AIStore (AIS), a high-performance object storage cluster for AI and deep learning workloads. The SDK provides APIs to manage clusters, buckets, and objects, supporting S3-compatible and Google Cloud Storage backends. Current version is 1.23.0, compatible with AIS server clusters running version 4.x. Releases follow irregular cadence, roughly 1 minor version per month.

pip install aistore
INSTALL
IMPORT
SIG · AISTORE
A
aistore
awspythonv1.25.0
Install
4.9s avg
Import
1758ms
Disk
38MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.25.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.826s · 39.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.9s · import 1.690s · 40MB
38MB installed
● package 38MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from aistore.sdk import Client
from aistore import Client
The SDK is in aistore.sdk subpackage
Bucket
from aistore.sdk import Bucket
Object
from aistore.sdk import Object

Create a client, a bucket, put and get an object

from aistore.sdk import Client # Initialize client with AIS gateway endpoint gateway_url = os.environ.get('AIS_ENDPOINT', 'http://localhost:8080') client = Client(gateway_url) # Create a bucket (if not exists) try: client.create_bucket('my-bucket') except Exception as e: print(f'Bucket may already exist: {e}') # Put an object bucket = client.bucket('my-bucket') bucket.object('hello.txt').put_content('Hello, AIStore!') # Get the object back obj = bucket.object('hello.txt').get() print(obj.read_text()) # Hello, AIStore!
Debug
Known issues
gotchaThe SDK's client must point to the AIS gateway (proxy) endpoint, not a target node. Connecting directly to a target will fail for many operations.
fix
Use the proxy/gateway URL (usually port 8080).
affects: all
gotchaWhen using S3 or GCS backends, you must add the provider argument (e.g., 's3' or 'gcs') when creating or accessing the bucket. Otherwise AIStore defaults to the AIS internal provider and will not see the remote bucket.
fix
client.create_bucket('my-bucket', provider='s3') or client.bucket('my-bucket', provider='s3').object('key').get()
affects: all
deprecatedThe method `put_object` and `get_object` have been deprecated in favor of `object.put_content` and `object.get`.
fix
Use bucket.object('key').put_content(data) and bucket.object('key').get() instead.
affects: >=1.20.0
breakingStarting from version 4.0 of the AIS server, the object metadata format changed (v2). SDK versions < 1.23.0 may not parse v2 metadata correctly, causing errors when listing objects.
fix
Update the SDK to >=1.23.0 to support server 4.x.
affects: server >= 4.0
Errors
Common errors & fixes
ImportError: cannot import name 'Client' from 'aistore'
Trying to import Client from the top-level aistore package instead of aistore.sdk.
fix
Use: from aistore.sdk import Client
aistore.sdk.errors.AISConnectionError: Failed to connect to ...
The client is trying to connect to a target node instead of the gateway/proxy, or the gateway is not reachable.
fix
Ensure AIS_ENDPOINT points to the proxy URL (usually http://<PROXY_IP>:8080) and that the proxy is running.
aistore.sdk.errors.AISBadArgument: Bucket provider is required
Attempting to access a remote bucket (S3, GCS) without specifying the provider.
fix
Pass provider='s3' or provider='gcs' to bucket() or create_bucket().
AttributeError: 'Object' object has no attribute 'put_content'
Using an older SDK version (<1.20.0) that still uses put_object/get_object.
fix
Upgrade to latest aistore with: pip install --upgrade aistore
Upgrade
Version history
1.25.0latest on PyPI · released May 20, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
urllib3requiredUnderlying HTTP transport
Agent activity
85 hits · last 30 days
node
72
Perplexity
1
OpenAI (training)
1
Resources
aistore — pip install aistore · libregistry