Skip to content

Initialize dataclasses from dictionaries (based on dacite) but with case ignorance.

Notifications You must be signed in to change notification settings

zkdev/dacite-ignore-case

Repository files navigation

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

About

Initialize dataclasses from dictionaries (based on dacite) but with case ignorance.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages