Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)
implement a REST client on top of urllib2 

src/p/y/pyogp.lib.client-0.1/pyogp/lib/client/agentdomain.py   pyogp.lib.client(Download)
 
# pyogp
from pyogp.lib.base.network.stdlib_client import StdLibClient, HTTPError
from pyogp.lib.base.caps import SeedCapability
import pyogp.lib.client.exc
    def __init__(self, uri, restclient = None):
        """ initialize the agent domain endpoint """
 
        if restclient == None: 
            self.restclient = StdLibClient() 

src/p/y/pyogp.lib.client-0.1/pyogp/lib/client/region.py   pyogp.lib.client(Download)
# pyogp
from pyogp.lib.base.caps import Capability
from pyogp.lib.base.network.stdlib_client import StdLibClient, HTTPError
from pyogp.lib.client.exc import ResourceNotFound, ResourceError, RegionSeedCapNotAvailable, \
     RegionMessageError
 
        try:
            restclient = StdLibClient()
            response = restclient.GET(self.region_uri, custom_headers)
        except HTTPError, e:

src/p/y/pyogp.lib.base-0.1/pyogp/lib/base/caps.py   pyogp.lib.base(Download)
 
# pyogp
from pyogp.lib.base.network.stdlib_client import StdLibClient, HTTPError
from pyogp.lib.base.exc import ResourceNotFound, ResourceError, DeserializerNotFound
from pyogp.lib.base.settings import Settings
 
        if restclient == None: 
            self.restclient = StdLibClient() 
        else:
            self.restclient = restclient 

src/p/y/pyogp.apps-0.1dev/pyogp/apps/proxy/lib/caps_proxy.py   pyogp.apps(Download)
        # we may in the future use something other than urllib2 (StdLibClient)
        if restclient == None:
            from pyogp.lib.base.network.stdlib_client import StdLibClient
            self.restclient = StdLibClient() 
        else:

src/p/y/pyogp.lib.client-0.1/pyogp/lib/client/login.py   pyogp.lib.client(Download)
from pyogp.lib.base.tests.mock_xmlrpc import MockXMLRPC
from pyogp.lib.base.tests.base import MockXMLRPCLogin
from pyogp.lib.base.network.stdlib_client import StdLibClient
 
# initialize globals
            if handler == None and self.handler == None:
 
                self.handler = StdLibClient()
            else: