Metadata-Version: 2.4
Name: autoinstallation
Version: 1.0.0
Summary: 自動依賴管理系統
Author-email: KunXuLiu <admi@twkx.us.ci>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# autoinstallation

自動依賴管理系統 (Auto installation) > Developed by KunXuLiu

autoinstallation 是一個為 Python 開發者設計的自動化環境建置工具。它能夠在程式執行時，自動偵測環境中是否缺少指定的第三方模組。若發現缺失，系統會自動從專屬的雲端工作站或官方來源下載並安裝，讓你的主程式不會因為 ImportError 而中斷。

# 安裝方式

你可以透過指定專屬私有倉庫（雲端工作站）來安裝此套件：

```Bash
pip install --extra-index-url http://xn--bfru56bwlk.cc.cd/pip/autoinstallation
```

# 使用範例

在你的 Python 腳本開頭，引入 twkx-ad 並呼叫 install() 方法。它完美支援單一字串或陣列列表 (List)。

1. 安裝單一模組 (字串格式)
```python
import autoinstallation
# 自動檢查並安裝單一模組
autoinstallation.install("requests")
# 之後即可直接使用
import requests
print(requests.__version__)
```
2. 批量安裝多個模組 (列表格式)
```python
import autoinstallation

# 定義你需要的所有依賴清單
dependencies = ["numpy", "pandas", "pillow"]

# 一次性自動檢測與安裝
autoinstallation.install(dependencies)
```
# 安全注意事項

由於本工具具備自動執行 pip install 的權限，建議僅針對受信任的倉庫來源使用。
