pypath.share.curl.dryrun_off§

class pypath.share.curl.dryrun_off[source]§

Bases: _global_context_off

This is a context handler which results pypath.curl.Curl() to perform download or cache read. This is the default behaviour, so applying this context restores the default.

Behind the scenes it sets the value of the pypath.curl.DRYRUN module level variable to False.

Example:

import pypath
from pypath import curl, data_formats

pa = pypath.PyPath()

with curl.cache_dryrun_off():
    pa.load_resources({'signor': data_formats.pathway['signor']})
__init__()[source]§
Parameters:

name (str) – Name of the module level variable.

Methods

__init__()

param str name:

Name of the module level variable.