Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::EUtils::ThinClient::ThinClient::__init__ (   self,
  opener = None,
  tool = TOOL,
  email = EMAIL,
  baseurl = "http://www.ncbi.nlm.nih.gov/entrez/eutils/" 
)

opener = None, tool = TOOL, email = EMAIL, baseurl = ".../eutils/"

'opener' -- an object which implements the 'open' method like a
     urllib2.OpenDirector.  Defaults to urllib2.build_opener()

'tool' -- the term to use for the 'tool' field, used by NCBI to
     track which programs use their services.  If you write your
     own tool based on this package, use your own tool name.

'email' -- a way for NCBI to contact you (the developer, not
     the user!) if there are problems and to tell you about
     updates or changes to their system.

'baseurl' -- location of NCBI's EUtils directory.  Shouldn't need
     to change this at all.

Definition at line 572 of file ThinClient.py.

                                ://www.ncbi.nlm.nih.gov/entrez/eutils/"):
        """opener = None, tool = TOOL, email = EMAIL, baseurl = ".../eutils/"

        'opener' -- an object which implements the 'open' method like a
             urllib2.OpenDirector.  Defaults to urllib2.build_opener()

        'tool' -- the term to use for the 'tool' field, used by NCBI to
             track which programs use their services.  If you write your
             own tool based on this package, use your own tool name.

        'email' -- a way for NCBI to contact you (the developer, not
             the user!) if there are problems and to tell you about
             updates or changes to their system.

        'baseurl' -- location of NCBI's EUtils directory.  Shouldn't need
             to change this at all.
        """
        
        if tool is not None and " " in tool:
            raise TypeError("No spaces allowed in 'tool'")
        if email is not None and " " in email:
            raise TypeError("No spaces allowed in 'email'")

        if opener is None:
            opener = urllib2.build_opener()

        self.opener = opener
        self.tool = tool
        self.email = email
        self.baseurl = baseurl


Generated by  Doxygen 1.6.0   Back to index