Skip to main content

A Python client for the Rackspace Cloud Backup API.

Project description

Version:
0.18.0
Presentations:

Introduction

Welcome to the Python bindings to the Rackspace Cloud Backup API. These bindings will help you make the most of the Cloud Backup system and integrate it into your workflows.

Table of Contents

Features

  • Python 2.7 and 3.3+ supported

  • Easy to install (pip)

  • Easy to test (nose + tox)

  • Designed to be easy to use with ipython
    • Tab-completion and smart introspection

    • verbs map to object functions: backup.start()

    • nouns map to object properties: backup.report

I’ll let the code speak for ease of use:

from rcbu.client.client import Client
from rcbu.client.connection import Connection
import rcbu.client.backup_configuration as backup_config

conn = Connection('username', apikey='981263y1hq82yh8y9q38q2')
client = Client(conn)
myconf = backup_config.from_file('backup_config.json', conn)

# Upload a new backup configuration to the Backup API
myconf.create()

backup = client.create_backup(myconf)
status = backup.start()

# block here until the backup completes
# polls once a minute by default
backup.wait_for_completion(poll_interval=.5)

# easy reporting and checking for success
report = backup.report
report.raise_if_not_ok()

Check out the backup_config.json

Install

Make sure you have libgmp, libssl, and the Python development headers installed:

sudo apt-get install libgmp-dev libssl-dev python-dev
sudo apt-get install libgmp-dev libssl-dev python3-dev  # for Py3

On Windows, make sure that the proper Visual Studio path is configured:

SET VS90COMNTOOLS=%VS100COMNTOOLS%  # MSVS 2010
SET VS90COMNTOOLS=%VS110COMNTOOLS%  # MSVS 2012
pip install git+https://github.com/rackerlabs/python-cloudbackup-sdk

Contributing

Some simple guidelines:

  • Unit tests for new features

  • Keep the code clean - flake8

  • Be wary of warnings and errors - pylint

  • >95% code coverage - keep it strong

  • Be Pythonic

For more details, checkout the Contributing guide.

If you have any questions, please check in with Alejandro Cabrera <alejandro.cabrera@rackspace.com>.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

rackspace-backup-client-0.18.0.tar.gz (34.6 kB view details)

Uploaded Source

rackspace-backup-client-0.18.0.linux-x86_64.tar.gz (74.9 kB view details)

Uploaded Source

Built Distributions

rackspace_backup_client-0.18.0-py33-none-any.whl (49.4 kB view details)

Uploaded Python 3.3

rackspace_backup_client-0.18.0-py27-none-any.whl (49.4 kB view details)

Uploaded Python 2.7

File details

Details for the file rackspace-backup-client-0.18.0.tar.gz.

File metadata

File hashes

Hashes for rackspace-backup-client-0.18.0.tar.gz
Algorithm Hash digest
SHA256 0ab925781032ca86f2d6d9e9d99871b2d1c6f3e7f01ca97d5d8ea4504b68df2d
MD5 0e8dabe463c2bff0632bed5ce55d4e67
BLAKE2b-256 3edcf1a0bd9adfab6346143e9fc4d4fdb07a525328a4c20f1c902f02b2194f00

See more details on using hashes here.

File details

Details for the file rackspace-backup-client-0.18.0.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for rackspace-backup-client-0.18.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 4c53203d54afeeb154f31956e98ab9b7a86431c3e0911729fc8ac2997ab217ce
MD5 4909f7bfc20226e0c5d2229ed9f9641f
BLAKE2b-256 0cbb604aed8966bb85ec4dc7ece99bbd1432b4c912c36ac48546e5f2a21af43b

See more details on using hashes here.

File details

Details for the file rackspace_backup_client-0.18.0-py33-none-any.whl.

File metadata

File hashes

Hashes for rackspace_backup_client-0.18.0-py33-none-any.whl
Algorithm Hash digest
SHA256 a38e56257ecd67502340f6c130fda0a4849cc9a5a3017a52a6edd8561ca20da1
MD5 1ca861448f303f43bf7714b7c2af4fbe
BLAKE2b-256 dba9db6003065d81757b956f1fa37ccfe34e0a0c9582462184014ef984744884

See more details on using hashes here.

File details

Details for the file rackspace_backup_client-0.18.0-py27-none-any.whl.

File metadata

File hashes

Hashes for rackspace_backup_client-0.18.0-py27-none-any.whl
Algorithm Hash digest
SHA256 8d0b575daf81781077f026128a74ccc63b932baeaa1e8bb049aceee1b2002f18
MD5 8947f08bf5837e548873e964a52a868a
BLAKE2b-256 5578655a7f6b76b4d142a860f755265c8d749eb4d428050acd9a5fa362b25bc7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page