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
```
"""


[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.

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.5.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.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tbi_readgen-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 dcce78d9b734ddfa0cec18a10f8d848eb0ed18a281f435e335f446031fb7eceb
MD5 778aa239d59c87d29236f350a3c67032
BLAKE2b-256 69289555e5ea1392285b80dcc0b0e03f762d5c09739305b834d4e43589cfac02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tbi_readgen-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bbd8148dd67fbc2c03add0d108e74b8a4e7dfe551302669745aedb4b223df348
MD5 68d342850244ff16b5c485c8706b5cda
BLAKE2b-256 7fc5e179e5ebce78e258053d2192a604c860b4b5866b0dc1d07ececee75aedf8

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