Cloud Backup API Python SDK
***************************
:version: 0.19.3
:Presentations: `Introduction`_
.. image:: https://requires.io/github/cabrera/python-cloudbackup-sdk/requirements.png?branch=master
:target: https://requires.io/github/cabrera/python-cloudbackup-sdk/requirements/?branch=master
:alt: Requirements Status
.. image:: https://travis-ci.org/cabrera/python-cloudbackup-sdk.png?branch=master
:target: https://travis-ci.org/cabrera/python-cloudbackup-sdk
:alt: TravisCI Status
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**
.. contents::
:local:
:depth: 2
:backlinks: none
========
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:
.. code-block:: python
from rcbu.client.client import Client
from rcbu.client.connection import Connection
import rcbu.client.backup_configuration as backup_config
conn = Connection('username', 'dfw',
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
.. code-block:: bash
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>.
.. _Pythonic: http://www.python.org/dev/peps/pep-0020/
.. _backup_config.json: https://github.com/rackerlabs/python-cloudbackup-sdk/blob/master/examples/create_a_backup/backup_config.json
.. _ipython: http://ipython.org/
.. _Introduction: https://one.rackspace.com/download/attachments/21615636/python-sdk.pdf
.. _Contributing: https://github.com/rackerlabs/python-cloudbackup-sdk/blob/master/CONTRIBUTING.rst
Metadata
Release files for rackspace-backup-client 0.19.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rackspace-backup-client-0.19.3.tar.gz | 40.0 kB | Without provenance | Details for rackspace-backup-client-0.19.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rackspace_backup_client-0.19.3-py33-none-any.whl | Python 3.3 | none | any | Details for rackspace_backup_client-0.19.3-py33-none-any.whl |
| rackspace_backup_client-0.19.3-py27-none-any.whl | Python 2.7 | none | any | Details for rackspace_backup_client-0.19.3-py27-none-any.whl |
Total release size: 139.3 kB
Release files / rackspace-backup-client-0.19.3.tar.gz
| Download URL | rackspace-backup-client-0.19.3.tar.gz |
|---|---|
| Size | 40.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8d0192e10b7357e56043b58c77d9cb63a07e261ec1dd79ef8ac610eb6ac99b6
|
|
BLAKE2b-256 checksum How to use checksums |
7f82efede76a26bbce9e95b7a104abf333e0af03e4fdce7efdf438a492cfef98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rackspace_backup_client-0.19.3-py33-none-any.whl
| Download URL | rackspace_backup_client-0.19.3-py33-none-any.whl |
|---|---|
| Size | 49.6 kB |
| Tags | Python 3.3 |
|
SHA-256 checksum How to use checksums |
90c22e1f993f8a7b673146e8941549bcf965400b4b1b4c552463b76b4cfb51ab
|
|
BLAKE2b-256 checksum How to use checksums |
2848a9e50c1872625b45e63c81ca3530cb6a68dae3c5b1fe6d6bcc2df651b264
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rackspace_backup_client-0.19.3-py27-none-any.whl
| Download URL | rackspace_backup_client-0.19.3-py27-none-any.whl |
|---|---|
| Size | 49.6 kB |
| Tags | Python 2.7 |
|
SHA-256 checksum How to use checksums |
45587e45c0384973a3dac8324746cd2bb7dcff10a53f6592609d2eacf3656de1
|
|
BLAKE2b-256 checksum How to use checksums |
62f9ca1000ed8a1c786b884b0f0dbeaffb31bd92feb6069243dda5ebdf3aae82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rackspace-backup-client 0.19.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.