Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

xenvman client for Python

Project description

Python client for xenvman

This is a Python client library for xenvman.


Installing is a simple as running:

pip install xenvman


The very first thing to do is to create a client:

import xenvman

cl = xenvman.Client()

if address argument is not provided, the default http://localhost:9876 will be used. Also if shell environment variable XENV_API_SERVER is set, it will be used instead.

Once you have a client, you can create environment:

env = cl.new_env(xenvman.InputEnv(
    description="Python test!",

And that's it! Once new_env() returns, you have an environment which you can start using in your integration tests.

cont = env.get_container("db/mongo", 0, "mongo")

# Get the full mongo url with exposed port
mongo_url = "{}:{}".format(env.external_address(), cont.ports["27017"])

Don't forget to terminate your env after you're done:


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 xenvman, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size xenvman-0.0.1-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size xenvman-0.0.1.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page