Prerequisites
Before installing DZDK CLI, ensure you have the following:- Python 3.8 or higher
- pip (Python package installer)
- Git (for cloning the repository)
To check your Python version, run
python --version or python3 --version in your terminal.Installation methods
Create a virtual environment
Create and activate a Python virtual environment to isolate the CLI dependencies:
Install dependencies
Install all required Python packages:This will install the following dependencies:
click>=8.0.0- Command-line interface frameworkrequests>=2.26.0- HTTP library for API requestsrich>=10.0.0- Beautiful terminal output formattingpyyaml>=6.0- YAML configuration file supportpandas>=2.0.0- Data manipulation and analysistabulate>=0.9.0- Table formattingprompt-toolkit>=3.0.0- Interactive shell featurespython-dateutil>=2.8.2- Date parsing utilities
Install the CLI
Install the CLI in editable mode so you can use the
dzdk command:The
-e flag installs the package in “editable” mode, which means changes to the source code will be reflected immediately without reinstalling.Alternative installation using pip
If the package is published to PyPI, you can install it directly:Configuration directory
After installation, DZDK will automatically create a configuration directory on first run:- Linux/macOS:
~/.config/dzdk/ - Windows:
%USERPROFILE%\.config\dzdk\
config.yaml will be created in this directory with default settings:
Verify your installation
Run the health check command to verify DZDK can connect to the API:Troubleshooting
Python version issues
If you encounter Python version errors:Virtual environment activation issues
On Windows with PowerShell:Module not found errors
If you get import errors, ensure all dependencies are installed:Permission errors
On Linux/macOS:API connection issues
If the health check fails:- Verify your internet connection
- Check if the API URL is correct in your configuration
- Try updating the configuration: