class Log

source code

__init__

source code

def __init__(
        self,
        *,
        id: int = None,
        timestamp: Optional[datetime] = None,
        project: Optional[str] = None,
        api_key: Optional[str] = None,
        params: Dict[str, Any] = None,
        **entries,
    ):

properties


entries

source code

def entries(self) -> Dict[str, Any]:

id

source code

def id(self) -> int:

params

source code

def params(self) -> Dict[str, Any]:

timestamp

source code

def timestamp(self) -> Optional[datetime]:

methods


add_entries

source code

def add_entries(self, **entries) -> None:

delete

source code

def delete(self) -> None:

delete_entries

source code

def delete_entries(
        self,
        keys_to_delete: List[str],
    ) -> None:

download

source code

def download(self):

from_json

source code

def from_json(state):

rename_entries

source code

def rename_entries(self, **entries) -> None:

replace_entries

source code

def replace_entries(self, **entries) -> None:

to_json

source code

def to_json(self):

update_entries

source code

def update_entries(self, fn, **entries) -> None:

dunder_methods


__enter__

source code

def __enter__(self):

__eq__

source code

def __eq__(self, other: Union[dict, Log]) -> bool:

__exit__

source code

def __exit__(self, exc_type, exc_val, exc_tb):

__len__

source code

def __len__(self):

__repr__

source code

def __repr__(self) -> str: