Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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 url
config = xldeploy.Config.initialize(url="http://localhost:4516/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
ci ="Applications/EC2/1.0/ec2")

# 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)

# Deployfile

## Apply Deployfile script.

import re
from os import path

deployfile = client.deployfile
deploy_file = open('deploy_file_path', 'rb').read()
file_names = re.findall('upload\([\'|"](.*)[\'|"]\)', deploy_file.decode("utf-8"))
files_to_upload = [path.abspath(path.join(path.abspath(path.join(file_path, "..")), name)) for name in file_names]


## POST of multiple multipart-encoded binary files

Based on Python [requests]( module, see [docs](

## Generate Deployfile script.

deployfile = client.deployfile

Installing from the PyPi repository

$ pip install xldeploy-py

Installing package directly from source

$ cd xldeploy-py
$ pip install --editable .

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.18
Filename, size File type Python version Upload date Hashes
Filename, size xldeploy-py-0.0.18.tar.gz (10.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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