D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
requirements_detector
/
Filename :
formatters.py
back
Copy
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}