Generate README files from templates. Allow input from functions calls and cli output.
Project description
readme_patcher
Generate README files from templates. Allow input from functions calls and cli output.
cd your-project
vim README_template.rst
poetry add --group dev readme-patcher
poetry shell
readme-patcher # README.rst
Global objects
py_project
{{ py_project.repository }}
github
{{ github.name }}
{{ github.full_name }}
{{ github.description }}
Functions
cli: Combined output (stdout and stderr) of command line interfaces (scripts / binaries)
{{ cli('awk --help') }}
func: return values of Python functions
{{ func('os.getcwd') }}
Filters
code
{{ func('os.getcwd') | code }}
literal
{{ func('os.getcwd') | code }}
Configuration
[[tool.readme_patcher.file]]
src = "README_template.rst"
dest = "README.rst"
variables = { cwd = "func:os.getcwd", fortune = "cli:fortune --help" }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
readme_patcher-0.3.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for readme_patcher-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e7930a401daadade3a5b9bc06ce0351771caf28c22c2d00f21e7cf43819a302 |
|
MD5 | c92402dab635f9e5cf12f376f67fe960 |
|
BLAKE2b-256 | 80fc89443755de14d45e4e41fd8bb4046b18805befa0bba91b81ddfde054ab3a |