A README generator for Python projects
Project description
ReadGen
This document was automatically generated by ReadGen as well!
tbi-readgen (0.0.8)
A simple yet powerful Python project README.md generator.
Features
- Read project information from pyproject.toml
- Read custom content from readgen.toml
- Support variable substitution from pyproject.toml
- Configure directory structure display with depth control
- Toggle directory section display
- Scan the project directory structure
- Extract docstrings from
__init__.pyfiles in each folder - Generate a standardized README.md
Installation
$ pip install tbi-readgen
# Recommendation, as it can be used globally.
$ pipx install tbi-readgen
Usage
CLI
$ readgen
# Overwrite README.md.
$ readgen -f
Project Configuration File
Create a readgen.toml file in the project root:
[Title]
title = "Method to overwrite [Title], with support for spaces."
content = "Content of the Title Block"
[Markdown]
content = """
## This is a markdown block
1. Read project information from pyproject.toml
2. Read custom content from readgen.toml
3. Scan the project directory structure
4. Extract docstrings from `__init__.py` files in each folder
5. Generate a standardized README.md
```bash
$ pipx install tbi-readgen
```
"""
[Variables]
content = """
Examples of variables from pyproject.toml:
- Use ${project.version} to get the project version
- Use ${project.name} to get the project name
"""
[directory] # `directory` is a built-in method and will not be listed.
title = "Directory Structure" # You can customize block names to override the default "Directory Structure."
content = "123"
enable = true # If `enable = false`, it won't list all directories or scan the init instructions.
exclude_dirs = [".git", "venv", "__pycache__", ".venv", "env", "build", "dist"] # Exclude directories from scanning.
depth_limits = { "root" = 1, "root/mother" = 2 } # List the depth of directories, list all by default.
Development
Setup
git clone https://github.com/TaiwanBigdata/readgen.git
cd readgen
python -m venv env
source env/bin/activate # Linux/Mac
pip install -e .
License
This project is licensed under the MIT License.
Directory Structure
- readgen
- src
- src/readgen
- src/readgen/utils: This folder is primarily used for storing commonly used utilities.
- src/readgen
- src
This document was automatically generated by ReadGen.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tbi_readgen-0.0.8.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tbi_readgen-0.0.8.tar.gz.
File metadata
- Download URL: tbi_readgen-0.0.8.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27758b9d026b5b09966be8345e0bd10b5db5500df1dc619110f2ae78925c0e2d
|
|
| MD5 |
a9a137dcf3d9150ae8edaf6ddd9d992e
|
|
| BLAKE2b-256 |
1fe5e73c697638ee98195f6028fd14eb2e310c28322e2da80d29ef37fb2b1d8f
|
File details
Details for the file tbi_readgen-0.0.8-py3-none-any.whl.
File metadata
- Download URL: tbi_readgen-0.0.8-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4269b2eb594d3478940949f91e7ae2ff1b8ced3dc36e0a45fd64bce108f7fd
|
|
| MD5 |
eb3d5054b8129473ba16db57c15f9883
|
|
| BLAKE2b-256 |
9e0939f3eaedfb324409d481817f225e75bdc5d62c056f402c24868fd92f9178
|