fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.6K
active users

#dataclass

0 posts0 participants0 posts today
Habr<p>Мне вообще никто не нужен, сам себе погрею ужин. Самодостаточная Data</p><p>Привет, на связи Лука. Мне всегда было интересно узнать больше о чистой архитектуре и о том, как построить систему, которая будет простой, но при этом выполнять всё, что от неё требуется. Естественно, без ухода в крайности, результат — наше всё, в булочную на такси не поедем. Со временем вырисовываются какие-то паттерны и принципы, к которым лежит душа. У каждого свои: кто-то горит TDD, кто-то ATDD, FDD, BDD и прочими DD. Я же больше всего прикипел к DDD, причём первая D тут варьируется: угораю как по Domain , так и по Data . И что дальше?</p><p><a href="https://habr.com/ru/articles/889294/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/889294/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> <a href="https://zhub.link/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> <a href="https://zhub.link/tags/%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5_%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>данные_приложения</span></a> <a href="https://zhub.link/tags/specification" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>specification</span></a></p>
Habr<p>Атрибут или Dunder-метод slots в Python. Что нужно о нём знать?</p><p>Всем привет! Меня зовут Дима. Я являюсь Backend Python Developer'ом. Сегодня расскажу Вам про «волшебный» инструмент __slots__ в Python.</p><p><a href="https://habr.com/ru/articles/884052/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/884052/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://zhub.link/tags/slots" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>slots</span></a> <a href="https://zhub.link/tags/__slots__" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>__slots__</span></a> <a href="https://zhub.link/tags/dunder" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dunder</span></a> <a href="https://zhub.link/tags/dunder_methods" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dunder_methods</span></a> <a href="https://zhub.link/tags/class" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>class</span></a> <a href="https://zhub.link/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a></p>
Timothée Mazzucotelli :python:<p>How do you generate JSON schemas of your dataclasses&#39; **inputs**? Any third-party library (something else than stdlib&#39;s dataclasses) allowing one to do that?</p><p>For example, input type is `int | str`, but final/output type is always `int` (coerced). I want to document the input type, not the output type.</p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://fosstodon.org/tags/pydantic" class="mention hashtag" rel="tag">#<span>pydantic</span></a> <a href="https://fosstodon.org/tags/dataclass" class="mention hashtag" rel="tag">#<span>dataclass</span></a> <a href="https://fosstodon.org/tags/attrs" class="mention hashtag" rel="tag">#<span>attrs</span></a> <a href="https://fosstodon.org/tags/jsonschema" class="mention hashtag" rel="tag">#<span>jsonschema</span></a></p>
Erik C. Thauvin<p>Function Properties in Data Classes are Code Smells</p><p><a href="https://mastodon.social/tags/codesmell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>codesmell</span></a> <a href="https://mastodon.social/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> <a href="https://mastodon.social/tags/java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>java</span></a></p><p><a href="https://marcellogalhardo.dev/posts/function-properties-in-data-classes-are-code-smells/?utm_medium=erik.in&amp;utm_source=mastodon" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">marcellogalhardo.dev/posts/fun</span><span class="invisible">ction-properties-in-data-classes-are-code-smells/?utm_medium=erik.in&amp;utm_source=mastodon</span></a></p>
Solve Computer Science<p>Simpler Python YAML</p><p><a href="https://www.youtube.com/watch?v=fFhJUU8eLbs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=fFhJUU8eLb</span><span class="invisible">s</span></a></p><p><a href="https://social.franco.net.eu.org/tags/yaml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>yaml</span></a> <a href="https://social.franco.net.eu.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://social.franco.net.eu.org/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> <a href="https://social.franco.net.eu.org/tags/mashumaro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mashumaro</span></a> <a href="https://social.franco.net.eu.org/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
FOSSlife<p>Serdar Yegulalp provides an introcution to Python dataclasses <a href="https://www.fosslife.org/introduction-python-dataclasses" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">fosslife.org/introduction-pyth</span><span class="invisible">on-dataclasses</span></a> <a href="https://mastodon.fosslife.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.fosslife.org/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://mastodon.fosslife.org/tags/data" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data</span></a> <a href="https://mastodon.fosslife.org/tags/tools" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tools</span></a> <a href="https://mastodon.fosslife.org/tags/languages" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>languages</span></a> <a href="https://mastodon.fosslife.org/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a></p>
Stéphan Mestach<p>Trying to use Data.define in ruby<br>I'd like to add some invariant checking on initialize and field content normalization (striping field content, ensure it's a string)...</p><p>Does someone already used it at scale ? Is there a performance issue from hash/keyword transformations ?</p><p><a href="https://mastodon.green/tags/ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ruby</span></a> <a href="https://mastodon.green/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> ?</p>
RecursiveNeuron :verified:<p>Introduction to Data Classes in Python3</p><p><a href="https://www.recursiveneuron.com/2022/12/introduction-to-data-classes-in-python3.html" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">recursiveneuron.com/2022/12/in</span><span class="invisible">troduction-to-data-classes-in-python3.html</span></a></p><p><a href="https://techhub.social/tags/Python3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python3</span></a> <a href="https://techhub.social/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> <a href="https://techhub.social/tags/pythonprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pythonprogramming</span></a> <a href="https://techhub.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
scy @ WHY2025 (7299)<p>Uhhh, <a href="https://chaos.social/tags/Pydantic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pydantic</span></a>⁠s Integration in normale <a href="https://chaos.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>-<a href="https://chaos.social/tags/Dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Dataclass</span></a>⁠es ist ja auch fancy shit. Gefällt mir &lt;3</p><p><a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pydantic-docs.helpmanual.io/us</span><span class="invisible">age/dataclasses/</span></a></p>
scy @ WHY2025 (7299)<p>So, zusätzlich zum Location-Tracking für mein Telefon über die <a href="https://chaos.social/tags/Nextcloud" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nextcloud</span></a>-App <a href="https://chaos.social/tags/PhoneTrack" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PhoneTrack</span></a> hab ich das jetzt auch mal mit einem in <a href="https://chaos.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> zusammengefrickelten <a href="https://chaos.social/tags/GPSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GPSD</span></a>-Client auch meinem <a href="https://chaos.social/tags/Wohnmobil" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Wohnmobil</span></a> beigebracht.</p><p><a href="https://codeberg.org/scy/jessie/commit/3471dd21b65d4a254b0facaf77dee1f189a3b536" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/scy/jessie/commit</span><span class="invisible">/3471dd21b65d4a254b0facaf77dee1f189a3b536</span></a></p><p>Viel Liebe für <a href="https://chaos.social/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> und <a href="https://chaos.social/tags/deque" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>deque</span></a>.</p>
Aurélien Grosdidier ✅<p>konradhalas/#dacite: Simple creation of data classes from dictionaries. | <a href="https://mastodon.social/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> <a href="https://mastodon.social/tags/dict" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dict</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://github.com/konradhalas/dacite" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">github.com/konradhalas/dacite</span><span class="invisible"></span></a></p>
clacke@libranet.de is my mainGetting a bit excited over <a class="hashtag" href="https://pleroma.soykaf.com/tag/pydantic" rel="nofollow noopener" target="_blank">#pydantic</a> <a class="hashtag" href="https://pleroma.soykaf.com/tag/dataclass" rel="nofollow noopener" target="_blank">#dataclass</a><br><br><a href="https://pydantic-docs.helpmanual.io/usage/dataclasses/" rel="nofollow noopener" target="_blank">https://pydantic-docs.helpmanual.io/usage/dataclasses/</a><br><br>Can be used mostly a drop-in replacement for stdlib dataclass, but adds runtime checking, validation and coercion.<br><br><span class="h-card"><a class="u-url mention" href="https://gup.pe/u/python" rel="nofollow noopener" target="_blank">@<span>python</span></a></span><br><br><span class="h-card"><a class="u-url mention" href="https://libranet.de/profile/clacke" rel="nofollow noopener" target="_blank">@<span>clacke</span></a></span>