Skip to main content

The python sdk for xldeploy

Project description

Python SDK for XL-Deploy.


import xldeploy

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

# If you are using proxies
config = xldeploy.Config(protocol="http", host="localhost", port="4516", context_path="deployit", username="admin", password="admin",  proxy_host="localhost", proxy_port=8080, proxy_username="proxyUsername", proxy_password="proxyPassword")

# 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 ="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)
print task.task_id


$ 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.

Files for xldeploy-py, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size xldeploy-py-0.0.2.tar.gz (8.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page