Skip to main content

ACS SDK for Python

The Python SDK for Accelerated Cloud Storage's Object Storage offering.

acs-sdk-python is the ACS SDK for the Python programming language.

The SDK requires a minimum version of Python 3.9.

Check out the Release Notes for information about the latest bug fixes, updates, and features added to the SDK.

Jump To:

Python version support policy

The SDK follows a release policy of an additional six months of support for the most recently deprecated language version.

ACS reserves the right to drop support for unsupported Python versions earlier to address critical security issues.

Getting started

Website Python API Reference Demo

Get credentials

Get your credentials and setup payments from the console on the website.

Next, set up credentials (in e.g. ~/.acs/credentials):

default:
    access_key_id = YOUR_KEY
    secret_access_key = YOUR_SECRET

Note: You can include multiple profiles and set them using the ACS_PROFILE environment variable. See the examples/config folder for a sample file.

Initialize project

Assuming that you have a supported version of Python installed, you can first set up your environment with:

python3 -m venv .venv
source .venv/bin/activate

Then, you can install acs from PyPI with:

python -m pip install acs-sdk

Or you can install it from source (preferred option)

$ git clone https://github.com/AcceleratedCloudStorage/acs-sdk-python
$ python -m pip install -r requirements.txt
$ python -m pip install -e .

Write Code

You can either use the client for an interface similar to the AWS SDK or a FUSE mount for a file system interface. Check out the example folder or the docs folder for more details. Please refer to our benchmarks repository for comparisions against other vendors.

Share bucket

You can also bring your existing buckets into the service by setting a bucket policy and then sharing the bucket with the service.

Step 1: Setting a bucket policy

Here is the AWS reference guide for bucket policies. You can set the following bucket policy through the AWS Console or SDK to enable ACS to access it.

{
"Version": "2012-10-17",
   "Statement": [
    {
     "Sid": "AllowUserFullAccess", 
     "Effect": "Allow",
     "Principal": {
      "AWS": "arn:aws:iam::160885293701:root"
     },
     "Action": [
      "s3:*"
     ],
     "Resource": [
      "arn:aws:s3:::BUCKETNAME",
      "arn:aws:s3:::BUCKETNAME/*"
     ]
    }
   ]
}

Step 2: Notify ACS of this newly shared bucket

# Create a new client with the session
session = Session(region="us-east-1")
client = ACSClient(session=session)
client.share_bucket("BUCKETNAME")

Getting Help

Please use these community resources for getting help.

Feedback

If you encounter a bug with the ACS SDK for Python we would like to hear about it. Search the existing issues and see if others are also experiencing the same issue before opening a new issue. Please include the version of ACS SDK for Python, Python language, and OS you’re using. Please also include reproduction case when appropriate. Keeping the list of open issues lean will help us respond in a timely manner.

Discussion

We have a discussion forum where you can read about announcements, product ideas, partcipate in Q&A. Here is a link to the discussion.

Contact us

Email us at sales@acceleratedcloudstorage.com if you have any further questions or concerns.

Release files for acs-sdk 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acs-sdk 0.4.2
File Size Uploaded
acs_sdk-0.4.2.tar.gz 37.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acs-sdk 0.4.2
File Interpreter ABI Platform
acs_sdk-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 76.4 kB

Release files / acs_sdk-0.4.2.tar.gz

Download URL acs_sdk-0.4.2.tar.gz
Size 37.3 kB
Tags Source
SHA-256 checksum
How to use checksums
950964668f91ef357c3038be0b7a81b1204e7e1553d87cc93b242805e2aee766
BLAKE2b-256 checksum
How to use checksums
4b23f613f639601d947e027ceb948f15ba650bda6d92e3d6eb2e1043b427b1b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.20

Release files / acs_sdk-0.4.2-py3-none-any.whl

Download URL acs_sdk-0.4.2-py3-none-any.whl
Size 39.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5965e606d2bf9a89186e6f8b27e59a434573551302f9ca287a9bf712bd254e88
BLAKE2b-256 checksum
How to use checksums
3845ef311abaa58dded3db438423b8cef7443629451e2741a067fb7d71604719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page