[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72346":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},72346,"tariff","hxu296\u002Ftariff","hxu296","The official repository for tariff","https:\u002F\u002Fpypi.org\u002Fproject\u002Ftariff\u002F",null,"Python",3121,41,9,60,0,26.87,"MIT License",false,"main",true,[],"2026-06-12 02:03:02","# 👊 TARIFF 🔥\n\n\nThe GREATEST, most TREMENDOUS Python package that makes importing great again!\n\n![MIGA](https:\u002F\u002Fi.imgur.com\u002F2OoRBu6.png)\n\n## About\n\nTARIFF 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!\n\n![meme](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fc0b37be1-28ca-40d3-9234-cbdb3074c8eb)\n\n## Installation\n\n```bash\npip install tariff\n```\n\n## Usage\n\n```python\nimport tariff\n\n# Set your tariff rates (package_name: percentage)\ntariff.set({\n    \"numpy\": 50,     # 50% tariff on numpy\n    \"pandas\": 200,   # 200% tariff on pandas\n    \"requests\": 150  # 150% tariff on requests\n})\n\n# Now when you import these packages, they'll be TARIFFED!\nimport numpy   # This will be 50% slower\nimport pandas  # This will be 200% slower\n```\n\n## How It Works\n\nWhen you import a package that has a tariff:\n1. TARIFF measures how long the original import takes\n2. TARIFF makes the import take longer based on your tariff percentage\n3. TARIFF announces the tariff with a TREMENDOUS message\n\n## Example Output\n\n```\nJUST IMPOSED a 50% TARIFF on numpy! Original import took 45000 us, now takes 67500 us. American packages are WINNING AGAIN! #MIGA\n```\n\n## Why TARIFF?\n\nBecause 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!\n\n## License\n\nThis is a parody package. Use at your own risk. MAKE IMPORTING GREAT AGAIN! \n","TARIFF 是一个用 Python 编写的工具，旨在通过增加特定包的导入时间来模拟对这些包施加“关税”。其核心功能是允许用户为指定的 Python 包设置百分比形式的“关税”，使得这些包在被导入时会变得相应地更慢。例如，可以将 numpy 的导入速度减慢 50% 或 pandas 的导入速度减慢 200%。该工具主要用于教育或娱乐目的，通过幽默的方式提醒开发者注意代码中对外部库的依赖情况，并非实际开发中的推荐实践。项目采用 MIT 许可证发布，适合那些希望以一种有趣的方式来探讨软件依赖关系及其性能影响的场景使用。",2,"2026-06-11 03:41:27","high_star"]