cf.Bounds.creation_commands

Bounds.creation_commands(representative_data=False, namespace='cf', indent=0, string=True, name='c', data_name='d')[source]

Return the commands that would create the construct.

New in version 3.2.0.

Parameters
representative_data: bool, optional

Return one-line representations of Data instances, which are not executable code but prevent the data being converted in its entirety to a string representation.

namespace: str, optional

The namespace containing classes of the cf package. This is prefixed to the class name in commands that instantiate instances of cf objects. By default, namespace is 'cf', i.e. it is assumed that cf was imported as import cf.

Parameter example:

If cf was imported as import cf as cfp then set namespace='cfp'

Parameter example:

If cf was imported as from cf import * then set namespace=''

indent: int, optional

Indent each line by this many spaces. By default no indentation is applied. Ignored if string is False.

string: bool, optional

If False then return each command as an element of a list. By default the commands are concatenated into a string, with a new line inserted between each command.

Returns
str or list

The commands in a string, with a new line inserted between each command. If string is False then the separate commands are returned as each element of a list.

Examples:

TODO