original_docstring: Download the given version of DrugBank and open it up with :mod:`zipfile`.
docstring: Download the given version of DrugBank and open it up with :mod:`zipfile`.
docstring_tokens: Download the given version of DrugBank and open it up with : mod : ` zipfile ` .
code: def open_drugbank(
      username: Optional[str] = None,
      password: Optional[str] = None,
      version: Optional[str] = None,
      prefix: Optional[Sequence[str]] = None,
  ):
      """Download the given version of DrugBank and open it up with :mod:`zipfile`."""
      path = download_drugbank(version=version, username=username, password=password, prefix=prefix)
      with zipfile.ZipFile(path) as zip_file:
          with zip_file.open('full database.xml') as file:
              yield file
code_tokens: def open_drugbank ( username : Optional [ str ] = None , password : Optional [ str ] = None , version : Optional [ str ] = None , prefix : Optional [ Sequence [ str ] ] = None , ) : path = download_drugbank ( version = version , username = username , password = password , prefix = prefix ) with zipfile . ZipFile ( path ) as zip_file : with zip_file . open ( 'full database.xml' ) as file : yield file
short_docstring: Download the given version of DrugBank and open it up with :mod:`zipfile`.
short_docstring_tokens: Download the given version of DrugBank and open it up with : mod : ` zipfile ` .
comment: """Download the given version of DrugBank and open it up with :mod:`zipfile`."""