Module libnova.common.api.Serializable

Expand source code
#!/usr/bin/env python
# coding: utf-8


class Serializable:
    """This class provides basic serialization from `dict` to `object`

    Args:
        entries (dict): Usually, a json response as `dict` to be serialized to a specific class instance
    """

    def __init__(self, **entries: dict):
        self.__dict__.update(entries)


if __name__ == "__main__":
    print('This file cannot be executed directly!')

Classes

class Serializable (**entries: dict)

This class provides basic serialization from dict to object

Args

entries : dict
Usually, a json response as dict to be serialized to a specific class instance
Expand source code
class Serializable:
    """This class provides basic serialization from `dict` to `object`

    Args:
        entries (dict): Usually, a json response as `dict` to be serialized to a specific class instance
    """

    def __init__(self, **entries: dict):
        self.__dict__.update(entries)

Subclasses