The instrospection_old module

A tool for reading instrument code files and extracting their structure.

Classes

Module

class src.tools.instrospection_old.Module(path)[source]

Methods

loadFile(join=False)[source]

Read the module file and return the full text.

processModule(lines)[source]

Scan through the module, creating objects for the elements.

ModuleDocstring

class src.tools.instrospection_old.ModuleDocstring(text)[source]

Methods

ModuleImport

class src.tools.instrospection_old.ModuleImport(text)[source]

Methods

ModuleConstant

class src.tools.instrospection_old.ModuleConstant(name, value)[source]

Methods

Comment

class src.tools.instrospection_old.Comment(text)[source]

Methods

Class

class src.tools.instrospection_old.Class(name, bases, lines)[source]

Methods

Instrument

class src.tools.instrospection_old.Instrument(name, lines)[source]

Methods

Method

class src.tools.instrospection_old.Method(name, args, lines, decorator)[source]

Methods

Action

class src.tools.instrospection_old.Action(action_type, text)[source]

Methods

loadContents(text)[source]

Convert the text from the module into a dictionary of arguments.

parseParameters(text)[source]

Take a list of strings and parse it into a list of parameters.

Parameter

class src.tools.instrospection_old.Parameter(text)[source]

Methods

Functions

src.tools.instrospection_old.splitLine(line)[source]

Split a line of text into a LineTuple.

src.tools.instrospection_old.clean(text, something='')[source]

Find the minimum indentation level in chunk of text, and subtract that indentation from every line.

src.tools.instrospection_old.tokenize(text)[source]

Break a line of text into tokens by comma, ignoring the comma if it appears in a string (that is, the text itself contains quotation marks).

src.tools.instrospection_old.glob(lines, level)[source]

Break a list into sublists. A new element is started whenever the indentation of the first line of the input list’s indentation is less than or equal to the first line of the previous.

src.tools.instrospection_old.applyIndent(text, indent)[source]

Take a multi-line string or list and apply indent to each line.

Table Of Contents

Previous topic

The tools package

Next topic

The htmlhelper module

This Page