Skip to main content

This package automatically generates a project architecture description and saves it in the README.md file.

Project description

Project Structure Generator

This package automatically generates a project architecture description and saves it in the README.md file.

Installation

Install the package using pip:

pip install structure-generator-by-xakepanonim

Usage

Before using the package, make sure you are in the root directory of the project and run the following command:

generate-structure .

Configuration

The package supports multiple configuration file options for specifying exclusions:

  1. structure.toml — the default configuration file
  2. pyproject.toml — use the section [tool.structure_generator] in this file

Parameters:

  • exclude — a list of files to exclude from the generation process
  • read_docstrings — if true, the documentation strings (docstrings) will be read for each file
  • output_file — the path to the file where the architecture description will be saved

Example configuration in structure.toml:

exclude = [
    'venv',
    '__pycache__',
    '.git',
]

read_docstrings = true
output_file = "README.md"

Example configuration in pyproject.toml:

[tool.structure_generator]
exclude = [
    'venv',
    '__pycache__',
    '.git',
]

read_docstrings = true
output_file = "README.md"

Генератор Структуры Проекта

Этот пакет автоматически генерирует описание архитектуры проекта и сохраняет его в файл README.md.

Установка

Установите пакет через pip:

pip install structure-generator-by-xakepanonim

Использование

Перед тем как использовать пакет, убедитесь, что вы находитесь в корневой папке проекта, и выполните следующую команду:

generate-structure .

Конфигурация

Пакет поддерживает несколько вариантов файлов конфигурации для указания исключений:

  1. structure.toml — дефолтный файл конфигурации
  2. pyproject.toml — используйте секцию [tool.structure_generator] в этом файле

Параметры:

  • exclude — список файлов, которые необходимо исключить из генерации
  • read_docstrings — если true, то будет считано описание документации для каждого файла
  • output_file — путь к файлу, в который будет сохранено описание архитектуры

Пример настройки в structure.toml:

exclude = [
    'venv',
    '__pycache__',
    '.git',
]

read_docstrings = true
output_file = "README.md"

Пример настройки в pyproject.toml:

[tool.structure_generator]
exclude = [
    'venv',
    '__pycache__',
    '.git',
]

read_docstrings = true
output_file = "README.md"

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

structure_generator_by_xakepanonim-0.3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file structure_generator_by_xakepanonim-0.3.0.tar.gz.

File metadata

File hashes

Hashes for structure_generator_by_xakepanonim-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a9093fe8b31197a4d62889b0b830de805e8ba84c6169ad45ecf55f9138bd5eff
MD5 0b42ee1b986ce408210fb035b316beeb
BLAKE2b-256 1c96f01ac3fe94c8dc5673805aa10c37787f19b77386a158982a44427fcfaf72

See more details on using hashes here.

File details

Details for the file structure_generator_by_xakepanonim-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for structure_generator_by_xakepanonim-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce907f23e59cb8a8fb3d328387d8061a8f639e824859255877bc234b93247952
MD5 c02eff16b7aa55d0156309ee243c4a76
BLAKE2b-256 d3f186a718ae4e6a3e76a23c967beeaf497ae5828ef50cb62ca80cfddb3d9900

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