Created
April 22, 2014 18:16
-
-
Save hatchetation/11189097 to your computer and use it in GitHub Desktop.
Revisions
-
hatchetation created this gist
Apr 22, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #!/usr/bin/env python from os import environ from IPython import embed import pyrax if environ['OS_PASSWORD'] and environ['OS_USERNAME']: pyrax.set_environment(environ['OS_USERNAME']) pyrax.set_credentials(environ['OS_USERNAME'], environ['OS_PASSWORD']) cs = pyrax.cloudservers servers = cs.list() if __name__ == '__main__': print "Pyrax client is available in `cs`, servers in `servers`." embed()