<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Michał</title>
    <description>The latest articles on DEV Community by Michał (@mduszyk).</description>
    <link>https://dev.to/mduszyk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3862348%2Fe3938af0-0348-4239-80f5-9fbc90c02358.png</url>
      <title>DEV Community: Michał</title>
      <link>https://dev.to/mduszyk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mduszyk"/>
    <language>en</language>
    <item>
      <title>ParamFlow – lightweight layered configuration management for Python</title>
      <dc:creator>Michał</dc:creator>
      <pubDate>Sun, 05 Apr 2026 14:07:44 +0000</pubDate>
      <link>https://dev.to/mduszyk/paramflow-lightweight-layered-configuration-management-for-python-4l29</link>
      <guid>https://dev.to/mduszyk/paramflow-lightweight-layered-configuration-management-for-python-4l29</guid>
      <description>&lt;h2&gt;
  
  
  What My Project Does
&lt;/h2&gt;

&lt;p&gt;I kept running into the same friction in ML projects — managing config files,&lt;br&gt;
environment variables, and CLI args separately, writing boilerplate to merge&lt;br&gt;
them, and losing track of what parameters ran in which experiment.&lt;/p&gt;

&lt;p&gt;ParamFlow solves this with a single call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;paramflow&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pf&lt;/span&gt;

&lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;params.toml&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;learning_rate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 0.001
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;batch_size&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;     &lt;span class="c1"&gt;# 64
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It merges config files, env vars, and CLI args in a defined order, activates&lt;br&gt;
named profiles, and returns a plain Python dict — no conversion needed, works&lt;br&gt;
with json.dumps, **unpacking, any serialization library.&lt;/p&gt;

&lt;p&gt;No schemas, no type annotations — types are inferred from the config file values.&lt;/p&gt;

&lt;p&gt;You can override any parameter at runtime without touching the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python train.py &lt;span class="nt"&gt;--profile&lt;/span&gt; large &lt;span class="nt"&gt;--learning_rate&lt;/span&gt; 0.0005
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;P_LEARNING_RATE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0.0005 python train.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Target Audience
&lt;/h2&gt;

&lt;p&gt;Python developers who need simple, flexible config management. Particularly&lt;br&gt;
useful for ML/research projects where reproducibility matters — every run logs&lt;br&gt;
exactly what parameters were used.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/mduszyk/paramflow" rel="noopener noreferrer"&gt;https://github.com/mduszyk/paramflow&lt;/a&gt;&lt;br&gt;
PyPI: &lt;a href="https://pypi.org/project/paramflow/" rel="noopener noreferrer"&gt;https://pypi.org/project/paramflow/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
