Extends dacite.from_dict with a ignore case function
Project description
dacite-ignore-case
Initialize dataclasses from dictionaries (based on dacite) but with case ignorance.
Usage
import dacite_ignore_case
from dataclasses import dataclass
@dataclass
class MyClass:
myKey: str
data = {'mykey': 'value'}
c = dacite_ignore_case.from_dict(MyClass, data)
Installation
pip3 install dacite_ignore_case
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dacite_ignore_case-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a11067b8c42fb1a8aae0120f107b394bd7013e5e719aa62dcc067a49d5436ce |
|
MD5 | f6353d238ed417133880e18d8d09e57f |
|
BLAKE2b-256 | 997f4258fdf2fcbf72cbf62f8af80f309ac1c80f9118fb8b180ed1ed069e479c |