seq  1.1.0
 All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
seqlib.ob.ModuleLoader Class Reference

Loads a python module. More...

Public Member Functions

def __attrs_post_init__
 
def load_file
 Load a module from file. More...
 
def load_module
 Loads a python module. More...
 
def reload
 
def __attrs_post_init__
 
def load_file
 Load a module from file. More...
 
def load_module
 Loads a python module. More...
 
def reload
 

Static Public Member Functions

def from_path
 Load module from file path. More...
 
def from_mod
 Loads a module from dotted module spec. More...
 
def from_path
 Load module from file path. More...
 
def from_mod
 Loads a module from dotted module spec. More...
 

Public Attributes

 mod_name
 
 module
 

Static Public Attributes

tuple file_path = attr.ib(default=None, kw_only=True)
 
tuple mod_name = attr.ib(default=None, kw_only=True)
 
tuple module = attr.ib(init=False)
 

Detailed Description

Loads a python module.

file_path (str): mod_name (str):

Member Function Documentation

def seqlib.ob.ModuleLoader.__attrs_post_init__ (   self)
def seqlib.ob.ModuleLoader.__attrs_post_init__ (   self)
def seqlib.ob.ModuleLoader.from_mod (   m)
static

Loads a module from dotted module spec.

def seqlib.ob.ModuleLoader.from_mod (   m)
static

Loads a module from dotted module spec.

def seqlib.ob.ModuleLoader.from_path (   fn)
static

Load module from file path.

Loads a python module given its file path (e.g. /a/b/c/x.py). If the module is found in sys.path then the equivalen to::

import a.b.c.x

    is executed and the module is properly added to sys.modules.
    Othewise the module is imported and 'x' is added to sys.modules.
def seqlib.ob.ModuleLoader.from_path (   fn)
static

Load module from file path.

Loads a python module given its file path (e.g. /a/b/c/x.py). If the module is found in sys.path then the equivalen to::

import a.b.c.x

    is executed and the module is properly added to sys.modules.
    Othewise the module is imported and 'x' is added to sys.modules.
def seqlib.ob.ModuleLoader.load_file (   self)

Load a module from file.

def seqlib.ob.ModuleLoader.load_file (   self)

Load a module from file.

def seqlib.ob.ModuleLoader.load_module (   self)

Loads a python module.

def seqlib.ob.ModuleLoader.load_module (   self)

Loads a python module.

def seqlib.ob.ModuleLoader.reload (   self)
def seqlib.ob.ModuleLoader.reload (   self)

Member Data Documentation

tuple seqlib.ob.ModuleLoader.file_path = attr.ib(default=None, kw_only=True)
static
tuple seqlib.ob.ModuleLoader.mod_name = attr.ib(default=None, kw_only=True)
static
seqlib.ob.ModuleLoader.mod_name
tuple seqlib.ob.ModuleLoader.module = attr.ib(init=False)
static
seqlib.ob.ModuleLoader.module

The documentation for this class was generated from the following files: