abacusai.api_class.abstract
Module Contents
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Functions
|
|
|
|
|
Attributes
- abacusai.api_class.abstract.FIRST_CAP_RE
- abacusai.api_class.abstract.ALL_CAP_RE
- abacusai.api_class.abstract.camel_case(value)
- abacusai.api_class.abstract.upper_snake_case(value)
- abacusai.api_class.abstract.snake_case(value)
- class abacusai.api_class.abstract.ApiClass
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- __post_init__()
- classmethod _get_builder()
- __str__()
Return str(self).
- _repr_html_()
- to_dict()
Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.