Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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.

Metadata

Release files for acapi 0.9.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 acapi 0.9.0
File Size Uploaded Provenance Actions
acapi-0.9.0.tar.gz 12.6 kB Without provenance Details for acapi-0.9.0.tar.gz

Release files / acapi-0.9.0.tar.gz

Download URL acapi-0.9.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
db83de79431d436a149aeb2e69798bec1d485d4ffd83429f5947d924ab3609b0
BLAKE2b-256 checksum
How to use checksums
dd173493afd5689bce79309e1f327a85b0b44d92a372bb4178bcf2dee3e5e786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

Security for acapi 0.9.0

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.

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