https://github.com/hxu296/tariff

The official repository for tariff

https://github.com/hxu296/tariff

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

The official repository for tariff

Basic Info
Statistics
  • Stars: 3,128
  • Watchers: 10
  • Forks: 42
  • Open Issues: 83
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago

https://github.com/hxu296/tariff/blob/main/

#  TARIFF 


The GREATEST, most TREMENDOUS Python package that makes importing great again!

![MIGA](https://i.imgur.com/2OoRBu6.png)

## About

TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!

![meme](https://github.com/user-attachments/assets/c0b37be1-28ca-40d3-9234-cbdb3074c8eb)

## Installation

```bash
pip install tariff
```

## Usage

```python
import tariff

# Set your tariff rates (package_name: percentage)
tariff.set({
    "numpy": 50,     # 50% tariff on numpy
    "pandas": 200,   # 200% tariff on pandas
    "requests": 150  # 150% tariff on requests
})

# Now when you import these packages, they'll be TARIFFED!
import numpy   # This will be 50% slower
import pandas  # This will be 200% slower
```

## How It Works

When you import a package that has a tariff:
1. TARIFF measures how long the original import takes
2. TARIFF makes the import take longer based on your tariff percentage
3. TARIFF announces the tariff with a TREMENDOUS message

## Example Output

```
JUST IMPOSED a 50% TARIFF on numpy! Original import took 45000 us, now takes 67500 us. American packages are WINNING AGAIN! #MIGA
```

## Why TARIFF?

Because foreign packages have been STEALING our CPU cycles for TOO LONG! It's time to put AMERICA FIRST and make importing FAIR and BALANCED again!

## License

This is a parody package. Use at your own risk. MAKE IMPORTING GREAT AGAIN! 

Owner

  • Name: Huan Xu
  • Login: hxu296
  • Kind: user
  • Location: Madison, WI
  • Company: UW-Madison

Senior @ UW-Madison majoring in CS, Math & Stat. Interested in accessible ML inference. Building www.baynana.co, an AI-powered resume supercharger.

GitHub Events

Total
  • Issues event: 63
  • Watch event: 2,805
  • Issue comment event: 63
  • Push event: 2
  • Pull request review comment event: 4
  • Pull request review event: 15
  • Pull request event: 25
  • Fork event: 46
  • Create event: 2
Last Year
  • Issues event: 63
  • Watch event: 2,805
  • Issue comment event: 63
  • Push event: 2
  • Pull request review comment event: 4
  • Pull request review event: 15
  • Pull request event: 25
  • Fork event: 46
  • Create event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 5
  • Total Committers: 4
  • Avg Commits per committer: 1.25
  • Development Distribution Score (DDS): 0.6
Past Year
  • Commits: 5
  • Committers: 4
  • Avg Commits per committer: 1.25
  • Development Distribution Score (DDS): 0.6
Top Committers
Name Email Commits
Huan Xu h****6@w****u 2
Jacek Olczyk j****k@g****m 1
Miskler 6****r@u****m 1
me 7****H@u****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 65
  • Total pull requests: 45
  • Average time to close issues: 7 days
  • Average time to close pull requests: 22 days
  • Total issue authors: 61
  • Total pull request authors: 26
  • Average comments per issue: 0.92
  • Average comments per pull request: 0.27
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 65
  • Pull requests: 45
  • Average time to close issues: 7 days
  • Average time to close pull requests: 22 days
  • Issue authors: 61
  • Pull request authors: 26
  • Average comments per issue: 0.92
  • Average comments per pull request: 0.27
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • EgorBu (2)
  • ethanannane (2)
  • ekoutanov (2)
  • juncoflockleader (2)
  • patrickvonplaten (1)
  • 0xsdeo (1)
  • rockdreamer (1)
  • younik (1)
  • yuanmingqi (1)
  • Edenzzzz (1)
  • ybc-alkaid (1)
  • IsaacParker30 (1)
  • Bgs4269 (1)
  • pu-007 (1)
  • inspirewind (1)
Pull Request Authors
  • Dosclic98 (2)
  • white1367 (2)
  • Trogluddite (2)
  • LRoInT (2)
  • adk-swisstopo (2)
  • BasAmmerlaan (2)
  • Miskler (2)
  • guylapid (2)
  • DjaouadNM (2)
  • howardhsu123 (2)
  • sunoc (2)
  • Joald (2)
  • eterna2 (2)
  • kpochwala (2)
  • ivanrj7j (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 309 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: tariff

Make importing great again! A parody package that imposes tariffs on Python imports.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 309 Last month
Rankings
Dependent packages count: 9.3%
Average: 30.9%
Dependent repos count: 52.5%
Maintainers (1)
Last synced: 7 months ago