Module pyfreedb.base

Classes

class Codec

Codec defines the algorithm to encode and decode data before it's stored and retrieved from Google Sheets.

Expand source code
class Codec(abc.ABC):
    """Codec defines the algorithm to encode and decode data before it's stored and retrieved from Google Sheets."""

    def encode(self, _: bytes) -> str:
        pass

    def decode(self, _: str) -> bytes:
        pass

Ancestors

  • abc.ABC

Subclasses

Methods

def decode(self, _: str) ‑> bytes
def encode(self, _: bytes) ‑> str
class InvalidOperationError (*args, **kwargs)

Operation is not supported.

Expand source code
class InvalidOperationError(Exception):
    """Operation is not supported."""

Ancestors

  • builtins.Exception
  • builtins.BaseException