docs: def pypi(
      click_ctx,
      requirements,
      index=None,
      python_version=3,
      exclude_packages=None,
      output=None,
      subgraph_check_api=None,
      no_transitive=True,
      no_pretty=False,
  ):
      """Manipulate with dependency requirements using PyPI."""
      requirements = [requirement.strip() for requirement in requirements.split("\\n") if requirement]
  
      if not requirements:
          _LOG.error("No requirements specified, exiting")
          sys.exit(1)
  
      if not subgraph_check_api:
          _LOG.info(
              "No subgraph check API provided, no queries will be done for dependency subgraphs that should be avoided"
          )  # Ignore PycodestyleBear (E501)
  
      result = resolve_python(
          requirements,
          index_urls=index.split(",") if index else ("https://pypi.org/simple",),
          python_version=int(python_version),
          transitive=not no_transitive,
          exclude_packages=set(map(str.strip, (exclude_packages or "").split(","))),
          subgraph_check_api=subgraph_check_api,
      )
  
      print_command_result(
          click_ctx,
          result,
          analyzer=analyzer_name,
          analyzer_version=analyzer_version,
          output=output or "-",
          pretty=not no_pretty,
      )