Skip to content

Instantly share code, notes, and snippets.

@tigerhawkvok
tigerhawkvok / poetry-convert.py
Last active December 11, 2024 16:22
Convert a requirements.txt file to a Poetry project
#!python3
"""
Convert a requirements.txt file to a Poetry project.
Just place in the root of your working directory and run!
"""
sourceFile = "./requirements.txt"
import re
import os