Make IMPORT Great Again!
Project description
This repo is inspired by the hxu296/tariff package.
The key difference between acc-tariff and tariff is that the import tariff at execution time will accumulate across submodules!
NOTE: This repo is for educational purposes only and is not designed to run in any production environment.
Install
$ pip install acc-tariff
or uv
$ uv sync
Example
import acc_tariff
acc_tariff.set_tarrif("numpy", 100)
acc_tariff.set_tarrif("numpy.fft", 100000)
import numpy # 100% slower
import numpy.fft # 100100% slower
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acc_tariff-1.0.3.tar.gz.
File metadata
- Download URL: acc_tariff-1.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44243eda954362ec29c3d60be0819c27229318326e2d7349c0c54c0c9816c6ba
|
|
| MD5 |
fb0d3a8ac45e4d636e29f5e095f7149a
|
|
| BLAKE2b-256 |
83317e66212bcf40733ae61aed3462b56cb749ee43ee1cbefdd8985648d59111
|
File details
Details for the file acc_tariff-1.0.3-py3-none-any.whl.
File metadata
- Download URL: acc_tariff-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb32a322a7afd51b0e11ff4ab5dcd8b4d4f0493cdbbe2d43c5084fa106d4599d
|
|
| MD5 |
ba82e184785092cf25ad1b8a91336736
|
|
| BLAKE2b-256 |
bf6afef32be772d861e24cbf4fac464742c531b7760fa7df0b2f316ff2d0a791
|