Util Cli Cmds

class dffml.util.cli.cmds.KeysCMDConfig(keys: List[str])[source]
no_enforce_immutable()

By default, all properties of a config object are immutable. If you would like to mutate immutable properties, you must explicitly call this method using it as a context manager.

Examples

>>> from dffml import config
>>>
>>> @config
... class MyConfig:
...     C: int
>>>
>>> config = MyConfig(C=2)
>>> with config.no_enforce_immutable():
...     config.C = 1
class dffml.util.cli.cmds.ListEntrypoint(extra_config=None, **kwargs)[source]

Subclass this with an Entrypoint to display all registered classes.

display(cls)[source]

Print out the loaded but uninstantiated class

async run()[source]

Display all classes registered with the entrypoint

class dffml.util.cli.cmds.ModelCMD(*args, **kwargs)[source]

Set a models model dir.

CONFIG

alias of ModelCMDConfig

class dffml.util.cli.cmds.ModelCMDConfig(model: dffml.model.model.Model)[source]
no_enforce_immutable()

By default, all properties of a config object are immutable. If you would like to mutate immutable properties, you must explicitly call this method using it as a context manager.

Examples

>>> from dffml import config
>>>
>>> @config
... class MyConfig:
...     C: int
>>>
>>> config = MyConfig(C=2)
>>> with config.no_enforce_immutable():
...     config.C = 1
class dffml.util.cli.cmds.PortCMDConfig(port: dffml.port.port.Port)[source]
no_enforce_immutable()

By default, all properties of a config object are immutable. If you would like to mutate immutable properties, you must explicitly call this method using it as a context manager.

Examples

>>> from dffml import config
>>>
>>> @config
... class MyConfig:
...     C: int
>>>
>>> config = MyConfig(C=2)
>>> with config.no_enforce_immutable():
...     config.C = 1
class dffml.util.cli.cmds.SourcesCMDConfig(sources: dffml.source.source.Sources = <factory>)[source]
no_enforce_immutable()

By default, all properties of a config object are immutable. If you would like to mutate immutable properties, you must explicitly call this method using it as a context manager.

Examples

>>> from dffml import config
>>>
>>> @config
... class MyConfig:
...     C: int
>>>
>>> config = MyConfig(C=2)
>>> with config.no_enforce_immutable():
...     config.C = 1