<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Data Modeling on Nalar</title>
    <link>https://nalar.dev/tags/data-modeling/</link>
    <description>Recent content in Data Modeling on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 04 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/data-modeling/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Model Combinable Options in Python with enum.Flag and IntFlag</title>
      <link>https://nalar.dev/model-combinable-options-in-python-with-enum-flag-and-intflag/</link>
      <pubDate>Fri, 04 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/model-combinable-options-in-python-with-enum-flag-and-intflag/</guid>
      <description>&lt;p&gt;Some values represent one choice from a fixed set. A log level might be &lt;code&gt;INFO&lt;/code&gt;, &lt;code&gt;WARNING&lt;/code&gt;, or &lt;code&gt;ERROR&lt;/code&gt;. Python&amp;rsquo;s &lt;code&gt;Enum&lt;/code&gt; is a natural fit because one value should identify one member.&lt;/p&gt;&#xA;&lt;p&gt;Other values represent a &lt;strong&gt;combination of independent options&lt;/strong&gt;. A file operation may allow reading and writing. A protocol field may enable compression and encryption. A component may expose several capabilities at the same time.&lt;/p&gt;&#xA;&lt;p&gt;Representing those combinations as ordinary booleans works at first:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
