Key | Value |
---|---|
FileSize | 18172 |
MD5 | C5DFF01E66CEF189845174B5C303D9EA |
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-1 |
SHA-1 | 0E47699A8D5DF4DC5B91678924306156FC275676 |
SHA-256 | 9BAB56D650F37550AD90818DC6FF4AFEFAF1818968C205D4E27E56323685A6C0 |
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/lib64/pcs/pcs_bundled/packages/dacite-1.6.0-py3.6.egg-info/PKG-INFO |
FileSize | 18091 |
MD5 | C2FC40D28D8CA3DE97486D9F8A08CDF7 |
SHA-1 | 2A411EF68F9571054739B6F815B409F28E2FC049 |
SHA-256 | 15876BA957BF547339C953BC25F526F9BAE0F7AE3D0D2266A41588CF35DCB9E5 |
SSDEEP | 384:BMJvrKzE+wV9Dqkex5RoraYDHv6JJvAUzk:BqvrKzE7V92tvMHvNUo |
TLSH | T1AF82845675A03160074315FA82BA8162BA63F02BEB551C19B4FCC1F81F1B735EF7A66C |
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 | 599 |
MD5 | 6AD33EAAB0E13705C050FC936E5094C7 |
SHA-1 | 53785FF38ED9C4370E5DF77B70E9C238ADDA6800 |
SHA-256 | CD1EB34B70296AC8A9BC6D2C2D2D5A9B5EEDE47F254F5779B512F2C79B795B8C |
SSDEEP | 12:XEBYbl2ejlcTbghU3qlRVleM8htYF0mpi4d+57XPcuOdBeThyGwww2phRY:XJBjlI58b8M8zQJi7TUukBMMGXw2pM |
TLSH | T186F096F40F65CB39C0A86002225C22F053FF8A0524CE52CF60A8E3FF426A165D62139B |
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 |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/copyright |
FileSize | 1421 |
MD5 | 6040EBD21CD2098EA557081A1F533451 |
SHA-1 | 7DB53DAD41D900AD45509AA14BD401A73F30138D |
SHA-256 | 9DA14948B82537B7E367DE7BDE7B80920D7622F6AC26950A15A9648B95CF29BE |
SSDEEP | 24:gttcgUVFCsruPJH/H0ymS3gt8xLHc1hMK9QH0sUv4kOk4/+/U3oq4sFig:fgUVF/0Jvlm6Er5QH0s5ANU3oWFig |
TLSH | T18621E91B738007551A8A23D06679ACD4B737714DF45F9EC4942DE3045B19079D0FB424 |