Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dacite_ignore_case-1.0.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

dacite_ignore_case-1.0.0-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page