Key | Value |
---|---|
FileSize | 18120 |
MD5 | CBE5038AAB36813A46AE13E10D314C5D |
PackageDescription | Simple creation of data classes from dictionaries Passing plain dictionaries as a data container between your functions or methods isn't a good practice. Of course you can always create your custom class instead, but this solution is an overkill if you only want to merge a few fields within a single object. . Fortunately Python has a good solution to this problem - data classes. Thanks to `@dataclass` decorator you can easily create a new custom type with a list of given fields in a declarative manner. Data classes support type hints by design. . However, even if you are using data classes, you have to create their instances somehow. In many such cases, your input is a dictionary - it can be a payload from a HTTP request or a raw data from a database. If you want to convert those dictionaries into data classes, `dacite` is your best friend. . This library was originally created to simplify creation of type hinted data transfer objects (DTO) which can cross the boundaries in the application architecture. . It's important to mention that `dacite` is not a data validation library. There are dozens of awesome data validation projects and it doesn't make sense to duplicate this functionality within `dacite`. If you want to validate your data first, you should combine `dacite` with one of data validation library. |
PackageMaintainer | Debian Python Team <team+python@tracker.debian.org> |
PackageName | python3-dacite |
PackageSection | python |
PackageVersion | 1.6.0-2 |
SHA-1 | E0C655470839C7501F769E9724F8A0B6852ACA1B |
SHA-256 | 46BA7E7417B95AE7AFDAA60FD155E4B53439EECABF17EA82A600E3079E2BE1DB |
hashlookup:children-total | 16 |
hashlookup:trust | 50 |
The searched file hash includes 16 children files known and seen by metalookup. A sample is included below:
Key | Value |
---|---|
FileName | ./usr/lib/python3/dist-packages/dacite-1.6.0.egg-info/PKG-INFO |
FileSize | 13846 |
MD5 | 9AF4C7FCBCEA646322C07BAFDBD1B1BE |
SHA-1 | 2E86206D5C680EC0CC7F916964CCF80ACD81909F |
SHA-256 | 67C68D9ADB1A7E9E740E637C4E62570ED1CC15AAD3E9764AF8DCA167C35BE383 |
SSDEEP | 384:BM3C1yAKTrQ+Q1FKEex5xIL6YTPnaJPA0+Cs:BEC1yAKTE71kNv4PnN0+1 |
TLSH | T13B52D8A7B4B026600A4314FA53AAD266BE63F05AC7491C29F4FCC1781F1A539B37A75C |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/copyright |
FileSize | 1421 |
MD5 | F2D53A2B0D1B2C5D46835FE2203BA709 |
SHA-1 | 32A4DD42580952D00FD3D72602BE686C48B24FFA |
SHA-256 | 5D8A46A417C3ABBA8B7D451A815281BB27FA792F7898AF1151CE52E0935C07F6 |
SSDEEP | 24:gttcgUVFXsruPJH/H0ymS3gt8xLHc1hMK9QH0sUv4kOk4/+/U3oq4sFig:fgUVF80Jvlm6Er5QH0s5ANU3oWFig |
TLSH | T15221E91B738007551A8A23D06A79ACD4B737714DF45F9EC4942DE3045B19479D4FB424 |
Key | Value |
---|---|
FileName | snap-hashlookup-import/connectedhomeip/python_env/lib/python3.10/site-packages/dacite/core.py |
FileSize | 5523 |
MD5 | 01C64978021178F6B323DE7C01CD976B |
SHA-1 | 36BCC9711A8AEECAABE947CE94C16F1000B8D4D1 |
SHA-256 | EAD48A2C578F25DA0337CE8830BFC9AA9594CFC571C3D61F44E01B8DD17EFBBF |
SHA-512 | C071D8420D77F9F156AAB5A44DF9EE26E1BAE3CD7EAB958369E72400D4D095400241681D585FAA8531CC19D1FE6A21C71939378B67EA88A0A031D788F6DA06D7 |
SSDEEP | 96:r0m9+d4ZVOj412jg5MDQEF+lC25TDZXUP5UiCiO8ydfN4:4m9+d4+8ilDQy+lC25nmPuLW |
TLSH | T1F5B1DF237996B82341879C84CC97C1112A12FF57EA0158B4F9FC69791F79D3AE2BB309 |
insert-timestamp | 1678271242.6402502 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_1 |
Key | Value |
---|---|
FileName | snap-hashlookup-import/connectedhomeip/python_env/lib/python3.10/site-packages/dacite/__init__.py |
FileSize | 99 |
MD5 | 6217E5D40E93825BB78F14C0C378AC57 |
SHA-1 | 4471CFABBF18E74F3CD227C7106EB798BBD18B5E |
SHA-256 | A36460D6310AE40F0727B8F0B1D1DED25932BDE4877DC22AF3FE2898FE97BF94 |
SHA-512 | 94A6B1A3F208BA797B1B44F3FEDC79F8DAE18CD984157B350FCAB00AC56E1945AE544A881035A3236116F4BDC77E8AF7E66C113BEFC20951C43F8C2F2751D8C1 |
SSDEEP | 3:1BUXLbIVKB7LDvD7UXHQsBMGRv+I7URmQPXBln:1BUAgB7LDvD7UXQOU/Bln |
TLSH | T12FB0128306932413407B95D0803940780F73D310DF008011C0B473314FCC4FC0C0D439 |
insert-timestamp | 1678271242.6607323 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_1 |
Key | Value |
---|---|
FileName | snap-hashlookup-import/connectedhomeip/python_env/lib/python3.10/site-packages/dacite/exceptions.py |
FileSize | 2587 |
MD5 | B11A38D06322A89241EFCCDBDEFEDD49 |
SHA-1 | 4EE4D1EC2ED160358EF3968DEC4BE121E0163119 |
SHA-256 | A7CEE2271E8E1FFB22C12F9B50B69DA9679BD56ED580BA82B690DABD5E12765D |
SHA-512 | 214283B573FF2D29F708F32D0322A4C9058C5FDFFD886FB8802F5C1E2EDAC1D93FCA9ECD83FE108C2ECF3A4B8C15F204BE44C5072FD26973F85F0805F4303844 |
SSDEEP | 24:1REkn7s8Sa1AY136/k5b0MAcgqfzqJY/N5f4Sp1AYDMKyIQapnpfh0A/IRZdVIgm:b7spa1fS075rqcfYzk709m5liEltk5hW |
TLSH | T1A151A60026D2E4078507CA574A65C623232FA9E3CF0A58B0FABC31761B27C7680B9FD9 |
insert-timestamp | 1678271242.6441734 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_1 |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/changelog.Debian.gz |
FileSize | 680 |
MD5 | 5C13C20BBA5EEB6C93EF79743295FB24 |
SHA-1 | 54C71281D8E0917A29261B1EA8058AEADB2B94CB |
SHA-256 | 092B07794F2ED623B4F724921CDFDFA05453E3B2C95522199290C6B41C1D5153 |
SSDEEP | 12:XiMBK6dO/U9ur/W9uk2f7UB9Ejfc7r0LyjPqmr:XG3/U98W9ukQUBKw7r0LgPqU |
TLSH | T1AF012851BDD516D1A1420C3E0B6B94C47BF45D64F6D08088997F5F905F575198F205D0 |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/README.md.gz |
FileSize | 4802 |
MD5 | E6E741B400710AE08195A48F8439DE38 |
SHA-1 | 6BECFCF50E5CED7A15F532AF225D0D520D8FF6C7 |
SHA-256 | 90F11561DF7A6C1D0DEC44790DAC0F6039C0933CA805AF0AB35CE92CABE799A2 |
SSDEEP | 96:5FM3tp2cYFGcFuLK5dRNbPPw7KMsB3KP37zPfMHOdWcBtWmDQot:4EFVgK/DomaPrDZttWmDl |
TLSH | T18EA17C8D4DB2B20D0D02C8AE499ADB85710574CDA1DFAE47D459ABF8F44E3D2031BC38 |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/changelog.gz |
FileSize | 750 |
MD5 | 3272D3DFD54B35CB6FD3A0FF3289B671 |
SHA-1 | 6D724909DB94F404ED2B4BB331139470F81EEFD4 |
SHA-256 | 89CD7997247FF9A69227634FEED8792BF01329D82FC5AAFE6D9AEE4ED9842317 |
SSDEEP | 12:XnUW8jSqVocR/rNH3/zMj2i8Y53wyTl2Fk9++yHKo9mT9v38ZcqSHQnUB6dEWYo0:XndJuocR/xX/Yj25YmQl26+/p9mT98Zu |
TLSH | T11901B58C72437690BC225DFA5169012428BCDDB2EBD63069C3D324AD4513822441A4B0 |
Key | Value |
---|---|
FileName | snap-hashlookup-import/connectedhomeip/python_env/lib/python3.10/site-packages/dacite/data.py |
FileSize | 52 |
MD5 | 51018A898AFCFA90EC7D3B236C6CB5EF |
SHA-1 | 6DD9897EAC8E1C887A8D97E42A06B39249883EBC |
SHA-256 | 61291035AA2445072C054E6C71CFA0F54C37106026FB169B18E1304E099851EE |
SHA-512 | E52700D2C008CB5EDEAC2117CC07AA3FC386E68F131BDE0966E21CDB31D8A7CEC010AD3B86049B43D35D535884B239ABA42D72509FBDC87F642D5A6703AFAD91 |
SSDEEP | 3:1REvgBoGvFfvvSvoGYWxDin:1REYBDFfivo4tin |
TLSH | T1DE900262165A0345C7ACA43434BE46705626904017435D4624801326598E5601DB622C |
insert-timestamp | 1678271242.646991 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_1 |
Key | Value |
---|---|
FileName | usr/lib/python3.12/site-packages/dacite-1.8.1.dist-info/top_level.txt |
FileSize | 7 |
MD5 | CCCEC983194FF21E32938AE29AE73B3E |
SHA-1 | 70A06E1EE5EBE1A41AB29F6BEE8E5B4CB0EF3C39 |
SHA-256 | 141B626AEF657B42CDE0A56E444525E1F6892796517BBD30CAD5176D8A97F141 |
SHA-512 | E5617B5CF91926C70A2959C982EC0F4D4F60A2688881435A419767CFFCE2C82D522FC20BE4D4B2AF283472BBC24D326D31EADDEAD36A593D7F1700DAF61D49B0 |
SSDEEP | 3:f:f |
TLSH | |
insert-timestamp | 1728980205.1615634 |
mimetype | text/plain |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_5 |
tar:gname | root |
tar:uname | root |