<?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: OmUniyal</title>
    <description>The latest articles on DEV Community by OmUniyal (@omuniyal).</description>
    <link>https://dev.to/omuniyal</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%2F4069467%2Fd426d09b-7ff0-4d89-890a-a0f071b5353c.jpg</url>
      <title>DEV Community: OmUniyal</title>
      <link>https://dev.to/omuniyal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omuniyal"/>
    <language>en</language>
    <item>
      <title>I built a terminal SQL workspace for CSV, Parquet, PSV and JSON — and it catches bad data automatically</title>
      <dc:creator>OmUniyal</dc:creator>
      <pubDate>Mon, 24 Aug 2026 03:37:20 +0000</pubDate>
      <link>https://dev.to/omuniyal/i-built-a-terminal-sql-workspace-for-csv-files-and-made-it-catch-bad-data-automatically-mpl</link>
      <guid>https://dev.to/omuniyal/i-built-a-terminal-sql-workspace-for-csv-files-and-made-it-catch-bad-data-automatically-mpl</guid>
      <description>&lt;p&gt;Every time I get a new data file, I do the same three things.&lt;/p&gt;

&lt;p&gt;Open it in Excel to get a feel for it. Write a quick pandas snippet to answer one question. Notice halfway through that a column has garbage values I wasn't expecting.&lt;/p&gt;

&lt;p&gt;The notebook is already open, the virtual environment is already running, and I've already spent ten minutes on something that should have taken two.&lt;/p&gt;

&lt;p&gt;I wanted something faster. Type a command, load a file, write SQL, done. No notebook, no imports, no setup.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;duckboard&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;duckboard&lt;/code&gt; is a file-first local SQL workspace powered by DuckDB. Load CSV, PSV, Parquet, or JSON files by name, query them with plain SQL, export results — all from the terminal.&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;duckboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start a session:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;duckboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Load a file and query it immediately:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:load sales.csv as sales
&lt;span class="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;SELECT region, SUM&lt;span class="o"&gt;(&lt;/span&gt;amount&lt;span class="o"&gt;)&lt;/span&gt; FROM sales GROUP BY 1&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="go"&gt;┌────────┬─────────────┐
│ region │ sum(amount) │
├────────┼─────────────┤
│ eu     │      500.25 │
│ us     │      430.50 │
└────────┴─────────────┘
(2 rows)
&lt;/span&gt;&lt;span class="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:save results.csv
&lt;span class="go"&gt;Saved 2 rows to results.csv
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Files are registered as DuckDB views — never copied into a database. Load once, query as many times as you want. Parquet and JSON work exactly the same way — &lt;code&gt;:load data.parquet as t&lt;/code&gt; just works.&lt;/p&gt;




&lt;h2&gt;
  
  
  The part I didn't plan: automatic validation
&lt;/h2&gt;

&lt;p&gt;While testing duckboard, I loaded a real file from work. One of the rows had a number in the &lt;code&gt;gender&lt;/code&gt; column — clearly a data entry error. DuckDB loaded it fine. I only noticed because I happened to run a GROUP BY on that column.&lt;/p&gt;

&lt;p&gt;That made me think: what if duckboard flagged this automatically?&lt;/p&gt;

&lt;p&gt;So I added validation on load. When you load a CSV or PSV file, duckboard scans &lt;strong&gt;every row&lt;/strong&gt; and checks for two things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Structural errors&lt;/strong&gt; — rows whose field count doesn't match the header. A trailing comma, a missing value, a malformed export. This is the most common real-world problem — data in fields containing unquoted commas causes the row to look like it has more columns than it does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Type anomalies&lt;/strong&gt; — rows where a numeric value appears in a predominantly string column. A number in a name field. A code in a date field.&lt;/p&gt;

&lt;p&gt;Both types get stored in a &lt;code&gt;_errors_{name}&lt;/code&gt; table for the session:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:load customers.csv as customers
&lt;span class="go"&gt;Loaded 'customers' from customers.csv  (csv)
  1 validation error(s) found.
  → :export_errors customers  to inspect  |  :export_clean customers  for clean rows

&lt;/span&gt;&lt;span class="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;SELECT &lt;span class="k"&gt;*&lt;/span&gt; FROM _errors_customers&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="go"&gt;┌────────────┬──────────┬──────────────┬─────────────┬────────────────────────────────────────┐
│ row_number │ raw_line │ error_type   │ column_name │ reason                                 │
├────────────┼──────────┼──────────────┼─────────────┼────────────────────────────────────────┤
│          5 │ NULL     │ type_anomaly │ gender      │ column gender: expected non-numeric,   │
│            │          │              │             │ got '42'                               │
└────────────┴──────────┴──────────────┴─────────────┴────────────────────────────────────────┘
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's also a residual cross-check: after loading, duckboard compares the raw line count of the file against what DuckDB actually loaded. If DuckDB silently dropped rows for reasons the validator didn't catch — encoding issues, embedded nulls, type coercion — you get a warning with the exact counts so you know something is off even if you don't know why yet.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;:tables&lt;/code&gt; command shows which tables have issues at a glance:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:tables
&lt;span class="go"&gt;┌───────────┬────────┬───────────────┬────────────┐
│ name      │ format │ path          │ errors     │
├───────────┼────────┼───────────────┼────────────┤
│ customers │ csv    │ customers.csv │ [!1]       │
│ events    │ parquet│ events.parquet│ [!?]       │
│ orders    │ csv    │ orders.csv    │ ok         │
└───────────┴────────┴───────────────┴────────────┘
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;[!1]&lt;/code&gt; means one known error in the error table. &lt;code&gt;[!?]&lt;/code&gt; means rows were dropped by DuckDB for an unknown reason — something to investigate. Once you've reviewed, export just the clean rows:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:export_clean customers clean_customers.csv
&lt;span class="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:export_errors customers bad_rows.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Wide tables and vertical output
&lt;/h2&gt;

&lt;p&gt;Results auto-truncate to fit your terminal width — columns get proportionally shortened with &lt;code&gt;…&lt;/code&gt; rather than overflowing. For very wide rows, vertical mode shows one field per line:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;SELECT &lt;span class="k"&gt;*&lt;/span&gt; FROM orders WHERE &lt;span class="nb"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 1&lt;span class="se"&gt;\G&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="go"&gt;*************************** 1. row ***************************
        id: 1
  customer: Alice
   revenue: 12345.67

(1 row)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use an inline hint to cap how many rows display vertically without changing the underlying 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="cm"&gt;/*+ vertical_result(5) */&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  A few other commands worth knowing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;No-header files&lt;/strong&gt; — some exports don't include a header row. Pass &lt;code&gt;--no-header&lt;/code&gt; and duckboard will prompt you for column names or auto-generate them:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:load dump.csv as dump &lt;span class="nt"&gt;--no-header&lt;/span&gt;
&lt;span class="go"&gt;Enter column names (comma-separated) or press Enter for auto [col1, col2, col3]:
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Unload everything at once&lt;/strong&gt; — when you're done exploring a set of files:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:unload all
&lt;span class="go"&gt;Unloaded 4 table(s): customers, events, orders, products.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Rename a column&lt;/strong&gt; without reloading the file:&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="gp"&gt;duckboard&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;:rename_column sales cust_id customer_id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Tab autocomplete&lt;/strong&gt; — commands, table names, file paths, and SQL keywords all complete on Tab. On Windows, install the readline extra:&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;duckboard[readline]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Multi-line SQL&lt;/strong&gt; works naturally — statements execute on semicolon:&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="n"&gt;duckboard&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;SELECT&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;-&amp;gt;&lt;/span&gt;   &lt;span class="k"&gt;COUNT&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="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;   &lt;span class="k"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&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;total&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Why not just use DuckDB directly?
&lt;/h2&gt;

&lt;p&gt;You can — DuckDB has its own CLI. duckboard wraps it with a workflow built around files: named tables, validation on load, save/export commands, and a session that remembers what you've loaded. DuckDB's CLI won't tell you a number turned up in your gender column. That's the differentiator.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where to find it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PyPI: &lt;a href="https://pypi.org/project/duckboard" rel="noopener noreferrer"&gt;https://pypi.org/project/duckboard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/OmUniyal/duckboard" rel="noopener noreferrer"&gt;https://github.com/OmUniyal/duckboard&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's at v0.3.1 — 105 tests, available now. If you work with structured files — CSV, Parquet, PSV, or JSON — and want something faster than spinning up a notebook, give it a try. Issues and feedback welcome.&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>dataengineering</category>
      <category>beginners</category>
    </item>
    <item>
      <title>I built a Python package to diff large data files — here's why existing tools weren't enough</title>
      <dc:creator>OmUniyal</dc:creator>
      <pubDate>Sun, 09 Aug 2026 05:05:54 +0000</pubDate>
      <link>https://dev.to/omuniyal/i-built-a-python-package-to-diff-large-data-files-heres-why-existing-tools-werent-enough-199g</link>
      <guid>https://dev.to/omuniyal/i-built-a-python-package-to-diff-large-data-files-heres-why-existing-tools-werent-enough-199g</guid>
      <description>&lt;p&gt;Every few months at work I run into the same problem.&lt;/p&gt;

&lt;p&gt;Two systems are supposed to produce identical data exports. A CSV from the old pipeline, a CSV from the new one. Simple enough to check — until the file has 500,000 rows, three sources to compare instead of two, and columns that were renamed somewhere along the way.&lt;/p&gt;

&lt;p&gt;The usual tools fall apart fast:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Excel&lt;/strong&gt; — opens maybe 100k rows before giving up&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;diff / fc&lt;/strong&gt; — order-dependent, one mismatch per line, useless for structured data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pandas&lt;/strong&gt; — fine for two files that fit in memory, painful for anything larger, no built-in N-way support&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom scripts&lt;/strong&gt; — I've written three. None of them were reusable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built &lt;strong&gt;duckdiff&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;duckdiff&lt;/code&gt; is a Python package for N-way, order-independent comparison of large structured files — CSV, TSV, and Parquet. It's powered by DuckDB, which means comparisons stream off disk and aren't bounded by RAM.&lt;/p&gt;

&lt;p&gt;Install it:&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;duckdiff
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compare two files from the command line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;duckdiff compare &lt;span class="nv"&gt;old&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;export_v1.csv &lt;span class="nv"&gt;new&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;export_v2.csv &lt;span class="nt"&gt;--key&lt;/span&gt; transaction_id
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Sources:
  old: 547,823 rows, 14 columns
  new: 547,823 rows, 14 columns

Matched:     541,200
Mismatched:  6,123
Only in old: 500
Only in new: 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not sure which columns to use as &lt;code&gt;--key&lt;/code&gt;? There's a subcommand for that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;duckdiff keys &lt;span class="nv"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;export_v1.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It scans the file and tells you which column combinations uniquely identify each row — printing results as it goes so you're not staring at a blank screen:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Key column suggestions for 'a':

  ✓  transaction_id  (unique)

  Suggested: duckdiff compare ... --key "transaction_id"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  A few things that make it different
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;N-way comparison.&lt;/strong&gt; Compare 2, 3, or 20 sources in one pass. Not N pairwise diffs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Order-independent.&lt;/strong&gt; Rows don't need to be sorted. DuckDB handles it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fuzzy column mapping.&lt;/strong&gt; If the new pipeline renamed &lt;code&gt;cust_id&lt;/code&gt; to &lt;code&gt;customer_id&lt;/code&gt;, duckdiff can suggest a mapping — but never applies one silently. You opt in explicitly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schema flexibility.&lt;/strong&gt; If sources don't share all columns, &lt;code&gt;--auto-intersect&lt;/code&gt; compares only the shared ones and tells you what was dropped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pre-flight dry-run.&lt;/strong&gt; &lt;code&gt;--dry-run&lt;/code&gt; checks schema compatibility and file sizes without scanning a single row. Useful before running a comparison on a large file.&lt;/p&gt;




&lt;h2&gt;
  
  
  Python API
&lt;/h2&gt;

&lt;p&gt;The CLI is a thin wrapper around a clean Python API:&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;from&lt;/span&gt; &lt;span class="n"&gt;duckdiff&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ComparisonSession&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ComparisonConfig&lt;/span&gt;

&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ComparisonConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key_columns&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;transaction_id&lt;/span&gt;&lt;span class="sh"&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;ComparisonSession&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;config&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;session&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_source&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;old&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;export_v1.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;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_source&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;new&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;export_v2.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;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compare&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;matched_row_count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mismatched_row_count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;only_in&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Where to find it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PyPI: &lt;a href="https://pypi.org/project/duckdiff" rel="noopener noreferrer"&gt;https://pypi.org/project/duckdiff&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/OmUniyal/duckdiff" rel="noopener noreferrer"&gt;https://github.com/OmUniyal/duckdiff&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's at v0.1.0 — early, but tested (161 tests) and usable. Feedback and contributions are welcome — feel free to open an issue or star the repo on GitHub&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
