Skip to main content

Make importing great again! A parody package that imposes tariffs on Python imports.

Project description

👊 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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tariff-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

tariff-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tariff-1.0.0.tar.gz.

File metadata

  • Download URL: tariff-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for tariff-1.0.0.tar.gz
Algorithm Hash digest
SHA256 24a8d49034398a7820d6f9eb1d345476f0d0bfcb67f75ce266284943208596cd
MD5 46117ae6651d1a90855555f1cb629b38
BLAKE2b-256 6e868a6d8b6c88cbfa42a7f20d7a0bf166ec621e4b0d4f89b2910a539452d587

See more details on using hashes here.

File details

Details for the file tariff-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tariff-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for tariff-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20d738a789f96146ae49de4fffc000ea9942bd4335f0cdc336d2c824e6aa063b
MD5 eb211c83b4fd4814b8a15f0a92ed3dab
BLAKE2b-256 8eae6f57db1138cfce911d19113e8d931a739858e0116ca3a2a3e391748cb5ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page