Skip to main content
Version:
0.19.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>.

Metadata

Release files for rackspace-backup-client 0.19.0

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

Source distribution (sdist)

Source distribution for rackspace-backup-client 0.19.0
File Size Uploaded
rackspace-backup-client-0.19.0.linux-x86_64.tar.gz 77.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rackspace-backup-client 0.19.0
File Interpreter ABI Platform
rackspace_backup_client-0.19.0-py33-none-any.whl Python 3.3 none any Details
rackspace_backup_client-0.19.0-py27-none-any.whl Python 2.7 none any Details

Total release size: 176.4 kB

Release files / rackspace-backup-client-0.19.0.linux-x86_64.tar.gz

Download URL rackspace-backup-client-0.19.0.linux-x86_64.tar.gz
Size 77.6 kB
Tags Source
SHA-256 checksum
How to use checksums
976b94a3a56bf05d62fd643832f5d25ed50255ae4ba5bf7ffed028e56901b7d6
BLAKE2b-256 checksum
How to use checksums
d5805b6b87e05c67db5fff4babebccef0e84ab749bdf580563f1b2f4a4bb7e0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rackspace_backup_client-0.19.0-py33-none-any.whl

Download URL rackspace_backup_client-0.19.0-py33-none-any.whl
Size 49.4 kB
Tags Python 3.3
SHA-256 checksum
How to use checksums
f5ea52615377946d89c0658d4f6318199513ece0c7112ebad338c3d3a22f597f
BLAKE2b-256 checksum
How to use checksums
aad0d317184d2b8250c478b3281d2e6326f03e38b8e13fc1dbc16c5899d13499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rackspace_backup_client-0.19.0-py27-none-any.whl

Download URL rackspace_backup_client-0.19.0-py27-none-any.whl
Size 49.4 kB
Tags Python 2.7
SHA-256 checksum
How to use checksums
678b01544c1891346d7e46d5efff9e318141bf7c7eb5dd0cb422e43ed7ade6a9
BLAKE2b-256 checksum
How to use checksums
f259a4252a3277a12208623d0fa0a9ffb407c5307e5071886b154f24ef5c125d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.19.1

4 release files

This release

0.19.0 This release

3 release files

0.18.0

4 release files

0.17.2

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