Skip to content

Krupal1574/Python-Code-Extractor-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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! 🎉🚀

About

**🚀 Python Code Extractor** Extracts Python code from Markdown (`.md`) files and saves them as `.py` scripts. Simple, fast, and open-source! 📜 **MIT License** | 🛠️ **Built with Python** Would you like a cool **banner or logo** for your repo? 🎨🚀

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages