AlkantarClanX12

Your IP : 18.116.85.102


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/requirements_detector/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/requirements_detector/formatters.py

import sys
from typing import List

from .requirement import DetectedRequirement


def requirements_file(requirements_list: List[DetectedRequirement]) -> None:
    for requirement in requirements_list:
        sys.stdout.write(requirement.pip_format())
        sys.stdout.write("\n")


FORMATTERS = {"requirements_file": requirements_file}