ImportManager

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=1]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.ImportManager.ImportManager" [URL="../api/abjad/system/ImportManager.html#abjad.system.ImportManager.ImportManager", color=black, fontcolor=white, label="Import\nManager", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.ImportManager.ImportManager"; } subgraph cluster_builtins { graph [label=builtins]; node [color=2]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.system.ImportManager.ImportManager

Imports structured packages.


Attributes Summary

import_material_packages Imports public materials from path into namespace.
import_nominative_modules Imports nominative modules from path into namespace.
import_public_names_from_path_into_namespace Inspects the top level of path; does not inspect lower levels of path.
import_structured_package Imports public names from path into namespace.

Special methods

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Class & static methods

static import_material_packages(path, namespace)

Imports public materials from path into namespace.

This is the custom function that all AbjadIDE-managed scores may use to import public materials on startup.

static import_nominative_modules(path, namespace)

Imports nominative modules from path into namespace.

static import_public_names_from_path_into_namespace(path, namespace, delete_system=True, ignored_names=None)

Inspects the top level of path; does not inspect lower levels of path.

Finds .py modules in path; imports public functions from .py modules into namespace; imports eponymous datum from .py modules into namespace.

Find packages in path; imports package names into namespace; does not import package content into namespace.

static import_structured_package(path, namespace, delete_system=True, ignored_names=None)

Imports public names from path into namespace.

This is the custom function that all Abjad packages use to import public classes and functions on startup.

The function will work for any package laid out like Abjad packages.