[PYTHON] I made a script to put a snippet in README.md

https://github.com/zakuro9715/md-embed-snippet

Since it is in the public domain, please use it as you like

motivation

I want to write the file I put in examples / in the README, but GitHub Markdown doesn't have a feature like include (probably).

How to use

It's a single file, so just copy embed-snippet.py and run it. Replaces placeholders with snippets

./embed-snippet.py README.template.md __examples__ examples.txt > README.md

Recommended Posts

I made a script to put a snippet in README.md
I made a script to display emoji
I made a script in Python to convert a text file for JSON (for vscode user snippet)
I made a script in python to convert .md files to Scrapbox format
I made a CUI-based translation script (2)
I made a CUI-based translation script
I made a command to generate a table comment in Django
I wrote a script to get a popular site in Japan
I made a script to say hello at my Koshien
I want to print in a comprehension
I made a payroll program in Python!
I wrote a function to load a Git extension script in Python
I wrote a script to extract a web page link in Python
[V11 ~] A memorandum to put in Misskey
I made a command to display a colorful calendar in the terminal
I made a plugin to generate Markdown table from csv in Vim
I made a web application in Python that converts Markdown to HTML
I made a CLI tool to convert images in each directory to PDF
I made a program to check the size of a file in Python
I want to create a window in Python
I made a tool to compile Hy natively
To add a module to python put in Julialang
I wrote a script to upload a WordPress plugin
I made a tool to get new articles
I made a Caesar cryptographic program in Python.
〇✕ I made a game
I made an appdo command to execute a command in the context of the app
I made a module in C language to filter images loaded by Python
I made a script to record the active window using win32gui of Python
I want to embed a variable in a Python string
I want to easily implement a timeout in python
I made a prime number generation program in Python
I want to transition with a button in flask
I made a library to separate Japanese sentences nicely
I tried to implement a pseudo pachislot in Python
I made a Python module to translate comment outs
A memorandum to run a python script in a bat file
I made a code to convert illustration2vec to keras model
I want to randomly sample a file in Python
I want to work with a robot in python.
I made a prime number generation program in Python 2
I made a command to markdown the table clipboard
I made a python library to do rolling rank
[Linux] How to put your IP in a variable
I was soberly addicted to calling awscli from a Python 2.7 script registered in crontab
I can't sleep until I build a server !! (Introduction to Python server made in one day)
I made a python text
I made a discord bot
I tried to implement a one-dimensional cellular automaton in Python
I made a package to filter time series with python
I made a box to rest before Pepper gets tired
I made a quick feed reader using feedparser in Python
I made a Numer0n battle game in Java (I also made AI)
I made a tool to create a word cloud from wikipedia
I made a function to check the model of DCGAN
Put the lists together in pandas to make a DataFrame
I tried "How to get a method decorated in Python"
I wrote a script to combine the divided ts files
I made a puzzle game (like) with Tkinter in Python
I tried to make a stopwatch using tkinter in python
[Titan Craft] I made a tool to summon a giant to Minecraft