softlayer-object-storageSoftlayer Object Storage client bindings for Python | |
Download |
softlayer-object-storage Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- SoftLayer Technologies, Inc.
- Publisher web site:
- https://github.com/softlayer/
softlayer-object-storage Tags
softlayer-object-storage Description
softlayer-object-storage provides Python bindings for SoftLayer Object Storage.InstallationDownload source and run:python setup.py installTo build the documentation (requires sphinx):python setup.py build_sphinxBasic Usageimport object_storagesl_storage = object_storage.get_client('YOUR_USERNAME', 'YOUR_API_KEY', datacenter='dal05')sl_storage.containers()# []sl_storage.create()# Container(foo)sl_storage.containers()# sl_storage.properties# {'count': 0, 'object_count': 0, 'name': 'foo', 'size': 0.0}sl_storage.create()# StorageObject(foo, sample_object.txt)sl_storage.send('Plain-Text Content')# Truesl_storage.read()# 'Plain-Text Content'sl_storage.objects()# sl_storage.delete()# Truesl_storage.delete()# TrueSearch Usagesl_storage.search({'q': 'foo'})# {'count': 2, 'total': 2, 'results': }sl_storage.search({'q': 'bar.txt'})# {'count': 1, 'total': 1, 'results': }sl_storage.search({'q': 'foo', 'type': 'container'})# {'count': 1, 'total': 1, 'results': }sl_storage.search({'q': 'foo*baz'})# {'count': 1, 'total': 1, 'results': }DevelopementFollow the Fork and Pull Request workflow. Here's how to get started:- Fork repo on github- Clone your new repo to your local machine.- git clone git@github.com:username/softlayer-object-storage-python.git - Configure remote for upstream.- cd softlayer-object-storage-python git remote add upstream git://github.com/softlayer/softlayer-object-storage-python.git- Fetch from upstream- git fetch upstreamProduct's homepage
softlayer-object-storage Related Software