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.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dacite_ignore_case-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file dacite_ignore_case-1.0.1.tar.gz.

File metadata

  • Download URL: dacite_ignore_case-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for dacite_ignore_case-1.0.1.tar.gz
Algorithm Hash digest
SHA256 95e396abaa2e0270fe954cd52a6469ba180e5aa3e574999b60e0b0c89b4363bf
MD5 c1182a2e0936d2c75b0edff3c009b1ce
BLAKE2b-256 5dc66e3c04c722d892683926ecf8770633e3e55255b5bb6aa96dc1357c5f07eb

See more details on using hashes here.

File details

Details for the file dacite_ignore_case-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: dacite_ignore_case-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for dacite_ignore_case-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1df426a217d774060660a6dd9ce76de16e9e9fd5a9ed3d32af0429a03d16bad
MD5 6ae24737c60d25880d87fc0542548b90
BLAKE2b-256 bdf49d75007adad5de741993cacaadfdbb3e3eea9170a849a12e82efd7de9883

See more details on using hashes here.

Supported by

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