Skip to main content

A README generator for Python projects

Project description

ReadGen (tbi-readgen)

A simple yet powerful Python project README.md generator.

Features

  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

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

""" [settings]

The settings is a built-in method and will not be listed.

Exclude directories from scanning.

exclude_dirs = [".git", "venv", "pycache", ".venv", "env", "build", "dist"]

List the depth of directories, list all by default.

"src/readgen" = 0 # directory = depth "utils" = 1 # directory = depth


# Compatibility
Supports Python 3.12 and above
Compatible with Windows, macOS, and Linux

# Directory Structure

* **readgen**
  * **src**
    * **src/readgen**
      * **src/readgen/utils**: This folder is primarily used for storing commonly used utilities.
---
> This document was automatically generated by readgen.

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

tbi_readgen-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tbi_readgen-0.0.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file tbi_readgen-0.0.2.tar.gz.

File metadata

  • Download URL: tbi_readgen-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for tbi_readgen-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c13163e2630cfe6b38b491e0be7534a508bd208bce205ad37a09334f87031bf1
MD5 6d921e8de4f0f4a4ebe4c2c8d220bf5f
BLAKE2b-256 716964840338040e18eb2d8e390f797deb81b35e31ef4852965468ea24b0a26c

See more details on using hashes here.

File details

Details for the file tbi_readgen-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tbi_readgen-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for tbi_readgen-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afd60497583e73ccd8372ef7108a918eca8d9752755d947298c2533dd92f76ec
MD5 74f304cfada481cae75a6ff192934c88
BLAKE2b-256 d7b0c5269ba7d661992dae0ddf8ef567832ce1eea625511c435ed8649be9361c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page