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,ABCBase 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:
objectMixin 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.