Skip to main content

👊 TARIFF 🔥

The GREATEST, most TREMENDOUS Python package that makes importing great again!

About

TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!

Installation

pip install tariff

Usage

import tariff

# Set your tariff rates (package_name: percentage)
tariff.set({
    "numpy": 50,     # 50% tariff on numpy
    "pandas": 200,   # 200% tariff on pandas
    "requests": 150  # 150% tariff on requests
})

# Now when you import these packages, they'll be TARIFFED!
import numpy   # This will be 50% slower
import pandas  # This will be 200% slower

How It Works

When you import a package that has a tariff:

  1. TARIFF measures how long the original import takes
  2. TARIFF makes the import take longer based on your tariff percentage
  3. TARIFF announces the tariff with a TREMENDOUS message

Example Output

JUST IMPOSED a 50% TARIFF on numpy! Original import took 45000 us, now takes 67500 us. American packages are WINNING AGAIN! #MIPA

Why TARIFF?

Because foreign packages have been STEALING our CPU cycles for TOO LONG! It's time to put AMERICA FIRST and make importing FAIR and BALANCED again!

License

This is a parody package. Use at your own risk. MAKE IMPORTING GREAT AGAIN!

Release files for tariff 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tariff 1.0.0
File Size Uploaded
tariff-1.0.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tariff 1.0.0
File Interpreter ABI Platform
tariff-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / tariff-1.0.0.tar.gz

Download URL tariff-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
24a8d49034398a7820d6f9eb1d345476f0d0bfcb67f75ce266284943208596cd
BLAKE2b-256 checksum
How to use checksums
6e868a6d8b6c88cbfa42a7f20d7a0bf166ec621e4b0d4f89b2910a539452d587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / tariff-1.0.0-py3-none-any.whl

Download URL tariff-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20d738a789f96146ae49de4fffc000ea9942bd4335f0cdc336d2c824e6aa063b
BLAKE2b-256 checksum
How to use checksums
8eae6f57db1138cfce911d19113e8d931a739858e0116ca3a2a3e391748cb5ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page