Skip to main content

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

acc_tariff-1.0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acc_tariff-1.0.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for acc_tariff-1.0.3.tar.gz
Algorithm Hash digest
SHA256 44243eda954362ec29c3d60be0819c27229318326e2d7349c0c54c0c9816c6ba
MD5 fb0d3a8ac45e4d636e29f5e095f7149a
BLAKE2b-256 83317e66212bcf40733ae61aed3462b56cb749ee43ee1cbefdd8985648d59111

See more details on using hashes here.

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

Hashes for acc_tariff-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb32a322a7afd51b0e11ff4ab5dcd8b4d4f0493cdbbe2d43c5084fa106d4599d
MD5 ba82e184785092cf25ad1b8a91336736
BLAKE2b-256 bf6afef32be772d861e24cbf4fac464742c531b7760fa7df0b2f316ff2d0a791

See more details on using hashes here.

Supported by

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