StorageFormatManager

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.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.StorageFormatManager.StorageFormatManager" [URL="../api/abjad/system/StorageFormatManager.html#abjad.system.StorageFormatManager.StorageFormatManager", color=black, fontcolor=white, label="Storage\nFormat\nManager", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.system.StorageFormatManager.StorageFormatManager"; } 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.StorageFormatManager.StorageFormatManager(client=None)

Manages Abjad object storage formats.


Attributes Summary

client
format_specification
get_class_name_prefix
get_hash_values
get_import_statements Gets import statements.
get_repr_format
get_repr_keyword_dict
get_repr_positional_values
get_root_package_name
get_storage_format
get_storage_format_keyword_dict
get_storage_format_positional_values
get_template_dict
get_tools_package_name
inspect_signature
signature_accepts_args
signature_accepts_kwargs
signature_keyword_names
signature_names
signature_positional_names

Special methods

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

(AbjadValueObject).__eq__(argument)

Is true when all initialization values of Abjad value object equal the initialization values of argument.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

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

Returns string.

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Methods

get_class_name_prefix(as_storage_format, include_root_package=None)
get_hash_values()
get_import_statements()

Gets import statements.

>>> flute = abjad.Flute()
>>> abjad.f(flute)
abjad.Flute(
    name='flute',
    short_name='fl.',
    markup=abjad.Markup(
        contents=['Flute'],
        ),
    short_markup=abjad.Markup(
        contents=['Fl.'],
        ),
    allowable_clefs=('treble',),
    context='Staff',
    middle_c_sounding_pitch=abjad.NamedPitch("c'"),
    pitch_range=abjad.PitchRange('[C4, D7]'),
    primary=True,
    )
>>> agent = abjad.StorageFormatManager(flute)
>>> for line in agent.get_import_statements():
...     line
...
'from abjad import instruments'
'from abjad import markups'
'from abjad import pitch'

Returns tuple of strings.

get_repr_format()
get_repr_keyword_dict()
get_repr_positional_values()
get_root_package_name()
get_storage_format()
get_storage_format_keyword_dict()
get_storage_format_positional_values()
get_template_dict()
get_tools_package_name()

Class & static methods

classmethod inspect_signature(subject)

Read-only properties

client
format_specification
signature_accepts_args
signature_accepts_kwargs
signature_keyword_names
signature_names
signature_positional_names