Skip to main content

Python SDK for Accelerated Cloud Storage service

Project description

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.

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

acs_sdk-0.4.0.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

acs_sdk-0.4.0-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file acs_sdk-0.4.0.tar.gz.

File metadata

  • Download URL: acs_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for acs_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 61b339eb789ba16fb9d07d45b369de5e78ebada3035a71f839c14f42f5338ee6
MD5 a9d5fa79ab125893fff4c3324aac9bad
BLAKE2b-256 6f32f2b987aee14d63bbddd61c11dd4a380283160424933e81093024edfc8d3d

See more details on using hashes here.

File details

Details for the file acs_sdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: acs_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for acs_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 558c43a02f7cfef3e29751871262b5fa4801fa84ad59755127b7315b9d96fa78
MD5 137be6acccc45681ea10afc526747d74
BLAKE2b-256 ec45be436e78666f0fcd18349707e28e3f6e4687e2fa0ce689847d1b40c76d32

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