Catalog PyPI
Back to packageRELEASE DETAILS

0.9.0

PyPI

acapi

Acquia Cloud API client.

Published21 Feb 2020
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 0.9.0 documentation

Python Library for Acquia's Cloud API

This is a python client for using the Acquia Cloud API.

PyPI Version Requirements Status Coverage Status Build Status

Installation

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


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.

See LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
acapi-0.9.0.tar.gz

sdist · 12.32 KB · Python source

Source file

Repository

PENDING
skwashd/python-acquia-cloud

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:52 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:7615384a894172c65d2a98b8dfa253ce8defef2904e33203cedd575d52f17dc3

Other collected versions

View all collected versions →