class_docstr: Specify package indexes/Python package sources using Airflow connections.
class_docstr_tok: ["Specify","package","indexes\/Python","package","sources","using","Airflow","connections","."]
code: def __init__(
      self, pi_conn_id: str = default_conn_name, **kwargs
  ) -> None:
      super().__init__(**kwargs)
      self.pi_conn_id = pi_conn_id
      self.conn = None
  
file_path: airflow/airflow/hooks/package_index.py
imports: from __future__ import annotations
  import subprocess
  from typing import Any
  from urllib.parse import quote, urlparse
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 1 to create a new PackageIndexHook object from inherited base classes: BaseHook with example: obj = PackageIndexHook(pi_conn_id)