💩 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
Metadata
Release files for a-piece-of-shit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| a_piece_of_shit-0.2.0.tar.gz | 35.5 kB | Without provenance | Details for a_piece_of_shit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a_piece_of_shit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for a_piece_of_shit-0.2.0-py3-none-any.whl |
Total release size: 55.7 kB
Release files / a_piece_of_shit-0.2.0.tar.gz
| Download URL | a_piece_of_shit-0.2.0.tar.gz |
|---|---|
| Size | 35.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
109499647e79e1f9d2f202fb8ecc761fec7f87b9e8f91235dc64462e78b5d0b8
|
|
BLAKE2b-256 checksum How to use checksums |
62dd0ceddc46085a0dd27d23dba4a561962fd86ecd786097a57a6653b5b03eb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Release files / a_piece_of_shit-0.2.0-py3-none-any.whl
| Download URL | a_piece_of_shit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b183cd7b21e452b22fd39827c59729cabf493d52c3ce00748d8d0330cf311af9
|
|
BLAKE2b-256 checksum How to use checksums |
11e4192f0b9538c98c6b3359c033ec1aa19d8d284aaf36218387fd901d9c3e3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Security for a-piece-of-shit 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.