---
title: "Discussion on \"Build a Multi-Country Tax Research Pipeline with Python and Version Control\" | Hashnode"
description: "Discussion on \"Build a Multi-Country Tax Research Pipeline with Python and Version Control\". A reproducible workflow for facts, source tracking, freshness checks, treaty overrides, and human review."
url: "https://hashnode.com/posts/multi-country-tax-research-pipeline-python/6abc04d47e953f4df71f8e65"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a Multi-Country Tax Research Pipeline with Python and Version Control](https://spade-tax-compliance.hashnode.dev/multi-country-tax-research-pipeline-python?utm_source=hashnode&utm_medium=feed)

A reproducible workflow for facts, source tracking, freshness checks, treaty overrides, and human review.

Sep 29 · 5 min read · spade-tax-compliance.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#data-engineering](https://hashnode.com/tag/data-engineering)
-   [#automation](https://hashnode.com/tag/automation)
-   [#git](https://hashnode.com/tag/git)
-   [#compliance](https://hashnode.com/tag/compliance)

## Written by

[Karan Puri](https://hashnode.com/@karan67)

@karan67 · Bangalore, India

  
[View profile](https://hashnode.com/@karan67)

## Responses 1

Markdown supported · ⌘↵ to post

[TrueNorth API](https://hashnode.com/@m1s4gh)

[Oct 7](https://hashnode.com/posts/multi-country-tax-research-pipeline-python/6abc04d47e953f4df71f8e65/comment/6ac68e5bf0208c9b535af3ea)

Canada is a perfect example of the problem you are describing. There is no single Canada rate to look up. Ontario charges 13 percent HST, Alberta charges 5 percent GST only, and BC splits it into 5 percent GST plus 7 percent PST. Quebec is where most hand rolled logic quietly breaks, because QST is calculated on the pre GST price, so a $100 sale comes to $114.98, and any code that just applies rates one after another on a running total gets it wrong. Then product category changes the answer again, in Manitoba groceries are taxed differently from general merchandise. Maintaining a research database across all of that goes stale fast, which is exactly why we built TrueNorth API. One call covers all 13 provinces and territories across 41 product categories, so a pipeline like this one can ask for the correct total instead of maintaining the rules itself.
