pypath.share.curl.debug_on§

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

Bases: _global_context_on

This is a context handler which results pypath.curl.Curl() to print debug information. This is useful if you have some issue with Curl, and you want to see what`s going on.

Behind the scenes it sets the value of the pypath.curl.DEBUG module level variable to True (by default it is False).

Example:

import pypath
from pypath import curl, data_formats

pa = pypath.PyPath()

with curl.cache_debug_on():
    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.