Skip to main content

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

Metadata

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)

Source distribution for acc-tariff 1.0.3
File Size Uploaded Provenance Actions
acc_tariff-1.0.3.tar.gz 2.6 kB Without provenance Details for acc_tariff-1.0.3.tar.gz

Built distribution (wheel)

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

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

Security for acc-tariff 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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