Operate Sakura's cloud object storage from Python

Ruby: http://qiita.com/toshitanian/items/eab866b46bdec7283d4b

Sakura's cloud object storage

An object storage service that supports large amounts of data and has an S3 compatible API.

http://cloud.sakura.ad.jp/specification.php#section-object

Difference between S3 and Sakura object storage

A library that can be used to connect to S3 with Python

boto / boto de facto

boto / boto3 New version of boto. It seems better to use this one.

Manipulate Sakura's object storage from Python

python: Python 2.7.8

boto(2.32.1)

from boto.s3.connection import S3Connection

conn = S3Connection(
    'xxx', # access_key_id
    'yyyy', # secret_access_key
    host='b.sakurastorage.jp'
)
bucket = conn.get_bucket('test-bucket')
obj = bucket.get_key('sample_file.txt')
print obj.get_contents_as_string()

Recommended Posts

Operate Sakura's cloud object storage from Python
Using Cloud Storage from Python3 (Introduction)
[GCP] Operate Google Cloud Storage with Python
Operate neutron from Python!
Operate LXC from Python
Reading CSV data from DSX object storage Python code
[Python] Change the Cache-Control of the object uploaded to Cloud Storage
Touch a Python object from Elixir
Operate an I2C-connected display from Python
Operate DynamoDB from Python like SQL.
Use Azure Blob Storage from Python
Run Cloud Dataflow (Python) from App Engine
Use Google Cloud Vision API from Python
Copy data from Amazon S3 to Google Cloud Storage with Python (boto)
Python built-in object
Access Cloud Storage from your Compute Engine instance
Get Google Cloud Storage object list in Java
How to generate a Python object from JSON
sql from python
Python built-in object
MeCab from Python
Operate the schedule app using python from iphone
Create a datetime object from a string in Python (Python 3.3)
Convert the cURL API to a Python script (using IBM Cloud object storage)
Generate and output plantuml object diagram from Python object
Operate mongoDB from python in ubuntu environment ① Introduction of mongoDB
[AWS] Operate SQS from SDK (send / receive) [Python] [Node.js]
From python to running instance on google cloud platform
[IBM Cloud] Place the ISO file in the object storage
Generate Word Cloud from case law data in python3
Use thingsspeak from python
Touch MySQL from Python 3
Operate Redmine using Python Redmine
Use fluentd from python
Access bitcoind from python
Changes from Python 3.0 to Python 3.5
Changes from Python 2 to Python 3.0
Access Google Cloud Storage from Python (boto) using your service account and key file (p12)
Python from or import
Use MySQL from Python
Run python from excel
Install python from source
Operate Kinesis with Python
Execute command from Python
Object oriented in python
Use MySQL from Python
Operate Blender with Python
Manipulate riak from python
Force Python from Fortran
Use BigQuery from python.
About Python3 ... (Ellipsis object)
Execute command from python
Cloud Run tutorial (python)
Operate Excel with Python (1)
[Python] Read From Stdin
Use mecab-ipadic-neologd from python
Operate Excel with Python (2)
Control smart light "Yeelight" from Python without using the cloud
How to upload files to Cloud Storage with Firebase's python SDK
Python code for writing CSV data to DSX object storage
Let's use Watson from Python! --How to use Developer Cloud Python SDK