Parsing mixin which converts data class instance, dict object, json string and yaml string each other.
MIT License
Bot releases are hidden (Show)
Published by tadashi-aikawa over 7 years ago
Published by tadashi-aikawa over 7 years ago
from_optional_xxx
methods don't returns value as expectedPublished by tadashi-aikawa over 7 years ago
ex.
from owlmixin.owlenum import OwlEnum
class Color(OwlEnum):
RED = "red"
GREEN = "green"
BLUE = "blue"
Published by tadashi-aikawa over 7 years ago
flat_map
Published by tadashi-aikawa over 7 years ago
intersection
and not_intersection
flatten
and flat_map
Published by tadashi-aikawa over 7 years ago
force_snake=False
--hogeHoge
=> hoge_hoge
-h
=> h
<hogeHoge>
=> hoge_hoge
Published by tadashi-aikawa over 7 years ago
API documentation is more readble.
Because of breaking changes, You need that ...
owlmixin.owlcollections
instead of importing from owlmixin
if you want to import TList or TDict_dict
instead of overriding function _to_dict()
if you needPublished by tadashi-aikawa over 7 years ago
Published by tadashi-aikawa over 7 years ago
⚠️ If you already import a following file, please rename.
Published by tadashi-aikawa over 7 years ago
all
, any
Published by tadashi-aikawa over 7 years ago
sum
, sum_by
concat
, and override a plus operator
TList(...) + TList(...)
is not return list but TList