一个轻量级的Python包,可以轻松简化Apache Airflow的安装。
项目描述
Airflow Installer
一个用于在虚拟环境中简化Apache Airflow安装的命令行工具。
功能
- 在虚拟环境中使用可选依赖项安装Apache Airflow。
- 自动从PyPI检测Apache Airflow的最新版本。
- 使用约束文件管理版本约束。
- 易于使用的命令行界面(CLI),实现无缝安装。
安装
您可以使用pip安装airflow-installer
pip install airflow-installer
选项
Usage: airflow_installer [OPTIONS]
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version TEXT Apache Airflow version to install. Defaults to latest. [default: 2.6.3] │
│ --constraints-url TEXT URL of the constraints file. Defaults to latest version constraints. │
│ --extras TEXT Extras or additional requirements to install with Apache Airflow. │
│ --requirements TEXT Path to a requirements.txt file to be used during installation. │
│ --venv-path TEXT Path where the virtual environment will be created [default: .venv/airflow] │
│ --recreate-venv --no-recreate-venv Recreate virtual environment if it already exists. [default: no-recreate-venv] │
│ --verbose --no-verbose Enable verbose debugging output. [default: no-verbose] │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
用法
# Install the latest version of Apache Airflow in the default virtual environment
airflow-installer
# Install a specific version of Apache Airflow in a custom virtual environment
airflow-installer --version 2.6.3 --venv-path .venv/my-airflow
# Install Apache Airflow with specific extras and constraints
airflow-installer --version 2.5.2 --extras "[celery,crypto]" --constraints-url "https://raw.githubusercontent.com/apache/airflow/constraints-2.5.2/constraints-3.7.txt"
# Install Apache Airflow using a requirements.txt file
airflow-installer --version 2.6.0 --requirements requirements.txt
# Recreate the virtual environment if it already exists
airflow-installer --recreate-venv
# Enable verbose output for debugging
airflow-installer --verbose
项目详情
关闭
airflow_installer-0.1.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 16eb4ce41f182345125e237262a06c21d8a068ea6d34afc33d79ceb9433c8cc5 |
|
MD5 | 3ea962af1689057d89f7889fd7eeaaa9 |
|
BLAKE2b-256 | 9a29f57b868b31a78b8f4ca73d2a27b402fd4477928758d6bd02c98719f885b2 |
关闭
airflow_installer-0.1.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | aadc4e403b4a3906a45a93808889713c79722a897ef0ae24696bea14c1eded60 |
|
MD5 | 38fcc9d9c3c7c130322473bd4aee5987 |
|
BLAKE2b-256 | 75c0637307578b41710c5703f89233a90e18fb78e8c72f42bcd5c22b1aa66404 |