Tariff: A Python package that imposes tariffs on Python imports

by khaledhon 4/14/2025, 2:32 PMwith 29 comments

by cosmicgadgeton 4/15/2025, 2:26 AM

I am going to be so much more productive now that I'm incentivized to code everything from scratch.

by graemepon 4/14/2025, 9:54 PM

I was hoping this would be a way of penalising developers who add ridiculous numbers of dependencies.

by Lvl999Noobon 4/15/2025, 1:51 PM

Feature request! Could this automatically figure out which country the package is from, then impose the at-that-time current tariff? And maybe work out whether the dev is in USA or outside.

A best effort is fine! (Actually, mid effort is probably better; more true to the source)

by elashrion 4/15/2025, 2:21 AM

There should be a method to impose base tarrifs of 10% by default on all packages. Even if you are not importing non-existent packages from the penguin Islands.

by 3eb7988a1663on 4/15/2025, 1:11 AM

The issue tracker + pull requests are also worth browsing: https://github.com/hxu296/tariff/issues

by JodieBenitezon 4/15/2025, 6:04 AM

I don't have a horse in the white house race. I'm not even american, so my voice don't count here. But I wish developers would refrain from using the languages tooling to voice political opinions. At least this package I can ignore... but the last time I used npm my terminal looked like both a blend of a protest march and a craigslist page, completely drowning the relevant informations.

by Imustaskforhelpon 4/14/2025, 7:54 PM

oh boy I was thinking of doing something like this for the lolz but I genuinely didn't knew what it meant to put tariff in programming.

The author however has it figured out.

What an amazing job to create something so mematic I think. A perfect blend of politics and programming.

by hughdbrownon 4/14/2025, 10:54 PM

Because those packages are cheating us.

by norskeldon 4/15/2025, 9:58 AM

roll-safe.jpg

  tariff.set({
    "numpy": -100
  })

by akkartikon 4/14/2025, 8:16 PM

What is #mipa?

by moktonaron 4/15/2025, 7:31 AM

Well.. this might not be as silly as it seems..

by touristtamon 4/15/2025, 5:54 PM

I feel I need this for node....