Skip to main content

The python sdk for xldeploy

Project description

Python SDK for XL-Deploy.

Usage

import xldeploy

config = xldeploy.Config(protocol="http", host="localhost", port="4516", context_path="deployit", username="admin", password="admin")
# or
config = xldeploy.Config()
client = xldeploy.Client(config)

# repository
repository = client.repository
print repository.exists("Applications/EC2/1.0/ec2")
print repository.exists("Applications/EC2/1.0/wrong")
ci = repository.read("Applications/EC2/1.0/ec2")
print ci.amiId

# deployment
deployment = client.deployment
deploymentRef = deployment.prepare_initial("Applications/NIApp/1.0", "Environments/awsEnv")
depl = deployment.prepare_auto_deployeds(deploymentRef)
task = deployment.create_task(depl)
task.start()
print task.task_id

Installation

$ pip install xldeploy-py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xldeploy-py-0.0.1.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file xldeploy-py-0.0.1.tar.gz.

File metadata

  • Download URL: xldeploy-py-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xldeploy-py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5fde0f58a4f9a3edd82dab4fc8daca77aa6482fa26b96eb7a98f9eeaa52c2ae9
MD5 5d64b64d7c15bf4fd81d12cd4312cbf1
BLAKE2b-256 5155fdddc76d1b55a19f2fc5088559435db9990df17bf6e20ee296ebbc182cec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page