Skip to content

Files

Latest commit

 

History

History
55 lines (37 loc) Β· 1.42 KB

README.md

File metadata and controls

55 lines (37 loc) Β· 1.42 KB

πŸš€ Markdown to Python Extractor 🐍

Ever struggled to pull Python code from Markdown files manually? Say no more! This script automagically extracts Python code blocks from .md files and saves them as standalone .py scripts.

πŸ’‘ Perfect for:
βœ… Developers who work with Markdown tutorials & documentation.
βœ… Geeks who love automating repetitive tasks.
βœ… Anyone who prefers coding over copy-pasting!


🎯 Features

✨ Finds & Extracts Python code blocks from .md files.
✨ Saves Code as neatly formatted .py files.
✨ Custom Output directory support.
✨ Plug & Play – No extra dependencies!


πŸ”§ Installation

You already have everything you need – just run the script!


πŸš€ How to Use

Basic Usage:

python script.py "path/to/markdown/files"

Specify Output Folder (Optional):

python script.py "path/to/markdown/files" -o "path/to/save/python/files"

πŸ›  Example

🎯 Extract code from docs/ and save it in extracted_code/

python script.py "docs" -o "extracted_code"

πŸ“‚ If no output folder is provided, extracted .py files will be saved in the same folder as the Markdown files.


πŸ“œ License

πŸ†“ 100% Free & Open-Source – Use it, modify it, share it!


πŸ’» Made for lazy coders who love automation. Happy coding! πŸŽ‰πŸš€