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:
- TARIFF measures how long the original import takes
- TARIFF makes the import take longer based on your tariff percentage
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a8d49034398a7820d6f9eb1d345476f0d0bfcb67f75ce266284943208596cd |
|
MD5 | 46117ae6651d1a90855555f1cb629b38 |
|
BLAKE2b-256 | 6e868a6d8b6c88cbfa42a7f20d7a0bf166ec621e4b0d4f89b2910a539452d587 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d738a789f96146ae49de4fffc000ea9942bd4335f0cdc336d2c824e6aa063b |
|
MD5 | eb211c83b4fd4814b8a15f0a92ed3dab |
|
BLAKE2b-256 | 8eae6f57db1138cfce911d19113e8d931a739858e0116ca3a2a3e391748cb5ff |