Skip to content

Instantly share code, notes, and snippets.

View wTheRockb's full-sized avatar

Woody Butler wTheRockb

View GitHub Profile
@wTheRockb
wTheRockb / json_namedtuple.py
Created February 3, 2020 19:33 — forked from Daenyth/json_namedtuple.py
Parse json via python NamedTuple
import hashlib
import json
from decimal import Decimal
from typing import Any, Dict, Type
from typing_inspect import get_args, get_generic_bases, is_generic_type, is_union_type # type: ignore
Json = Dict[str, Any]