معرفی شرکت ها


python3-dacite_1.6.0-1_all.deb


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Simple creation of data classes from dictionaries
ویژگی مقدار
سیستم عامل Linux
توزیع Debian Bullseye-11
مخزن Debian main all
نام بسته python3-dacite
نام فایل بسته python3-dacite_1.6.0-1_all.deb
نسخه بسته 1.6.0
انتشار بسته 1
معماری بسته all
نگهدارنده Debian Python Team <team+python@tracker.debian.org>
تاریخ ساخت -
هاست سازنده -
نوع بسته .deb
آدرس صفحه اصلی https://github.com/konradhalas/dacite
مجوز -
حجم دانلود 18172
حجم نصب 63
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.


نیازمندی

مقدار نام
- python3:any


نحوه نصب


نصب پکیج deb python3-dacite:

    sudo apt-get install python3-dacite_1.6.0-1_all.deb


فایل ها

مسیرها
./usr/lib/python3/dist-packages/dacite/__init__.py
./usr/lib/python3/dist-packages/dacite/config.py
./usr/lib/python3/dist-packages/dacite/core.py
./usr/lib/python3/dist-packages/dacite/data.py
./usr/lib/python3/dist-packages/dacite/dataclasses.py
./usr/lib/python3/dist-packages/dacite/exceptions.py
./usr/lib/python3/dist-packages/dacite/py.typed
./usr/lib/python3/dist-packages/dacite/types.py
./usr/lib/python3/dist-packages/dacite-1.6.0.egg-info/PKG-INFO
./usr/lib/python3/dist-packages/dacite-1.6.0.egg-info/dependency_links.txt
./usr/lib/python3/dist-packages/dacite-1.6.0.egg-info/requires.txt
./usr/lib/python3/dist-packages/dacite-1.6.0.egg-info/top_level.txt
./usr/share/doc/python3-dacite/README.md.gz
./usr/share/doc/python3-dacite/changelog.Debian.gz
./usr/share/doc/python3-dacite/changelog.gz
./usr/share/doc/python3-dacite/copyright