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.2.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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file acc_tariff-1.0.2.tar.gz.

File metadata

  • Download URL: acc_tariff-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 54b68b6a732941d75b353044287154e6f6939a7e31816a2af47f659b27997ccd
MD5 d72018f92b8996620b7f970b8751c5ef
BLAKE2b-256 90bb8b1a7f5072dd331788827678c86ddd4744e4ef725da7c8a4dec4fa8ab281

See more details on using hashes here.

File details

Details for the file acc_tariff-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: acc_tariff-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8149a8b63b2637218ae9f27e53dc4655cfcd303a8917a7701456fe5887ac2da
MD5 3210f07a5b3840d0b0c1108eb7db43b3
BLAKE2b-256 7b167639732528ce1cf10153fe04061f2707127e1e5e9e7942785577d227b3a0

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