A utterly useless package that imports everything for you. Now with top 1000 PyPI packages.
Project description
💩 a-piece-of-shit
一個沒什麼屁用的 Python package。
這是什麼?
這是一個會拉 100+ 個 dependency 的 Python package,唯一的功能是幫你一次 import 所有東西。
安裝完大概會吃掉你 5GB 的硬碟空間和 3GB 的記憶體。
安裝
pip install a-piece-of-shit
然後去泡杯咖啡,回來應該還沒裝完。
使用方式
from a_piece_of_shit import import_everything
# 基本用法 - 回傳一個 namespace
env = import_everything()
# 現在你可以這樣用
env.np.array([1, 2, 3])
env.pd.DataFrame({'a': [1, 2, 3]})
env.plt.plot([1, 2, 3])
env.requests.get('https://example.com')
env.torch.tensor([1, 2, 3])
# YOLO 模式 - 直接污染你的 global namespace
import_everything(yolo=True)
# 現在直接用,不用加 env.
np.array([1, 2, 3]) # 直接就能用了
pd.DataFrame({'a': [1, 2, 3]})
到底 import 了什麼?
numpy, pandas, polars, scipy, sympy, sklearn, tensorflow, torch, transformers, xgboost, lightgbm, catboost, matplotlib, seaborn, plotly, bokeh, flask, django, fastapi, streamlit, gradio, requests, httpx, beautifulsoup4, scrapy, sqlalchemy, redis, celery, kafka, boto3, rich, typer, click, pydantic, cryptography, opencv, spacy, nltk, gensim, networkx, ray ... 還有一堆。
完整清單請看 pyproject.toml,反正你也不會看。
為什麼要做這個?
因為可以。
License
WTFPL - Do What The Fuck You Want To Public License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file a_piece_of_shit-0.2.0.tar.gz.
File metadata
- Download URL: a_piece_of_shit-0.2.0.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
109499647e79e1f9d2f202fb8ecc761fec7f87b9e8f91235dc64462e78b5d0b8
|
|
| MD5 |
3360fe674abd46ea2abd7dcb3747ec45
|
|
| BLAKE2b-256 |
62dd0ceddc46085a0dd27d23dba4a561962fd86ecd786097a57a6653b5b03eb7
|
File details
Details for the file a_piece_of_shit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: a_piece_of_shit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b183cd7b21e452b22fd39827c59729cabf493d52c3ce00748d8d0330cf311af9
|
|
| MD5 |
c9c75f48d2724d269f32b8c7a6078156
|
|
| BLAKE2b-256 |
11e4192f0b9538c98c6b3359c033ec1aa19d8d284aaf36218387fd901d9c3e3f
|