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