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
Release files for acc-tariff 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| acc_tariff-1.0.3.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acc_tariff-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / acc_tariff-1.0.3.tar.gz
| Download URL | acc_tariff-1.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44243eda954362ec29c3d60be0819c27229318326e2d7349c0c54c0c9816c6ba
|
|
BLAKE2b-256 checksum How to use checksums |
83317e66212bcf40733ae61aed3462b56cb749ee43ee1cbefdd8985648d59111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / acc_tariff-1.0.3-py3-none-any.whl
| Download URL | acc_tariff-1.0.3-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb32a322a7afd51b0e11ff4ab5dcd8b4d4f0493cdbbe2d43c5084fa106d4599d
|
|
BLAKE2b-256 checksum How to use checksums |
bf6afef32be772d861e24cbf4fac464742c531b7760fa7df0b2f316ff2d0a791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|