<?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: FABRICIO FARID EDMILSON RAMOS ATAHUACHI</title>
    <description>The latest articles on DEV Community by FABRICIO FARID EDMILSON RAMOS ATAHUACHI (@fabricio_ramos).</description>
    <link>https://dev.to/fabricio_ramos</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3889403%2F9fe9a4cf-5072-4b57-acc3-7d2afb49eb74.png</url>
      <title>DEV Community: FABRICIO FARID EDMILSON RAMOS ATAHUACHI</title>
      <link>https://dev.to/fabricio_ramos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fabricio_ramos"/>
    <language>en</language>
    <item>
      <title>Building a Zero-AWS, Browser-Native OLAP Solution with DuckDB-WASM, Apache Parquet, and Automated GitHub Pages Deployment</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Wed, 18 Nov 2026 04:35:40 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/building-a-zero-aws-browser-native-olap-solution-with-duckdb-wasm-apache-parquet-and-automated-cic</link>
      <guid>https://dev.to/fabricio_ramos/building-a-zero-aws-browser-native-olap-solution-with-duckdb-wasm-apache-parquet-and-automated-cic</guid>
      <description>&lt;p&gt;Online Analytical Processing (&lt;strong&gt;OLAP&lt;/strong&gt;) has historically meant provisioning heavy server clusters, managing warehouse nodes, or locking your analytics stack into AWS services like Redshift and S3.&lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;DuckDB-WASM&lt;/strong&gt; and &lt;strong&gt;Apache Parquet&lt;/strong&gt;, we can flip that architecture on its head: ship a columnar &lt;strong&gt;Star Schema&lt;/strong&gt; directly to the edge and execute vectorized OLAP queries (&lt;code&gt;GROUP BY ROLLUP&lt;/code&gt;, &lt;code&gt;CUBE&lt;/code&gt;, &lt;code&gt;PIVOT&lt;/code&gt;, window functions, and &lt;code&gt;QUALIFY&lt;/code&gt;) &lt;strong&gt;100% inside the browser&lt;/strong&gt; at millisecond latency—with &lt;strong&gt;zero backend servers&lt;/strong&gt; and &lt;strong&gt;zero AWS dependencies&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this walkthrough, we build and deploy &lt;strong&gt;ParquetCube OLAP Studio&lt;/strong&gt;, an interactive analytics workbench backed by 120,000 sales transactions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Deployed App (GitHub Pages):&lt;/strong&gt; &lt;a href="https://fabriciorams.github.io/Actividad-Grupal-02-U2-Online-Analitycal-Processing/" rel="noopener noreferrer"&gt;https://fabriciorams.github.io/Actividad-Grupal-02-U2-Online-Analitycal-Processing/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/FabricioRams/Actividad-Grupal-02-U2-Online-Analitycal-Processing" rel="noopener noreferrer"&gt;https://github.com/FabricioRams/Actividad-Grupal-02-U2-Online-Analitycal-Processing&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. Why Browser-Native OLAP with DuckDB-WASM?
&lt;/h2&gt;

&lt;p&gt;Traditional OLTP databases (PostgreSQL, MySQL) store data row-by-row, which is great for single-record writes but slow when scanning 100,000+ rows to aggregate revenue across regions and quarters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DuckDB&lt;/strong&gt; is an in-process columnar OLAP engine. Compiled to &lt;strong&gt;WebAssembly (WASM)&lt;/strong&gt; via &lt;code&gt;@duckdb/duckdb-wasm&lt;/code&gt;, it brings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vectorized Execution:&lt;/strong&gt; Processes columns in CPU cache-friendly vectors rather than tuple-by-tuple.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native Parquet Predicate &amp;amp; Projection Pushdown:&lt;/strong&gt; Reads only the columns needed from ZSTD-compressed &lt;code&gt;.parquet&lt;/code&gt; files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full Analytical SQL Dialect:&lt;/strong&gt; Supports &lt;code&gt;GROUP BY CUBE&lt;/code&gt;, &lt;code&gt;GROUP BY ROLLUP&lt;/code&gt;, &lt;code&gt;PIVOT&lt;/code&gt;, &lt;code&gt;FILTER (WHERE ...)&lt;/code&gt;, &lt;code&gt;QUALIFY&lt;/code&gt;, and &lt;code&gt;parquet_metadata()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Cloud Lock-In (No AWS):&lt;/strong&gt; Everything runs on static edge hosting (GitHub Pages) + the user's browser Web Worker.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+-------------------------------------------------------------------+
|  Browser (React + TypeScript + Vite)                              |
|                                                                   |
|  +-----------------------+     +-------------------------------+  |
|  | OLAP Cube Explorer    |     | SQL Workbench &amp;amp; Schema View   |  |
|  | Slice/Dice/Rollup UI  |     | CUBE, PIVOT, QUALIFY, Upload  |  |
|  +-----------+-----------+     +---------------+---------------+  |
|              |                                 |                  |
|              +----------------+----------------+                  |
|                               v                                   |
|  +-------------------------------------------------------------+  |
|  | DuckDB-WASM Web Worker (duckdb-eh.wasm / Apache Arrow)      |  |
|  | Virtual FS: fact_sales.parquet, dim_products, dim_stores    |  |
|  +-------------------------------------------------------------+  |
+-------------------------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  2. Designing the Star Schema in Apache Parquet
&lt;/h2&gt;

&lt;p&gt;An OLAP solution starts with a &lt;strong&gt;Star Schema&lt;/strong&gt;: one central &lt;strong&gt;fact table&lt;/strong&gt; surrounded by denormalized &lt;strong&gt;dimension tables&lt;/strong&gt; for hierarchies.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://github.com/FabricioRams/Actividad-Grupal-02-U2-Online-Analitycal-Processing/blob/main/scripts/generate_olap_data.py" rel="noopener noreferrer"&gt;&lt;code&gt;scripts/generate_olap_data.py&lt;/code&gt;&lt;/a&gt;, we generate three ZSTD-compressed Parquet files using Python (&lt;code&gt;pyarrow&lt;/code&gt; + &lt;code&gt;pandas&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;fact_sales.parquet&lt;/code&gt;&lt;/strong&gt; (120,000 rows, ~3.1 MB): &lt;code&gt;order_id&lt;/code&gt;, &lt;code&gt;order_date&lt;/code&gt;, &lt;code&gt;order_year&lt;/code&gt;, &lt;code&gt;order_quarter&lt;/code&gt;, &lt;code&gt;order_month&lt;/code&gt;, &lt;code&gt;store_id&lt;/code&gt;, &lt;code&gt;product_id&lt;/code&gt;, &lt;code&gt;customer_segment&lt;/code&gt;, &lt;code&gt;sales_channel&lt;/code&gt;, &lt;code&gt;quantity&lt;/code&gt;, &lt;code&gt;unit_price&lt;/code&gt;, &lt;code&gt;discount_pct&lt;/code&gt;, &lt;code&gt;revenue&lt;/code&gt;, &lt;code&gt;cost&lt;/code&gt;, &lt;code&gt;profit&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;dim_products.parquet&lt;/code&gt;&lt;/strong&gt; (20 rows): Product hierarchy (&lt;code&gt;category -&amp;gt; sub_category -&amp;gt; brand -&amp;gt; product_name&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;dim_stores.parquet&lt;/code&gt;&lt;/strong&gt; (15 rows): Geography hierarchy (&lt;code&gt;region -&amp;gt; country -&amp;gt; city -&amp;gt; store_name&lt;/code&gt;).
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;write_parquet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DataFrame&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pa&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Table&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_pandas&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;preserve_index&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;pq&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;compression&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"zstd"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row_group_size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using &lt;code&gt;compression="zstd"&lt;/code&gt; shrinks 120,000 fact rows down to ~3.1 MB, making initial browser fetch fast even on modest connections.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Booting DuckDB-WASM in a Web Worker
&lt;/h2&gt;

&lt;p&gt;To avoid external CDN failures and guarantee reliable execution on GitHub Pages, we copy the DuckDB WASM and worker binaries (&lt;code&gt;duckdb-eh.wasm&lt;/code&gt;, &lt;code&gt;duckdb-browser-eh.worker.js&lt;/code&gt;, &lt;code&gt;duckdb-mvp.wasm&lt;/code&gt;, &lt;code&gt;duckdb-browser-mvp.worker.js&lt;/code&gt;) into &lt;code&gt;public/duckdb/&lt;/code&gt; during build via &lt;code&gt;scripts/copy-duckdb-assets.mjs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://github.com/FabricioRams/Actividad-Grupal-02-U2-Online-Analitycal-Processing/blob/main/src/lib/duckdb.ts" rel="noopener noreferrer"&gt;&lt;code&gt;src/lib/duckdb.ts&lt;/code&gt;&lt;/a&gt;, we instantiate &lt;code&gt;AsyncDuckDB&lt;/code&gt;, load the three Parquet files into DuckDB's virtual file system, and expose them as SQL views:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;registerParquetTable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;duckdb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncDuckDB&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;duckdb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncDuckDBConnection&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;tableName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;fileUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;void&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fileUrl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;buffer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Uint8Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;arrayBuffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;virtualPath&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${tableName}.parquet`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;registerFileBuffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;virtualPath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;conn&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sb"&gt;`CREATE OR REPLACE VIEW ${tableName} AS SELECT * FROM read_parquet('${virtualPath}');`&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Users can also upload their own &lt;code&gt;.parquet&lt;/code&gt; or &lt;code&gt;.csv&lt;/code&gt; files directly into the browser via &lt;code&gt;registerUploadedFile()&lt;/code&gt; without sending data to any external server.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Implementing Core OLAP Operations in SQL
&lt;/h2&gt;

&lt;p&gt;Our query builder module (&lt;a href="https://github.com/FabricioRams/Actividad-Grupal-02-U2-Online-Analitycal-Processing/blob/main/src/lib/olapSql.ts" rel="noopener noreferrer"&gt;&lt;code&gt;src/lib/olapSql.ts&lt;/code&gt;&lt;/a&gt;) translates UI interactions into parameterized OLAP SQL:&lt;/p&gt;

&lt;h3&gt;
  
  
  Slice &amp;amp; Dice + Hierarchical &lt;code&gt;ROLLUP&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;When the user switches Geography (&lt;code&gt;region -&amp;gt; country -&amp;gt; city&lt;/code&gt;) or Product (&lt;code&gt;category -&amp;gt; sub_category -&amp;gt; brand&lt;/code&gt;) granularity, DuckDB computes hierarchical subtotals and the grand total in a single query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
  &lt;span class="nb"&gt;COALESCE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ALL (REGION)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;geo_dim&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nb"&gt;COALESCE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ALL (CATEGORY)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;prod_dim&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="no"&gt;GROUPING&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="kt"&gt;INTEGER&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;is_geo_total&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="no"&gt;GROUPING&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="kt"&gt;INTEGER&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;is_prod_total&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*)::DOUBLE AS orders,
  SUM(f.quantity)::DOUBLE AS units,
  ROUND(SUM(f.revenue), 2)::DOUBLE AS revenue,
  ROUND(SUM(f.profit), 2)::DOUBLE AS profit,
  ROUND((SUM(f.profit) / NULLIF(SUM(f.revenue), 0)) * 100, 2)::DOUBLE AS margin_pct
FROM fact_sales f
JOIN dim_stores s ON f.store_id = s.store_id
JOIN dim_products p ON f.product_id = p.product_id
GROUP BY ROLLUP(s.region, p.category)
ORDER BY is_geo_total ASC, geo_dim ASC, is_prod_total ASC, revenue DESC;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Multi-Dimensional &lt;code&gt;CUBE&lt;/code&gt;, &lt;code&gt;PIVOT&lt;/code&gt;, and &lt;code&gt;QUALIFY&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;In the &lt;strong&gt;SQL Workbench&lt;/strong&gt;, users can run presets showcasing DuckDB's analytical power:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Top-3 performing products in each region using Window Functions + QUALIFY&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt;
  &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;product_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;category&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="cm"&gt;(*) AS orders,
  ROUND(SUM(f.revenue), 2) AS revenue,
  DENSE_RANK() OVER (PARTITION BY s.region ORDER BY SUM(f.revenue) DESC) AS region_rank
FROM fact_sales f
JOIN dim_stores s ON f.store_id = s.store_id
JOIN dim_products p ON f.product_id = p.product_id
GROUP BY s.region, p.product_name, p.category
QUALIFY region_rank &amp;lt;= 3
ORDER BY s.region, region_rank;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  5. Automated Testing &amp;amp; CI/CD Deployment to GitHub Pages
&lt;/h2&gt;

&lt;p&gt;We automated testing, typechecking, asset bundling, and public SaaS deployment using &lt;strong&gt;GitHub Actions&lt;/strong&gt; (&lt;a href="https://github.com/FabricioRams/Actividad-Grupal-02-U2-Online-Analitycal-Processing/blob/main/.github/workflows/deploy.yml" rel="noopener noreferrer"&gt;&lt;code&gt;.github/workflows/deploy.yml&lt;/code&gt;&lt;/a&gt;):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unit Tests (&lt;code&gt;vitest&lt;/code&gt;)&lt;/strong&gt;: Validates SQL escaping, Slice &amp;amp; Dice &lt;code&gt;WHERE&lt;/code&gt; generation, &lt;code&gt;ROLLUP&lt;/code&gt; queries, and granularity mapping (&lt;code&gt;src/lib/olapSql.test.ts&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript &amp;amp; Vite Build&lt;/strong&gt;: Copies DuckDB-WASM binaries, checks strict types (&lt;code&gt;tsc --noEmit&lt;/code&gt;), and bundles static assets with the GitHub Pages base path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Artifact Verification &amp;amp; Pages Deployment&lt;/strong&gt;: Verifies &lt;code&gt;.parquet&lt;/code&gt; and &lt;code&gt;.wasm&lt;/code&gt; files exist in &lt;code&gt;dist/&lt;/code&gt;, configures GitHub Pages, and publishes via &lt;code&gt;actions/deploy-pages@v4&lt;/code&gt;.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run unit tests (Vitest)&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm test&lt;/span&gt;

&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Typecheck &amp;amp; build production bundle&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm run build&lt;/span&gt;

&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Setup GitHub Pages&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/configure-pages@v5&lt;/span&gt;

&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deploy to GitHub Pages&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/deploy-pages@v4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every &lt;code&gt;git push&lt;/code&gt; to &lt;code&gt;main&lt;/code&gt; automatically validates and deploys the updated OLAP studio to production.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;By pairing &lt;strong&gt;Apache Parquet&lt;/strong&gt; with &lt;strong&gt;DuckDB-WASM&lt;/strong&gt; and &lt;strong&gt;GitHub Pages&lt;/strong&gt;, teams can ship responsive, zero-AWS OLAP solutions with full SQL expressiveness (&lt;code&gt;CUBE&lt;/code&gt;, &lt;code&gt;ROLLUP&lt;/code&gt;, &lt;code&gt;PIVOT&lt;/code&gt;, window analytics) and zero server maintenance overhead.&lt;/p&gt;

&lt;p&gt;Try the live application here: &lt;strong&gt;&lt;a href="https://fabriciorams.github.io/Actividad-Grupal-02-U2-Online-Analitycal-Processing/" rel="noopener noreferrer"&gt;https://fabriciorams.github.io/Actividad-Grupal-02-U2-Online-Analitycal-Processing/&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>olap</category>
      <category>duckdb</category>
      <category>parquet</category>
      <category>analytics</category>
    </item>
    <item>
      <title>Building an Automated, Zero-AWS Data Engineering Platform with Apache Airflow, dbt, DuckDB/PostgreSQL, and FastAPI</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Wed, 18 Nov 2026 03:51:15 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/building-an-automated-zero-aws-data-engineering-platform-with-apache-airflow-dbt-3bc6</link>
      <guid>https://dev.to/fabricio_ramos/building-an-automated-zero-aws-data-engineering-platform-with-apache-airflow-dbt-3bc6</guid>
      <description>&lt;p&gt;Modern Data Engineering doesn't require heavyweight cloud lock-in or expensive AWS infrastructure to be production-grade. With open-source tools like &lt;strong&gt;Apache Airflow&lt;/strong&gt;, &lt;strong&gt;dbt Core&lt;/strong&gt;, &lt;strong&gt;DuckDB&lt;/strong&gt;, &lt;strong&gt;PostgreSQL&lt;/strong&gt;, &lt;strong&gt;FastAPI&lt;/strong&gt;, and &lt;strong&gt;GitHub Actions&lt;/strong&gt;, you can build a reproducible, automatically tested, and continuously deployed ELT platform on free-tier public cloud/SaaS providers.&lt;/p&gt;

&lt;p&gt;In this article, we walk through &lt;strong&gt;SkyPulse&lt;/strong&gt;, an end-to-end Data Engineering solution that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ingests live hourly weather and air-quality telemetry for 10 global cities from the &lt;strong&gt;Open-Meteo API&lt;/strong&gt; (no API key required).&lt;/li&gt;
&lt;li&gt;Stores raw observations idempotently in &lt;strong&gt;DuckDB&lt;/strong&gt; (local/CI) or &lt;strong&gt;PostgreSQL&lt;/strong&gt; (production cloud).&lt;/li&gt;
&lt;li&gt;Transforms and tests the data using &lt;strong&gt;dbt Core&lt;/strong&gt; following a &lt;strong&gt;Medallion Architecture&lt;/strong&gt; (&lt;code&gt;raw&lt;/code&gt; → &lt;code&gt;staging&lt;/code&gt; → &lt;code&gt;intermediate&lt;/code&gt; → &lt;code&gt;marts&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Orchestrates scheduled runs via an &lt;strong&gt;Apache Airflow DAG&lt;/strong&gt; (local Docker stack) and &lt;strong&gt;GitHub Actions&lt;/strong&gt; (6-hour serverless cron).&lt;/li&gt;
&lt;li&gt;Serves analytics and an interactive &lt;strong&gt;Plotly&lt;/strong&gt; dashboard via &lt;strong&gt;FastAPI&lt;/strong&gt;, automatically deployed via &lt;strong&gt;Render&lt;/strong&gt; (&lt;code&gt;render.yaml&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Source Code (Public Repository):&lt;/strong&gt; &lt;a href="https://github.com/FabricioRams/Actividad-Grupal-01-U2-Data-Enginnering" rel="noopener noreferrer"&gt;github.com/FabricioRams/Actividad-Grupal-01-U2-Data-Enginnering&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  1. Architecture Overview (100% AWS-Free)
&lt;/h2&gt;

&lt;p&gt;Our goal was to keep the stack portable across laptops, CI runners, and public PaaS providers without touching AWS S3, Redshift, or MWAA:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Extraction &amp;amp; Validation (&lt;code&gt;src/ingestion/open_meteo.py&lt;/code&gt;)&lt;/strong&gt;: &lt;code&gt;httpx&lt;/code&gt; + &lt;code&gt;tenacity&lt;/code&gt; retries + &lt;strong&gt;Pydantic&lt;/strong&gt; models validate every hourly record before it touches the warehouse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dual-Backend Warehouse (&lt;code&gt;src/db.py&lt;/code&gt;)&lt;/strong&gt;: A unified connection layer supports &lt;strong&gt;DuckDB&lt;/strong&gt; for zero-setup local development/CI and &lt;strong&gt;PostgreSQL&lt;/strong&gt; (Render Managed Postgres or Neon) in production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transformation &amp;amp; Data Quality (&lt;code&gt;dbt_project/&lt;/code&gt;)&lt;/strong&gt;: &lt;code&gt;dbt-core&lt;/code&gt; builds views and materialized tables across &lt;code&gt;staging&lt;/code&gt;, &lt;code&gt;intermediate&lt;/code&gt;, and &lt;code&gt;marts&lt;/code&gt; schemas, backed by 20 automated schema and singular tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orchestration (&lt;code&gt;airflow/dags/skypulse_elt_dag.py&lt;/code&gt; + &lt;code&gt;.github/workflows/ci-cd.yml&lt;/code&gt;)&lt;/strong&gt;: Runs the pipeline locally in Apache Airflow and automatically every 6 hours in GitHub Actions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Serving Layer (&lt;code&gt;src/api/main.py&lt;/code&gt;)&lt;/strong&gt;: FastAPI serves JSON endpoints (&lt;code&gt;/api/v1/summary&lt;/code&gt;, &lt;code&gt;/api/v1/cities&lt;/code&gt;, &lt;code&gt;/api/v1/hourly&lt;/code&gt;, &lt;code&gt;/api/v1/anomalies&lt;/code&gt;) and a responsive Plotly analytics dashboard at &lt;code&gt;/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Resilient Ingestion with Idempotent Upserts
&lt;/h2&gt;

&lt;p&gt;One of the golden rules of Data Engineering is &lt;strong&gt;idempotency&lt;/strong&gt;: re-running a pipeline for the same time window must never create duplicate records.&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;src/db.py&lt;/code&gt;, both &lt;code&gt;raw.raw_weather_hourly&lt;/code&gt; and &lt;code&gt;raw.raw_air_quality_hourly&lt;/code&gt; enforce a composite primary key &lt;code&gt;(city_id, observed_at_utc)&lt;/code&gt; and perform &lt;code&gt;ON CONFLICT ... DO UPDATE&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;raw_weather_hourly&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;city_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;city_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;observed_at_utc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;temperature_c&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;relative_humidity_pct&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;apparent_temperature_c&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;precipitation_mm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wind_speed_kmh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;surface_pressure_hpa&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cloud_cover_pct&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;weather_code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ingested_at_utc&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;CONFLICT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;city_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;observed_at_utc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;DO&lt;/span&gt; &lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt;
    &lt;span class="n"&gt;temperature_c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;temperature_c&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;relative_humidity_pct&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relative_humidity_pct&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;precipitation_mm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;precipitation_mm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;wind_speed_kmh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;wind_speed_kmh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;ingested_at_utc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;EXCLUDED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ingested_at_utc&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before loading, &lt;code&gt;src/ingestion/open_meteo.py&lt;/code&gt; validates constraints like &lt;code&gt;relative_humidity_pct&lt;/code&gt; (&lt;code&gt;0–100&lt;/code&gt;) and non-negative pollutant concentrations (&lt;code&gt;pm2_5&lt;/code&gt;, &lt;code&gt;pm10&lt;/code&gt;, &lt;code&gt;us_aqi&lt;/code&gt;) using Pydantic.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Medallion Modeling &amp;amp; Quality Gates in dbt
&lt;/h2&gt;

&lt;p&gt;Our &lt;code&gt;dbt_project/&lt;/code&gt; separates raw ingestion from business-ready analytics across three layers:&lt;/p&gt;

&lt;h3&gt;
  
  
  Staging (&lt;code&gt;staging&lt;/code&gt; schema — views)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;stg_weather_hourly.sql&lt;/code&gt;: Deduplicates using &lt;code&gt;ROW_NUMBER()&lt;/code&gt; over &lt;code&gt;(city_id, observed_at_utc)&lt;/code&gt;, normalizes UTC dates with &lt;code&gt;date_trunc('day', observed_at_utc at time zone 'UTC')&lt;/code&gt;, and casts numeric types consistently across DuckDB and PostgreSQL.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;stg_air_quality_hourly.sql&lt;/code&gt;: Maps raw &lt;code&gt;us_aqi&lt;/code&gt; values into standard EPA categories (&lt;code&gt;Good&lt;/code&gt;, &lt;code&gt;Moderate&lt;/code&gt;, &lt;code&gt;Sensitive&lt;/code&gt;, &lt;code&gt;Unhealthy&lt;/code&gt;, &lt;code&gt;Hazardous&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Intermediate (&lt;code&gt;intermediate&lt;/code&gt; schema — view)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;int_city_hourly_combined.sql&lt;/code&gt;: Joins hourly weather and air quality streams and calculates a composite &lt;strong&gt;Comfort Index Score (0–100)&lt;/strong&gt; combining temperature deviation from 21°C, humidity, AQI, and wind speed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Marts (&lt;code&gt;marts&lt;/code&gt; schema — materialized tables)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;dim_cities&lt;/code&gt;: Monitored city metadata and coordinates.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fct_city_hourly_metrics&lt;/code&gt;: Unified hourly weather + pollutant fact table.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mart_city_daily_summary&lt;/code&gt;: Daily min/avg/max temperature, precipitation totals, AQI, and comfort index per city.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mart_climate_anomalies&lt;/code&gt;: Statistical anomaly detector computing per-city temperature z-scores (&lt;code&gt;|z| &amp;gt;= 1.75&lt;/code&gt;) alongside high-AQI (&lt;code&gt;&amp;gt;= 100&lt;/code&gt;), high-wind (&lt;code&gt;&amp;gt;= 40 km/h&lt;/code&gt;), and heavy-precipitation (&lt;code&gt;&amp;gt;= 5 mm/h&lt;/code&gt;) events.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every &lt;code&gt;dbt build&lt;/code&gt; runs &lt;strong&gt;20 data quality tests&lt;/strong&gt;, including &lt;code&gt;unique&lt;/code&gt;, &lt;code&gt;not_null&lt;/code&gt;, &lt;code&gt;relationships&lt;/code&gt;, &lt;code&gt;accepted_values&lt;/code&gt;, and custom singular SQL tests such as &lt;code&gt;assert_valid_humidity_range.sql&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt;
    &lt;span class="n"&gt;observation_pk&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;city_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;relative_humidity_pct&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nf"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'fct_city_hourly_metrics'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;relative_humidity_pct&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
   &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="n"&gt;relative_humidity_pct&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  4. Orchestration with Apache Airflow &amp;amp; GitHub Actions
&lt;/h2&gt;

&lt;p&gt;For containerized local or self-hosted execution, &lt;code&gt;airflow/dags/skypulse_elt_dag.py&lt;/code&gt; defines a clear DAG using &lt;code&gt;TaskGroup&lt;/code&gt;:&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="k"&gt;with&lt;/span&gt; &lt;span class="no"&gt;DAG&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;dag_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"skypulse_weather_air_quality_elt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"0 */6 * * *"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;catchup&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;max_active_runs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tags&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"skypulse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"dbt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"postgres"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"elt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"no-aws"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;dag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;extract_and_load_raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;BashOperator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;task_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"extract_and_load_open_meteo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;bash_command&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"cd /opt/skypulse &amp;amp;&amp;amp; python -m src.ingestion.run_pipeline --skip-dbt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;TaskGroup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;group_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"dbt_medallion_pipeline"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;dbt_group&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;dbt_run_staging&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;BashOperator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;dbt_run_marts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;BashOperator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;dbt_test_quality&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;BashOperator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;dbt_run_staging&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;dbt_run_marts&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;dbt_test_quality&lt;/span&gt;

    &lt;span class="n"&gt;extract_and_load_raw&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;dbt_group&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running &lt;code&gt;docker compose up --build&lt;/code&gt; spins up PostgreSQL 16, Apache Airflow 2.10, and the FastAPI analytics service together.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Automated CI/CD &amp;amp; Public Cloud Deployment (Zero AWS)
&lt;/h2&gt;

&lt;p&gt;Automation doesn't stop at the data pipeline—our entire software delivery lifecycle is automated via &lt;strong&gt;GitHub Actions&lt;/strong&gt; (&lt;code&gt;.github/workflows/ci-cd.yml&lt;/code&gt;) and &lt;strong&gt;Render&lt;/strong&gt; (&lt;code&gt;render.yaml&lt;/code&gt;):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Continuous Integration (on every push &amp;amp; PR)&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Lints Python code with &lt;code&gt;ruff&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Executes unit tests (&lt;code&gt;httpx.MockTransport&lt;/code&gt;), end-to-end DuckDB + &lt;code&gt;dbt build&lt;/code&gt; tests, and FastAPI endpoint tests via &lt;code&gt;pytest&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Verifies the production &lt;code&gt;Dockerfile&lt;/code&gt; builds cleanly.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Continuous Deployment &amp;amp; Scheduled Cloud ELT&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;On &lt;code&gt;main&lt;/code&gt; and on a &lt;code&gt;0 */6 * * *&lt;/code&gt; cron schedule, GitHub Actions runs &lt;code&gt;python -m src.ingestion.run_pipeline&lt;/code&gt; against our cloud PostgreSQL database (&lt;code&gt;DATABASE_URL&lt;/code&gt; secret).&lt;/li&gt;
&lt;li&gt;On push to &lt;code&gt;main&lt;/code&gt;, it triggers &lt;code&gt;RENDER_DEPLOY_HOOK_URL&lt;/code&gt; (or Render's native Git auto-deploy via &lt;code&gt;render.yaml&lt;/code&gt;) to roll out the Dockerized FastAPI service and dashboard.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Using &lt;code&gt;render.yaml&lt;/code&gt; Blueprints, both the managed PostgreSQL database and the Docker web service are provisioned declaratively as Infrastructure-as-Code without touching AWS.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Serving Insights via FastAPI &amp;amp; Plotly
&lt;/h2&gt;

&lt;p&gt;Rather than leaving analytics trapped inside SQL tables, FastAPI exposes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GET /&lt;/code&gt; — An interactive dark-mode &lt;strong&gt;Plotly.js&lt;/strong&gt; dashboard comparing hourly temperature vs. US AQI trajectories, city comfort rankings, detected climate anomalies, and pipeline run telemetry.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /docs&lt;/code&gt; — Auto-generated OpenAPI/Swagger documentation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /health&lt;/code&gt; — Readiness probe verifying warehouse mart availability.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try It Yourself
&lt;/h2&gt;

&lt;p&gt;Clone the repository and run the entire pipeline locally in under a minute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/FabricioRams/Actividad-Grupal-01-U2-Data-Enginnering.git
&lt;span class="nb"&gt;cd&lt;/span&gt; Actividad-Grupal-01-U2-Data-Enginnering
python -m venv .venv
pip install -r requirements-dev.txt
python -m src.ingestion.run_pipeline
uvicorn src.api.main:app --reload
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks for reading! Feel free to fork the repository, connect your own Render or Neon PostgreSQL instance, and extend the pipeline with additional Open-Meteo metrics or streaming sources.&lt;/p&gt;

</description>
      <category>dataengineering</category>
      <category>dbt</category>
      <category>airflow</category>
      <category>python</category>
    </item>
    <item>
      <title>OmniAnalytics BI: Executive Decision Support System Built with Streamlit and Plotly</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Thu, 22 Oct 2026 22:52:29 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/omnianalytics-bi-executive-decision-support-system-built-with-streamlit-and-plotly-1lk2</link>
      <guid>https://dev.to/fabricio_ramos/omnianalytics-bi-executive-decision-support-system-built-with-streamlit-and-plotly-1lk2</guid>
      <description>&lt;h2&gt;
  
  
  1. Introduction: The Era of Data-Driven Decision Making
&lt;/h2&gt;

&lt;p&gt;In the modern enterprise landscape, data is the most strategic asset of any organization; however, raw data lacks intrinsic value without context and interpretability. The primary objective of Business Intelligence (BI) is to transform transactional volumes into actionable intelligence, enabling executive leaders and operations directors to answer critical business questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which product categories and channels generate the highest net operating margin?&lt;/li&gt;
&lt;li&gt;How would a 5% price increase or a 10% operating cost contraction impact our EBITDA?&lt;/li&gt;
&lt;li&gt;Which customer segments yield the highest customer lifetime value (CLV) and purchase frequency?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Historically, developing executive control cockpits relied either on heavy proprietary software suites (such as Power BI, Tableau, or Qlik) or complex full-stack web applications built on React/Angular paired with Django/FastAPI microservices. Today, the Python data ecosystem provides an agile, robust, and open-source alternative: Streamlit combined with Plotly.&lt;/p&gt;

&lt;p&gt;This article details the architectural design, implementation, and automated cloud deployment of OmniAnalytics BI—an interactive executive decision support dashboard engineered to monitor revenue streams, profitability margins, customer segmentation, and financial sensitivity simulations (What-If analysis).&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Technology Benchmark: Why Streamlit Over Other BI Tools?
&lt;/h2&gt;

&lt;p&gt;The Python and R data visualization ecosystems offer several mature frameworks, each serving distinct operational requirements:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Learning Curve&lt;/th&gt;
&lt;th&gt;Interactivity Level&lt;/th&gt;
&lt;th&gt;Cloud Deployment&lt;/th&gt;
&lt;th&gt;Ideal Use Case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Streamlit&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Data Web Framework&lt;/td&gt;
&lt;td&gt;Very Low (Hours)&lt;/td&gt;
&lt;td&gt;High (Reactive State)&lt;/td&gt;
&lt;td&gt;Instant (Streamlit Cloud)&lt;/td&gt;
&lt;td&gt;Rapid prototyping, interactive executive BI dashboards, and ML applications&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Plotly Dash&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;React / Flask Framework&lt;/td&gt;
&lt;td&gt;Medium to High&lt;/td&gt;
&lt;td&gt;Very High (Full DOM Control)&lt;/td&gt;
&lt;td&gt;Requires Docker / AWS / Heroku&lt;/td&gt;
&lt;td&gt;Complex enterprise applications requiring bespoke CSS and JavaScript hooks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Shiny (R / Python)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Reactive Web Framework&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;ShinyApps.io / Posit Connect&lt;/td&gt;
&lt;td&gt;Biostatistics, actuarial modeling, and academic scientific research&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bokeh&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Browser Graphics Library&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;High (In-Browser Canvas)&lt;/td&gt;
&lt;td&gt;Bokeh Server / Tornado&lt;/td&gt;
&lt;td&gt;Streaming architectures and real-time big data canvases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Seaborn / Matplotlib&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Static Plotting Library&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;None / Minimal&lt;/td&gt;
&lt;td&gt;Static Export (PNG/PDF/SVG)&lt;/td&gt;
&lt;td&gt;Exploratory data analysis, static reports, and academic research papers&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Strategic Reasons for Choosing Streamlit
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Development Velocity:&lt;/strong&gt; Transforms analytical Python routines into responsive web applications within minutes, without writing HTML, JavaScript, or custom REST endpoints.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native Plotly Integration:&lt;/strong&gt; Provides seamless rendering of hardware-accelerated interactive charts, Pandas DataFrames, and UI input controllers (date pickers, multidimensional multi-selects, sliders).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Cloud SaaS Deployment:&lt;/strong&gt; Through Streamlit Community Cloud, continuous deployment is native: every &lt;code&gt;git push&lt;/code&gt; to the &lt;code&gt;main&lt;/code&gt; branch automatically deploys an updated production container with zero downtime.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  3. Architecture and Dashboard Modeling: OmniAnalytics BI
&lt;/h2&gt;

&lt;p&gt;The application follows a modular, high-throughput analytical architecture structured across five core analytical dimensions:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;graph TD
    A[Transactional CSV Dataset] --&amp;gt; B[Caching &amp;amp; ETL Pipeline: Pandas + st.cache_data]
    B --&amp;gt; C[Dynamic Sidebar Filters]
    C --&amp;gt; D[Real-Time Executive KPIs]
    D --&amp;gt; E1[Tab 1: Executive Overview &amp;amp; Trends]
    D --&amp;gt; E2[Tab 2: Products &amp;amp; Channel Analytics]
    D --&amp;gt; E3[Tab 3: Customer Segmentation &amp;amp; CSAT]
    D --&amp;gt; E4[Tab 4: Financial What-If Simulator]
    D --&amp;gt; E5[Tab 5: Data Explorer &amp;amp; CSV Export]&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  Core Business Metrics (KPIs)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Net Sales:&lt;/strong&gt; Gross transactional revenue net of promotional discounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operating Profit &amp;amp; Margin:&lt;/strong&gt; Net gain after subtracting Cost of Goods Sold (COGS).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Order Volume &amp;amp; Average Order Value (AOV):&lt;/strong&gt; Transaction volume and average basket size per checkout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customer Satisfaction Score (CSAT):&lt;/strong&gt; Weighted customer sentiment score on a 1.0 to 5.0 scale.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Key Implementation Highlights
&lt;/h2&gt;

&lt;h3&gt;
  
  
  4.1. High-Performance In-Memory Data Caching
&lt;/h3&gt;

&lt;p&gt;To guarantee sub-second interaction across large datasets, ingestion and datetime transformations are memoized using &lt;code&gt;@st.cache_data&lt;/code&gt;:&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;streamlit&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="nd"&gt;@st.cache_data&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;load_data&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="n"&gt;file_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dirname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__file__&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;data&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;retail_bi_dataset.csv&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;df&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_csv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Fecha&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_datetime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;df&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Fecha&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;df&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4.2. Modern UI &amp;amp; Glassmorphism Design System
&lt;/h3&gt;

&lt;p&gt;A customized CSS layer is injected directly into the application DOM, applying the modern Plus Jakarta Sans typography and glassmorphic card containers:&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="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;markdown&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
&amp;lt;style&amp;gt;
    @import url(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&amp;amp;display=swap&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;);
    html, body, [class*=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;css&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;] {
        font-family: &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Plus Jakarta Sans&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;, sans-serif;
    }
    .metric-card {
        background: #1E293B;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    .metric-title { color: #94A3B8; font-size: 0.85rem; text-transform: uppercase; font-weight: 600; }
    .metric-value { color: #F8FAFC; font-size: 1.8rem; font-weight: 800; margin: 6px 0; }
&amp;lt;/style&amp;gt;
&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unsafe_allow_html&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4.3. Financial Sensitivity Modeling ("What-If" Analysis)
&lt;/h3&gt;

&lt;p&gt;A real-time financial simulation engine empowers decision-makers to stress-test unit economics against pricing fluctuations, demand elasticity, and cost inflation:&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="n"&gt;sim_col1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sim_col2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sim_col3&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;columns&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;sim_col1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;price_delta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Price Adjustment (%):&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;sim_col2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;volume_delta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Demand Fluctuation (%):&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;sim_col3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;cost_delta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Cost Fluctuation (%):&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Real-time simulation computations
&lt;/span&gt;&lt;span class="n"&gt;sim_sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;base_sales&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;price_delta&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;volume_delta&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sim_cost&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;base_cost&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;cost_delta&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;volume_delta&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;sim_profit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sim_sales&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;sim_cost&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  5. Automated CI/CD and Cloud Deployment
&lt;/h2&gt;

&lt;p&gt;The repository adheres to contemporary software engineering and data governance standards:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Source Version Control:&lt;/strong&gt; Clean git commit history on the default &lt;code&gt;main&lt;/code&gt; branch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Continuous Integration (GitHub Actions):&lt;/strong&gt; Workflows defined in &lt;code&gt;.github/workflows/ci.yml&lt;/code&gt; validate dependency resolution, code syntax, and dataset schema on every &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;pull_request&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Continuous Deployment (Streamlit Community Cloud):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;The GitHub repository connects directly to Streamlit Community Cloud.&lt;/li&gt;
&lt;li&gt;The platform parses &lt;code&gt;requirements.txt&lt;/code&gt; and runs &lt;code&gt;app.py&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Every &lt;code&gt;git push origin main&lt;/code&gt; triggers an automated container rebuild and redeployment without service interruption.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  6. Results and Key Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agility:&lt;/strong&gt; Building an interactive, enterprise-grade decision support system was completed in hours compared to weeks with traditional web stacks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fluid User Experience:&lt;/strong&gt; Combining multi-axis dynamic filtering with Plotly provides seamless exploration from high-level portfolio KPIs down to individual transactions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Democratized Insights:&lt;/strong&gt; Cloud deployment enables cross-functional teams to access real-time dashboards securely from any modern browser or mobile device.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  7. Links and Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/FabricioRams/AG-01-Visualization-Reports-or-Dashboard" rel="noopener noreferrer"&gt;FabricioRams/AG-01-Visualization-Reports-or-Dashboard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Cloud Dashboard:&lt;/strong&gt; &lt;a href="https://omnianalytics-bi.streamlit.app/" rel="noopener noreferrer"&gt;OmniAnalytics BI on Streamlit Cloud&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>analytics</category>
      <category>datascience</category>
      <category>python</category>
    </item>
    <item>
      <title>Bridging the Gap: Integrating Automated Tests with Test Management Tools via XML</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Sat, 27 Jun 2026 16:25:36 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/bridging-the-gap-integrating-automated-tests-with-test-management-tools-via-xml-476g</link>
      <guid>https://dev.to/fabricio_ramos/bridging-the-gap-integrating-automated-tests-with-test-management-tools-via-xml-476g</guid>
      <description>&lt;h1&gt;
  
  
  Bridging the Gap: Integrating Automated Tests with Test Management Tools via XML
&lt;/h1&gt;

&lt;p&gt;Writing automated tests is only half the battle. If your QA Managers, Product Owners, and stakeholders can't easily see the results of those tests, your automation efforts lose a lot of their value. &lt;/p&gt;

&lt;p&gt;To solve this, engineering teams use &lt;strong&gt;Test Management Tools&lt;/strong&gt;. In this article, I will compare some of the top tools in the market and show you the universal method for sending automated test results to them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparing Top Test Management Tools
&lt;/h2&gt;

&lt;p&gt;While there are dozens of tools out there, here are three heavyweights:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Xray (for Jira)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Focus:&lt;/strong&gt; Native Jira integration.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Pros:&lt;/strong&gt; Requirements traceability is flawless. You can link a Jira Bug directly to a failed test run.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Cons:&lt;/strong&gt; Can be slow if you have thousands of automated tests running every hour.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Verdict:&lt;/strong&gt; Best for teams who live and breathe inside Jira.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Testomat.io
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Focus:&lt;/strong&gt; Built specifically for automated testing and BDD (Behavior-Driven Development).&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Pros:&lt;/strong&gt; Syncs seamlessly with modern frameworks like Playwright, Cypress, and Pytest. Great UI for developers.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Cons:&lt;/strong&gt; Less focus on purely manual testing.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Verdict:&lt;/strong&gt; Best for modern, engineering-heavy teams with CI/CD pipelines.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Zephyr Enterprise
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Focus:&lt;/strong&gt; Massive scale and complex enterprise environments.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Pros:&lt;/strong&gt; Can integrate multiple Jira instances, highly secure, great for regulatory compliance.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Cons:&lt;/strong&gt; Steep learning curve and very expensive.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Verdict:&lt;/strong&gt; Best for large corporations and banks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Universal Language: JUnit XML
&lt;/h2&gt;

&lt;p&gt;You might be wondering: &lt;em&gt;How do I connect my Python Pytest code to Xray or Zephyr?&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Almost every Test Management Tool on the market accepts a universal data format: &lt;strong&gt;JUnit XML&lt;/strong&gt;. Instead of writing custom API scripts for every tool, you simply tell your testing framework to generate an XML report, and the management tool imports it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Real-World Code Example
&lt;/h3&gt;

&lt;p&gt;Let's look at a practical example of a Payment Processing module in Python using &lt;code&gt;pytest&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;First, install pytest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;pytest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, we write our test cases in a file called &lt;code&gt;test_payment.py&lt;/code&gt;:&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;pytest&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_process_valid_payment&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
    Test that a payment with valid credit card details succeeds.
    &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;card_number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;4000123456789010&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

    &lt;span class="c1"&gt;# Mock logic: valid if 16 digits
&lt;/span&gt;    &lt;span class="n"&gt;is_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;card_number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;is_valid&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_process_expired_card&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
    Test that an expired card is rejected.
    &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;expiration_year&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2022&lt;/span&gt;
    &lt;span class="n"&gt;current_year&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2026&lt;/span&gt;

    &lt;span class="n"&gt;is_valid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;expiration_year&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;current_year&lt;/span&gt;

    &lt;span class="c1"&gt;# We expect this test to FAIL (because 2022 &amp;lt; 2026)
&lt;/span&gt;    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;is_valid&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Generating the Report for Management Tools
&lt;/h3&gt;

&lt;p&gt;To generate the XML file that Xray, Zephyr, or Testomat will read, we run &lt;code&gt;pytest&lt;/code&gt; with a special flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pytest test_payment.py &lt;span class="nt"&gt;--junitxml&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;results.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command runs the tests and generates a &lt;code&gt;results.xml&lt;/code&gt; file. This file contains machine-readable data about how many tests passed, how long they took, and the exact error traceback for the expired card failure. &lt;/p&gt;

&lt;p&gt;In a real CI/CD pipeline (like GitHub Actions or Jenkins), this XML file is automatically uploaded to the Test Management tool, instantly updating the QA dashboard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Public Example Repository:&lt;/strong&gt;&lt;br&gt;
You can review the full code and the generated XML file in my GitHub repository here: &lt;a href="https://github.com/Rodrig0496/U3_Article.git" rel="noopener noreferrer"&gt;https://github.com/Rodrig0496/U3_Article.git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>testing</category>
      <category>tooling</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Mastering API Automation: Testing POST and DELETE Requests with Python</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Sat, 27 Jun 2026 16:25:07 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/mastering-api-automation-testing-post-and-delete-requests-with-python-403d</link>
      <guid>https://dev.to/fabricio_ramos/mastering-api-automation-testing-post-and-delete-requests-with-python-403d</guid>
      <description>&lt;h1&gt;
  
  
  Mastering API Automation: Testing POST and DELETE Requests with Python
&lt;/h1&gt;

&lt;p&gt;In our previous discussions about API testing, we focused heavily on retrieving data using &lt;code&gt;GET&lt;/code&gt; requests. While verifying data structure is crucial, real-world applications don't just read data—they create, update, and delete it. &lt;/p&gt;

&lt;p&gt;To ensure the full lifecycle of your application's data is functioning correctly, your API testing framework must cover data mutation. In this article, we'll explore how to automate testing for &lt;code&gt;POST&lt;/code&gt; (create) and &lt;code&gt;DELETE&lt;/code&gt; (remove) endpoints using &lt;strong&gt;Python&lt;/strong&gt; and &lt;strong&gt;Pytest&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Test Mutations Differently?
&lt;/h2&gt;

&lt;p&gt;Testing a &lt;code&gt;GET&lt;/code&gt; endpoint is usually straightforward: you ask for data and check if it's there. Testing mutations involves state changes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;POST (Create):&lt;/strong&gt; You must verify not only that the server accepted your payload (usually returning a &lt;code&gt;201 Created&lt;/code&gt; status), but also that the response contains the assigned unique ID and matches the data you sent.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;DELETE (Remove):&lt;/strong&gt; You must ensure the resource is properly removed (often returning a &lt;code&gt;200 OK&lt;/code&gt; or &lt;code&gt;204 No Content&lt;/code&gt; status) without affecting other data.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Real-World Scenario: A Blog API
&lt;/h2&gt;

&lt;p&gt;Let's imagine we are testing a Blog platform's API. We need to verify that our system allows users to publish new posts and delete existing ones. We will use the public mock API &lt;code&gt;jsonplaceholder.typicode.com&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: The Setup
&lt;/h3&gt;

&lt;p&gt;Ensure you have your environment ready:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;pytest requests
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Writing the Tests
&lt;/h3&gt;

&lt;p&gt;Create a file named &lt;code&gt;test_posts_api.py&lt;/code&gt;. We will write two tests: one to create a post and one to delete it.&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;requests&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pytest&lt;/span&gt;

&lt;span class="n"&gt;BASE_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://jsonplaceholder.typicode.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_create_new_post&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
    Test that sending a valid POST request creates a new resource.
    &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="c1"&gt;# 1. Define the payload (the data we are sending)
&lt;/span&gt;    &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;title&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Automating API Tests&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;body&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;This is a great tutorial on testing.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;userId&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;# 2. Make the POST request
&lt;/span&gt;    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;BASE_URL&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;/posts&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 3. Assert Status Code for creation (201 Created)
&lt;/span&gt;    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;201&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Expected 201, but got &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

    &lt;span class="c1"&gt;# 4. Assert Response Content matches our payload
&lt;/span&gt;    &lt;span class="n"&gt;response_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;response_data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;title&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;title&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;response_data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;body&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;body&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;response_data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;userId&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;userId&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="c1"&gt;# 5. Ensure the server assigned a unique ID
&lt;/span&gt;    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;id&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;response_data&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_delete_post&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
    Test that sending a DELETE request properly removes a resource.
    &lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;post_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

    &lt;span class="c1"&gt;# 1. Make the DELETE request
&lt;/span&gt;    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;BASE_URL&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;/posts/&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;post_id&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# 2. Assert Status Code
&lt;/span&gt;    &lt;span class="c1"&gt;# JSONPlaceholder returns 200 OK for successful deletes. 
&lt;/span&gt;    &lt;span class="c1"&gt;# Real APIs might return 204 No Content.
&lt;/span&gt;    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Expected 200, but got &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

    &lt;span class="c1"&gt;# 3. Verify the response is empty
&lt;/span&gt;    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Execution
&lt;/h3&gt;

&lt;p&gt;Run your tests using the pytest command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pytest test_posts_api.py &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;============================= test session starts ==============================
test_posts_api.py::test_create_new_post PASSED                           [ 50%]
test_posts_api.py::test_delete_post PASSED                               [100%]
============================== 2 passed in 0.85s ===============================
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Best Practices for Mutation Testing
&lt;/h2&gt;

&lt;p&gt;When building these tests in a production environment, keep these tips in mind:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Test Isolation:&lt;/strong&gt; A &lt;code&gt;DELETE&lt;/code&gt; test shouldn't break a &lt;code&gt;GET&lt;/code&gt; test. Ensure your tests create their own temporary data to work with (e.g., using Pytest fixtures to setup and teardown data).&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Edge Cases:&lt;/strong&gt; What happens if you try to &lt;code&gt;POST&lt;/code&gt; a post with a missing title? What if you try to &lt;code&gt;DELETE&lt;/code&gt; a post that doesn't exist? Your framework should assert that the API returns the correct &lt;code&gt;400 Bad Request&lt;/code&gt; or &lt;code&gt;404 Not Found&lt;/code&gt; errors in these scenarios.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Headers and Auth:&lt;/strong&gt; Most &lt;code&gt;POST&lt;/code&gt; and &lt;code&gt;DELETE&lt;/code&gt; requests require authentication. Always pass the correct &lt;code&gt;Authorization&lt;/code&gt; headers.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;By incorporating &lt;code&gt;POST&lt;/code&gt; and &lt;code&gt;DELETE&lt;/code&gt; testing into your framework, you ensure that your API isn't just a static database, but a fully functioning, reliable service. Happy automating!&lt;/p&gt;

</description>
      <category>api</category>
      <category>automation</category>
      <category>python</category>
      <category>testing</category>
    </item>
    <item>
      <title>How to Talk to Any Database Using AI: Building a Text-to-SQL App</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Sat, 27 Jun 2026 04:37:09 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/how-to-talk-to-any-database-using-ai-building-a-text-to-sql-app-3e6f</link>
      <guid>https://dev.to/fabricio_ramos/how-to-talk-to-any-database-using-ai-building-a-text-to-sql-app-3e6f</guid>
      <description>&lt;p&gt;In today’s data-driven world, getting information out of a database usually requires knowing SQL. But what if you could just ask your database a question in plain English and get the answer instantly? Thanks to Large Language Models (LLMs) and Artificial Intelligence, this is no longer science fiction.&lt;/p&gt;

&lt;p&gt;In this article, I will show you a real-world example of how to build a Text-to-SQL Query Generator using Python, Streamlit, and Hugging Face.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Magic of Text-to-SQL&lt;/strong&gt;&lt;br&gt;
Text-to-SQL is a natural language processing (NLP) task where an AI model translates a human-readable question into a structured SQL query. This bridges the gap between non-technical users (like business analysts or managers) and complex databases.&lt;/p&gt;

&lt;p&gt;Instead of writing:&lt;br&gt;
&lt;code&gt;SELECT Salary FROM employees WHERE Name = 'Bob';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A user can simply ask: &lt;em&gt;"What is the salary of Bob?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building the App (Code Example)&lt;/strong&gt;&lt;br&gt;
To demonstrate this, I have created a lightweight web application. We will use Streamlit for the frontend, SQLite for a temporary local database, and the Hugging Face Inference API to access an open-source Text-to-SQL model (t5-base-finetuned-wikiSQL).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Setting up the Database&lt;/strong&gt;&lt;br&gt;
First, we create a temporary in-memory database using sqlite3 and populate it with some dummy employee data. (You can check the full source code in my GitHub repository linked below).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The Hugging Face Connection&lt;/strong&gt;&lt;br&gt;
We use a simple HTTP POST request to send our natural language question to the Hugging Face API. The model processes the text and returns the SQL equivalent.&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="n"&gt;API_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api-inference.huggingface.co/models/mrm8488/t5-base-finetuned-wikiSQL&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;generate_sql&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;inputs&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;translate English to SQL: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;question&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;API_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;generated_text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. The Streamlit Interface&lt;/strong&gt;&lt;br&gt;
With Streamlit, creating the UI takes just a few lines of code. We take the user's input, pass it to our generate_sql function, display the generated SQL on the screen, and then immediately execute that query against our SQLite database to show the results in a table!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it Yourself!&lt;/strong&gt;&lt;br&gt;
The integration of AI into database management is transforming how we interact with data, democratizing data access across entire organizations.&lt;/p&gt;

&lt;p&gt;You can find the complete, runnable code in my public repository here: &lt;a href="https://github.com/FabricioRams/Research-Team-Work-N-01-SQL-AI-Database-Solutions.git" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="https://github.com/FabricioRams/Research-Team-Work-N-01-SQL-AI-Database-Solutions.git" rel="noopener noreferrer"&gt;https://github.com/FabricioRams/Research-Team-Work-N-01-SQL-AI-Database-Solutions.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clone it, run &lt;code&gt;pip install -r requirements.txt&lt;/code&gt;, and start talking to your database today!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>sql</category>
      <category>python</category>
    </item>
    <item>
      <title>Demystifying SAST for IaC: How Does Checkov Actually Work Under the Hood?</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Tue, 21 Apr 2026 05:42:19 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/demystifying-sast-for-iac-how-does-checkov-actually-work-under-the-hood-16fk</link>
      <guid>https://dev.to/fabricio_ramos/demystifying-sast-for-iac-how-does-checkov-actually-work-under-the-hood-16fk</guid>
      <description>&lt;p&gt;&lt;strong&gt;Abstract&lt;/strong&gt;&lt;br&gt;
This article dives deep into the internal architecture of Static Application Security Testing (SAST) tools focused on Infrastructure as Code (IaC). We break down step-by-step how Checkov parses source code, builds dependency graphs, and evaluates security policies to detect complex vulnerabilities before deployment.&lt;/p&gt;

&lt;p&gt;In previous articles, we explored how to integrate tools like Checkov into our CI/CD pipelines using GitHub Actions. We know that if we feed it a Terraform or Kubernetes file, it magically returns a list of vulnerabilities.&lt;/p&gt;

&lt;p&gt;But as engineers, we don't like magic. How exactly does Checkov know that an S3 bucket is misconfigured? Does it just look for the string "public-read" using Regular Expressions (Regex)?&lt;/p&gt;

&lt;p&gt;The short answer is: no. Using Regex to analyze infrastructure would be a complete disaster due to the complex relationships between resources. Let's look at how modern Static Analysis actually works under the hood.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Static Analysis Process (Step-by-Step)&lt;/strong&gt;&lt;br&gt;
The engine powering Checkov (and most advanced SAST tools) is written in Python and operates in three main phases: Parsing, Graph Construction, and Policy Evaluation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Parsing and the AST (Abstract Syntax Tree)&lt;/strong&gt;&lt;br&gt;
Checkov's first challenge is that Infrastructure as Code comes in many "flavors": HCL (Terraform), YAML (Kubernetes/CloudFormation), JSON, etc.&lt;/p&gt;

&lt;p&gt;Checkov takes your source code and uses language-specific parsers. The goal of this parser is not to look for errors just yet, but to transform your plain text code into a standardized data structure in memory—typically a Python dictionary or an Abstract Syntax Tree (AST).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;# Original Terraform Code&lt;br&gt;
resource "aws_s3_bucket" "my_bucket" {&lt;br&gt;
bucket = "sensitive-data"&lt;br&gt;
acl = "public-read"&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;2. Resource Graph Construction (Graph Database)&lt;/strong&gt;&lt;br&gt;
This is where the tool truly shines. In the cloud, resources are almost never isolated. A Security Group connects to an EC2 instance, and that instance connects to a Database.&lt;/p&gt;

&lt;p&gt;If Checkov evaluated files line by line, it would lose all this context. To solve this, it uses a Python library called NetworkX to build a directed graph in memory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nodes:&lt;/strong&gt; Represent the resources (e.g., the S3 bucket, the IAM user).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Edges:&lt;/strong&gt; Represent the relationships between them (e.g., "User X has permissions on Bucket Y").&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Policy Evaluation&lt;/strong&gt;&lt;br&gt;
Once the code has been converted into a comprehensible graph, Checkov begins running its "Policies" against it.&lt;/p&gt;

&lt;p&gt;Policies in Checkov are small scripts written in Python (or defined in YAML). These rules scan the node attributes in the graph looking for specific risk patterns.&lt;/p&gt;

&lt;p&gt;For example, the internal logic of a Checkov policy for AWS S3 would conceptually look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhpu07vdc63q4gu4wj0g1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhpu07vdc63q4gu4wj0g1.png" alt=" " width="766" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Graph-Based Engine: Why is it crucial?&lt;/strong&gt;&lt;br&gt;
Imagine a complex scenario: You have an S3 bucket that is set to private, but in a completely different file in your project, you create an IAM policy that grants public access to that specific bucket.&lt;/p&gt;

&lt;p&gt;If Checkov used Regex or read files in isolation, it would report the bucket as secure. However, because it built a graph connecting the IAM policy to the Bucket via cross-references, the analysis engine can traverse the nodes and detect the compounded vulnerability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
SAST tools like Checkov are much more than simple linters looking for keywords. They are fully-fledged code analysis engines that build relational models of our infrastructure in memory to apply logical rules.&lt;/p&gt;

&lt;p&gt;Understanding this workflow doesn't just help you appreciate the engineering behind DevSecOps tools; it opens the door to the next level: writing your own custom Python policies to audit specific business rules your team needs to enforce.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>devops</category>
      <category>security</category>
      <category>testing</category>
    </item>
    <item>
      <title>Implementing SAST in Python: Detecting Vulnerabilities with Bandit</title>
      <dc:creator>FABRICIO FARID EDMILSON RAMOS ATAHUACHI</dc:creator>
      <pubDate>Mon, 20 Apr 2026 18:21:07 +0000</pubDate>
      <link>https://dev.to/fabricio_ramos/implementing-sast-in-python-detecting-vulnerabilities-with-bandit-19de</link>
      <guid>https://dev.to/fabricio_ramos/implementing-sast-in-python-detecting-vulnerabilities-with-bandit-19de</guid>
      <description>&lt;p&gt;&lt;strong&gt;Abstract&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This article explores the implementation of Static Application Security Testing (SAST) using Bandit for Python applications. We demonstrate how to identify common security flaws like hardcoded passwords and insecure function usage, integrating the tool into a CI/CD pipeline using GitHub Actions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Bandit?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since I needed a lightweight and fast tool for Python without the complexity of enterprise platforms, Bandit was the perfect choice. It’s an open-source tool designed to find common security issues in Python code by analyzing the AST (Abstract Syntax Tree).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Vulnerable Code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I created a sample script &lt;code&gt;app.py&lt;/code&gt; with intentional flaws:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hardcoded secrets&lt;/strong&gt;: Storing passwords in plain text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Insecure Deserialization&lt;/strong&gt;: Using functions that could lead to Remote Code Execution (RCE).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Local Execution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To run it locally, I used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;bandit
bandit app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The image below demonstrates the local execution of Bandit. As shown, the tool scanned 6 lines of code and identified 3 security issues: two of Low severity (importing the pickle module and a hardcoded password string) and one of Medium severity (using pickle.loads for deserialization). This immediate feedback allows developers to fix vulnerabilities during the development phase, long before the code is merged.&lt;br&gt;
&lt;em&gt;"Figure 1: Local Bandit Scan Results"&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6aoiez3668yr070kp0f8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6aoiez3668yr070kp0f8.png" alt="VSCode Results" width="765" height="875"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automation with GitHub Actions&lt;/strong&gt;&lt;br&gt;
To comply with modern DevSecOps practices, I automated the scan. Every time I push code, GitHub Actions runs Bandit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;YAML&lt;/strong&gt;&lt;br&gt;
My workflow configuration&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Figure 2: Yml configuration"&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnyenkr32d0wf3x3dnpm2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnyenkr32d0wf3x3dnpm2.png" alt="Yml configuration" width="413" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This image displays the output of the automated security pipeline. By integrating Bandit into GitHub Actions, the scan runs automatically on every 'push'. As observed in the logs, the process completed with an exit code 1, effectively breaking the build. This is a crucial security gate: it prevents code with known vulnerabilities (like the insecure yaml.load call shown in line 13) from moving forward in the development lifecycle. The report highlights a Medium severity issue with High confidence, providing the exact CWE reference for remediation.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Figure 3: Automated SAST Scan via GitHub Actions"&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw46usi6cunx2hgptmbog.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw46usi6cunx2hgptmbog.png" alt="Github actions working" width="800" height="626"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Using SAST tools like Bandit is a fundamental step in the SDLC to catch "low-hanging fruit" vulnerabilities before they reach production.&lt;/p&gt;

</description>
      <category>python</category>
      <category>security</category>
      <category>testing</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
