Python poetry how to generate a requirements.txt
First of all, you need to know. What is poetry?
Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you, as they say in their page. https://python-poetry.org/docs/
How can I generate a requirements.txt from poetry.lock?
Well, you just need to write an easy command on your CLI (command-line interface).
► poetry export -f requirements.txt: this is the format to export
► — without-hashes: exclude hashes from the exported file
► requirements.txt: explain to the console where it is going to be.
That’s it, now you will have your requirements.txt generated.