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 characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import json | |
import threading | |
import time | |
import sys | |
import pyrax | |
pyrax.keyring_auth() | |
cs = pyrax.cloudservers |
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 characters
import pyrax | |
pyrax.keyring_auth() | |
cf_ord = pyrax.connect_to_cloudfiles("ORD") | |
cf_dfw = pyrax.connect_to_cloudfiles("DFW") | |
my_ord_cont = cf_ord.create_container("test") | |
my_dfw_cont = cf_dfw.create_container("test") |
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 characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import eventlet | |
from eventlet.green import urllib2 | |
import time | |
url = "http://daboserver.com/eventlet/%s" | |
def getit(seq): | |
print "requesting", seq |
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 characters
(green)ed@MGM6AEDV7M:~/projects/green$ pw green_test.py | |
Spawning #0 at Fri Feb 1 13:46:56 2013 | |
Spawning #1 at Fri Feb 1 13:46:56 2013 | |
Spawning #2 at Fri Feb 1 13:46:56 2013 | |
Spawning #3 at Fri Feb 1 13:46:56 2013 | |
Spawning #4 at Fri Feb 1 13:46:56 2013 | |
Spawning #5 at Fri Feb 1 13:46:56 2013 | |
Spawning #6 at Fri Feb 1 13:46:56 2013 | |
Spawning #7 at Fri Feb 1 13:46:56 2013 | |
Spawning #8 at Fri Feb 1 13:46:56 2013 |
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 characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import eventlet | |
import requests | |
import time | |
url = "http://daboserver.com/eventlet" | |
def getit(seq): | |
req = requests.request("GET", url) |
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 characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import datetime | |
import os | |
import pyrax | |
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials") | |
pyrax.set_credential_file(creds_file) | |
clb = pyrax.cloud_loadbalancers |
NewerOlder