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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1df426a217d774060660a6dd9ce76de16e9e9fd5a9ed3d32af0429a03d16bad |
|
MD5 | 6ae24737c60d25880d87fc0542548b90 |
|
BLAKE2b-256 | bdf49d75007adad5de741993cacaadfdbb3e3eea9170a849a12e82efd7de9883 |