Skip to main content

A utterly useless package that imports everything for you.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a_piece_of_shit-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a_piece_of_shit-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file a_piece_of_shit-0.1.0.tar.gz.

File metadata

  • Download URL: a_piece_of_shit-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for a_piece_of_shit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf9ec31928dcdb3745fab5516f5e231978cbc4a8adb185954c97de8d2e26ca4b
MD5 252870f926b9734c35418d2f6a5e3886
BLAKE2b-256 333184d73a19dd9a79016d4edeace003904b4df122ba276b0b93da3dbcf384ab

See more details on using hashes here.

File details

Details for the file a_piece_of_shit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for a_piece_of_shit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63c4e2558e0b623b1ccb9f25284d65671541d44ea8a5ad9b380806f9613a9103
MD5 7a70814c5749e496bc1ccdcb8ea3ab8f
BLAKE2b-256 1e13a3a5329effd92691389dde96fa541d9f27b4e14dad179759c563ead33e1c

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