Key | Value |
---|---|
FileSize | 20452 |
MD5 | 37B6F6EF65767C588EA0ECF869792257 |
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.8.0-1 |
SHA-1 | 29E8A86853FB71A8DDD8ED3B4DCF83E88D31DB9D |
SHA-256 | AAB3F44808C5EA9B7459F7202FFC0FE26DDA1A84CA1C912339A4C537300FA02C |
hashlookup:children-total | 18 |
hashlookup:trust | 50 |
The searched file hash includes 18 children files known and seen by metalookup. A sample is included below:
Key | Value |
---|---|
FileName | usr/lib/python3.12/site-packages/dacite/frozen_dict.py |
FileSize | 839 |
MD5 | 52F490B3AB018449FC10D4CBB7C57BB7 |
SHA-1 | 006087D5AF1AA0EB30BA7401DE192EFDC91F45D7 |
SHA-256 | 737C83146D64F95B8FE57B7D9408DE7B73AC7B65C9535F5BDD7C64020441FA04 |
SHA-512 | ED1C0DE11BF1D4F4B2486023D929E986F67F055B077462B0C7B7B3A79441346BA3480638C0EDD200461E04B4DD23E0A9EA801C50E58B90F99C0254EDE6E7A957 |
SSDEEP | 12:1nlZyVSI1AobRYA1VRV49CR9xNL4lWr6wi9cpaSrgLDBjVLyokh1KwaoAR97:1lZPMA6RYmVPHRNL5GwxpkrLfWKxH |
TLSH | T12601D2B12A97EC11E25BD87A5A93FD47F32D6C57C10C242870BC70585FA2C64C2D6DD0 |
insert-timestamp | 1728980206.4525008 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_5 |
tar:gname | root |
tar:uname | root |
Key | Value |
---|---|
FileName | snap-hashlookup-import/connectedhomeip/python_env/lib/python3.10/site-packages/dacite/dataclasses.py |
FileSize | 932 |
MD5 | 33E7C0BB0B764DD0958E99FC86972C0F |
SHA-1 | 00D23B90DF009A4844E063E42E6F53A504964E20 |
SHA-256 | 323438AE186ACC9B9143C0FDEE92516C0D62FBE87F7743DB691613B2E53568A8 |
SHA-512 | 962E47ADD26631AE97B25059B6F21F143ACB81676DC307816F25DB2C0EC4655E073BA8D22B73248CB0525C683CA3C91AAD480471146F45B860E3D13DC6DD04F0 |
SSDEEP | 24:1By+XoHue8nkQ3hkFZLybHU3v6k64w/0MLyXlBo5v44RS:eQ3huOuCf4wqXliN44I |
TLSH | T199115BB575D7E8368953A984541AC021B316FA559F207874BBF822B63F0941492E4B47 |
insert-timestamp | 1728980206.44422 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_5 |
Key | Value |
---|---|
FileName | ./usr/lib/python3/dist-packages/dacite-1.8.0.egg-info/requires.txt |
FileSize | 123 |
MD5 | 37C73516D4A0DEF8F5F7D758AD72D5DF |
SHA-1 | 1616B47E01FEF5A4FA5AF75D5960F78860E8FB90 |
SHA-256 | F0E2CC3AC18DD0A5DEDE82221ACD3CA599E6ADA5E8B38D0CC13920666200A5BC |
SSDEEP | 3:oVgN0X87HL4vCxzfvOG+WbcF0aIbAGNJ/ONK:o2N0X87HMvCxvTbcrGNJ/O4 |
TLSH | T16DB09B4534528DB57433D24D110D452BAB54E102F7C71117186F8585652954D0550377 |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/changelog.Debian.gz |
FileSize | 787 |
MD5 | 50F3282A49080B955523D46C5FF101FE |
SHA-1 | 33F4242F977600B511FC55327EB6C2AC98DEC391 |
SHA-256 | AAB29DB17CEE1A6B2CE693ED23CAB57A9F0EB225C8FD701C126F096F07A53778 |
SSDEEP | 12:XRnBs5d4+ilqQe4+yaBdbXhHm2Wh584vVgl1r+aBiTqRQql0E6zLxlb6/VwCB:XPs5dkeT7CAQa1rNuqDl0EoOqG |
TLSH | T1BD014677E843F869E7ACA5D6851C190B3B6024B21BA03F846D71414E4FF3191C17B5A3 |
Key | Value |
---|---|
FileName | usr/lib/python3.12/site-packages/dacite/__init__.py |
FileSize | 659 |
MD5 | 5D9E42BCA3BDB7E38E976C089DB2B89F |
SHA-1 | 4BBB7BF00BEC5657F3AB53E5C38539760284AEE6 |
SHA-256 | 75B8B6BC0586AA8AB8F15F5350747079F33B5FDEE07C99944815DD0797DF297B |
SHA-512 | D14F61C90F0306E5F16A8E5BFD88E7F9D497A258B1EBD1F85B2C55692C89F5BB1F6DEF6A7435D56F837B85194EDF96E8B7382EC8347135A1E49FEEC716CCB167 |
SSDEEP | 12:1BjQhw41WDD7PO4BfcMAqGBEQComIX4PRr6X6K+V/GuBOAKGZ43AEoW0DXN:1Bh4Qbmu6X4PAKTV/7SGZiZ0DXN |
TLSH | T15701D6079B49DC0B11218584597B550D0B53C2A38F41B944FA62B7BF2F9D8AFCC7E62D |
insert-timestamp | 1728980206.4485862 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_5 |
tar:gname | root |
tar:uname | root |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/copyright |
FileSize | 1421 |
MD5 | EF1DEDD09F9A16B63AE190A5E53AC10E |
SHA-1 | 600ED603C6E455CBD1046366F6E8C3710899D1EA |
SHA-256 | 659887058AEB6DA59E409B18407E0852CD198B8BB817EADE86C9F1DDEEF3EFE4 |
SSDEEP | 24:gttcgUVFwsruPJH/H0ymS3gt8xLHc1hMK9QH0sUv4kOk4/+/U3oq4sFig:fgUVFt0Jvlm6Er5QH0s5ANU3oWFig |
TLSH | T16221E91B738407551A8A23D06679ACD4B737714EF85FAEC4942DE3045B19079D0FB424 |
Key | Value |
---|---|
FileName | ./usr/share/doc/python3-dacite/changelog.gz |
FileSize | 1079 |
MD5 | C8175F751D7217F50CC60271ECCBF695 |
SHA-1 | 6A64CBF2F1E39803E497E6CDB74D730D6A8B323F |
SHA-256 | 139DA55F6B0E46DFE8F7297E2DDDFAFD47270D55CD312A826834A816FCCADC06 |
SSDEEP | 24:XCNpCAoidmrRlG6rU4O8IxbV6NVLd0vfLuK8oZqpf90bg:X2pSiIFlGD6NhW7ugOSg |
TLSH | T16411E9402D0FB6048165B429CE6F2948BC3B196C0ECB9C5E5326C5D09DDA75BD787212 |
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/lib/python3.12/site-packages/dacite/exceptions.py |
FileSize | 2645 |
MD5 | 80A9B548C3A8F2E2A251C2B006B2072B |
SHA-1 | 7421F1734743C8944C5966F1F1B83F1F2380FF8B |
SHA-256 | F48CBA632D989229BEC29AFFC853FBBB6109461818325B842A944F0A3B752AA7 |
SHA-512 | 8FE20AF59F4F5A64E56DE45E104B07BDB03BF69A2DF4B8922A45380F413265E9B09A8E37A96E12EA2398A014CA2FBFBA2153028980451F06F49BA6E9D93EC100 |
SSDEEP | 48:bQGs1a1fS075rqcfYzk709m5liEltk5hW:bQGs1a1fZNqcfH709m3iWOW |
TLSH | T15B51B70026D2E4068507CA574E65C623232FA9E3CF0A58B0FABC31761B27C7680B9FD9 |
insert-timestamp | 1728980206.4198072 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_5 |
tar:gname | root |
tar:uname | root |
Key | Value |
---|---|
FileName | usr/lib/python3.12/site-packages/dacite/data.py |
FileSize | 58 |
MD5 | 76B713F86EFCA084AB2F42F705161991 |
SHA-1 | 7E9DA5127EA42DFC58B93FA54895C57B7F6A188B |
SHA-256 | E3D8F9B496E2F81E4B28E333B78E2D89C4A3C1BA45440A92BDEA895E8FFC70CA |
SHA-512 | 3AEC2BE0B177762699A08948F831BDFE162D8A5EC6355E606F6E631677D627711675D454F8726E29DC9ECEF492FBAE533D96FF3A0C395EE407D9DCF778F0BC2F |
SSDEEP | 3:1REvgB0LYSv0L0tin:1REYBovhin |
TLSH | T15FA0028A17390E48CFEDA51D2C6E41606625B068B741550520800319518D1B41C7632C |
insert-timestamp | 1728980206.4253578 |
mimetype | text/x-python |
source | snap:GBerlE9aNYdgGnboKfqZK2Fe3Go1PDd9_5 |
tar:gname | root |
tar:uname | root |