Metadata-Version: 1.1
Name: acapi
Version: 0.4.5
Summary: Acquia Cloud API client.
Home-page: http://github.com/skwashd/python-acquia-cloud
Author: Dave Hall
Author-email: me@davehall.com.au
License: MIT
Description: Python Library for Acquia's Cloud API
        =====================================
        
        This is a python client for using the `Acquia Cloud
        API <https://cloudapi.acquia.com/>`__.
        
        | |PyPI Version|
        | |Requirements Status|
        | |Coverage Status|
        | |Build Status|
        
        Installation
        ------------
        
        Installing With pip (recommended)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        ``pip install acapi``
        
        Manual Installation
        -------------------
        
        ::
        
            $ git clone git@github.com:skwashd/python-acquia-cloud.git acapi
            $ cd acapi
            $ ./setup.py build && ./setup.py install
        
        Examples
        --------
        
        .. code:: python
        
        
            import acapi
        
            from pprint import pprint
        
            # Acquia subscription name.
            subname = 'example'
            # Website domain.
            domain = 'example.com'
        
            # Instantiate client using environment variables.
            # Set ACQUIA_CLOUD_API_USER and ACQUIA_CLOUD_API_TOKEN accordingly.
            c = acapi.Client()
        
            # Get the site object.
            site = c.site(subname)
        
            # Get the environments object.
            envs = site.environments()
        
            # Print all environments on a subscription.
            pprint(envs)
        
            # List the SSH host for each environment.
            for env in envs:
                print "Env: {env} SSH Host: {host}".format(env=env, host=envs[env]['ssh_host'])
        
            # Move a domain from stage to production.
            envs['prod'].domain(domain).move('test')
        
            # Backup the development environment database and download the dump file.
            site.environment('dev').db(subname).backups().create().download('/tmp/backup.sql.gz')
        
        This library was created and maintained by `Dave
        Hall <http://davehall.com.au>`__.
        
        See `LICENSE <LICENSE>`__.
        
        .. |PyPI Version| image:: https://img.shields.io/pypi/v/acapi.svg
           :target: https://pypi.python.org/pypi/acapi
        .. |Requirements Status| image:: https://requires.io/github/skwashd/python-acquia-cloud/requirements.svg?branch=master
           :target: https://requires.io/github/skwashd/python-acquia-cloud/requirements/?branch=master
        .. |Coverage Status| image:: https://coveralls.io/repos/skwashd/python-acquia-cloud/badge.svg?branch=master&service=github
           :target: https://coveralls.io/github/skwashd/python-acquia-cloud?branch=master
        .. |Build Status| image:: https://travis-ci.org/skwashd/python-acquia-cloud.png
           :target: https://travis-ci.org/skwashd/python-acquia-cloud
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Internet
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
