The instrospection module

A tool for parsing instrument modules.

Classes

Module

class src.tools.instrospection.Module(filename)[source]

The class containing the entire contents of the module.

Docstring

class src.tools.instrospection.Docstring(text)[source]

A class to contain docstrings.

Parameters :

text : str

The text for the docstring.

Methods

toCode()[source]

Return the text of the docstring.

Returns :

str :

The new docstring.

Imports

class src.tools.instrospection.Imports(text)[source]

The collection of imports.

Methods

Import

class src.tools.instrospection.Import(information)[source]

A single import command.

Methods

Constants

class src.tools.instrospection.Constants[source]

The constants defined in the module.

Instrument

class src.tools.instrospection.Instrument[source]

An instrument class

Function

class src.tools.instrospection.Function[source]

A module-level function.

Functions

src.tools.instrospection.compare(stringA, stringB)[source]

Compare two import strings for sorting.

Parameters :

stringA : str

The first import string.

stringB : str

The import string to compare with the first.

Returns :

int :

An integer representing how the first import string compares to the second. If the first is smaller, the returned value is -1. If the two are the same, 0 is returned. Otherwise, +1 is returned.

Table Of Contents

Previous topic

The commandline module

Next topic

The path_tools module

This Page