Base

Base class

Base class for all classes in the package. It provides rich printing and persistence of objects.

class edsl.Base.Base

Bases: RichPrintingMixin, PersistenceMixin, ABC

Base class for all classes in the package.

abstract code()

This method should be implemented by subclasses.

abstract example()

This method should be implemented by subclasses.

abstract from_dict()

This method should be implemented by subclasses.

abstract rich_print()

This method should be implemented by subclasses.

show_methods(show_docstrings=True)

Show the methods of the object.

abstract to_dict()

This method should be implemented by subclasses.

class edsl.Base.PersistenceMixin

Bases: object

Mixin for saving and loading objects to and from files.

classmethod load(filename)

Load the object from a file.

post()

Post the object to a pastebin.

save(filename)

Save the object to a file.

class edsl.Base.RegisterSubclassesMeta(name, bases, namespace, /, **kwargs)

Bases: ABCMeta

Metaclass for registering subclasses.

static get_registry()

Return the registry of subclasses.

class edsl.Base.RichPrintingMixin

Bases: object

Mixin for rich printing and persistence of objects.

for_console()

Return a string representation of the object for console printing.

print()

Print the object to the console.