How to Install and Uninstall python3-dacite Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 06,2024

1. Install "python3-dacite" package

Please follow the guidelines below to install python3-dacite on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-dacite

2. Uninstall "python3-dacite" package

This is a short guide on how to uninstall python3-dacite on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-dacite $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-dacite package on Ubuntu 21.10 (Impish Indri)

Package: python3-dacite
Architecture: all
Version: 1.6.0-1
Priority: optional
Section: universe/python
Source: dacite
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 62
Depends: python3:any
Filename: pool/universe/d/dacite/python3-dacite_1.6.0-1_all.deb
Size: 17432
MD5sum: 78bfa38216bdfffbc8b1cd9b12ca2766
SHA1: a9117dd0a722f531dac6708ffd15b4da3d822992
SHA256: e9b11cb01ab11131771f116a903b5ad0333d8ceda5d48bf09f4a267bf01064f1
SHA512: 481669f0eda5e5a9a0527e02d80f68d77b71d39aa9cba31037fc694110643efe9b1935a6f7ba3a0f9ca0be819378ef4ab1ad85709184416cd8c9d2f68181a388
Homepage: https://github.com/konradhalas/dacite
Description-en: 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.
Description-md5: c01a2d0695cfb013fcdb4269a62877e2