TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tariff: A Python package that imposes tariffs on Python imports

221 pointsby khaledhabout 1 month ago

12 comments

cosmicgadgetabout 1 month ago
I am going to be so much more productive now that I'm incentivized to code everything from scratch.
graemepabout 1 month ago
I was hoping this would be a way of penalising developers who add ridiculous numbers of dependencies.
评论 #43687963 未加载
Lvl999Noobabout 1 month ago
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.<p>A best effort is fine! (Actually, mid effort is probably better; more true to the source)
elashriabout 1 month ago
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.
评论 #43688686 未加载
3eb7988a1663about 1 month ago
The issue tracker + pull requests are also worth browsing: <a href="https:&#x2F;&#x2F;github.com&#x2F;hxu296&#x2F;tariff&#x2F;issues">https:&#x2F;&#x2F;github.com&#x2F;hxu296&#x2F;tariff&#x2F;issues</a>
评论 #43690869 未加载
JodieBenitezabout 1 month ago
I don&#x27;t have a horse in the white house race. I&#x27;m not even american, so my voice don&#x27;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.
评论 #43691336 未加载
评论 #43693244 未加载
评论 #43690095 未加载
评论 #43690217 未加载
评论 #43689581 未加载
评论 #43693846 未加载
评论 #43690010 未加载
Imustaskforhelpabout 1 month ago
oh boy I was thinking of doing something like this for the lolz but I genuinely didn&#x27;t knew what it meant to put tariff in programming.<p>The author however has it figured out.<p>What an amazing job to create something so mematic I think. A perfect blend of politics and programming.
hughdbrownabout 1 month ago
Because those packages are cheating us.
norskeldabout 1 month ago
<i>roll-safe.jpg</i><p><pre><code> tariff.set({ &quot;numpy&quot;: -100 })</code></pre>
akkartikabout 1 month ago
What is #mipa?
评论 #43686402 未加载
评论 #43687109 未加载
评论 #43686438 未加载
moktonarabout 1 month ago
Well.. this might not be as silly as it seems..
touristtam30 days ago
I feel I need this for node....