APIs

x

x

x

  1. Run the following commands to verify system requirements.

# Check Python version (must be 3.8+)
python3 --version

# Check pip availability
pip --version

# Verify project directory access
ls -la /home/pdc/Projects/APIs/Key_Metrics/
  1. Ensure the required packages are installed.

# Navigate to project directory
cd ~/Projects/APIs/Key_Metrics

# Install package in development mode (recommended)
pip install -e .

# Alternative: Using uv package manager
# uv sync

# Verify installation
extract-entities --help
bulk-update-api --help
bulk-update-opensearch --help
  1. Generate a JWT Bearer-token.

Ensure the credentials used have the required permissions - james.lock has the admin / system_administrator role.

The JWT - Bearer Token - will enable authentication, while PDC will authorize OpenSearch API calls.

The bearer token is time limited so you may have to update the token.

This will return and output the JWT token as .access_token:

  1. Create a config.py:

  1. Run a diagnostic check.

We're now ready to kick the project off .. !

Last updated

Was this helpful?