Skip to main content

awesome-structure

О пакете


Всего одна команда в терминале, отделяющая вас от наслаждения прекрасной структурой вашего проекта 😌

CLI (Command Line Interface) приложение для построения красивой визуализации структуры произвольного каталога.
Например, для этого проекта, оно генерирует следующую визуализацию:

📁 awesome-structure
├── 📁 src
│   ├── 📁 awesome_structure
│   │   ├── 📁 renderers
│   │   │   ├── 🐍 __init__.py
│   │   │   ├── 🐍 icons.py
│   │   │   ├── 🐍 markdown.py
│   │   │   └── 🐍 terminal.py
│   │   ├── 🐍 __init__.py
│   │   ├── 🐍 cli.py
│   │   └── 🐍 tree_builder.py
│   └── 🐍 __init__.py
├── 📁 tests
│   ├── 📁 test_renderers
│   │   ├── 🐍 test_markdown.py
│   │   └── 🐍 test_terminal.py
│   ├── 🐍 __init__.py
│   ├── 🐍 conftest.py
│   ├── 🐍 test_cli.py
│   └── 🐍 test_tree_builder.py
├── 📄 .gitignore
├── 📄 LICENSE
├── 📄 poetry.lock
├── ⚙️ pyproject.toml
└── 📖 README.md

Установка


Пакет опубликован в PyPi: awesome-structure

Воспользуйтесь удобным для вас менеджером пакетов:
pip

pip install awesome-structure

poetry

poetry add awesome-structure

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


Вызовите ту самую заветную команду admire с указанием параметра пути к каталогу для получения удовольствия, так:

awesome-structure admire "[путь к вашему каталогу]"

или с явным казанием параметра --path так:

awesome-structure admire --path "[путь к вашему каталогу]"

Пример:

awesome-structure admire "C:\Program Files"

Для корректной работы, настоятельно рекомендуется заключать путь в кавычки "".

Результат будет выведен в терминал.

Если вы желаете получить результат в виде файла, доступно сохранение markdown разметки в файл awesome-structure.md.
Просто при вызове команды укажите соответствующее значение в параметре mode

awesome-structure admire "C:\Program Files" --mode markdown

Файл будет сохранён в том каталоге, для которого строится визуализация.

По умолчанию, все скрытые файлы и каталоги (те, чьё название начинается с ".") не попадают в вывод результата.
К ним могут относиться .env, .gitignore и т.д. Если вы хотите включить в вывод скрытые папки и файлы, добавьте к команде флаг --hidden.

awesome-structure admire "C:\Program Files" --hidden

Флаги можно комбинировать и использоваться совместно. Например:

awesome-structure admire "C:\Program Files" --mode markdown --hidden

Порядок следования флагов не важен

awesome-structure admire "C:\Program Files" --hidden --mode markdown 

Metadata

Release files for awesome-structure 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awesome-structure 0.1.1
File Size Uploaded Provenance
awesome_structure-0.1.1.tar.gz 6.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for awesome-structure 0.1.1
File Interpreter ABI Platform
awesome_structure-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / awesome_structure-0.1.1.tar.gz

Download URL awesome_structure-0.1.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
97c84bcc61ed050f81f40b9d5cef6f0561dc669a865037b7d2995a3b82cf39fa
BLAKE2b-256 checksum
How to use checksums
901e1cf461b69f8fc0c22628f1b8350d9abbde4933bd1f648dff11485d87f95c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.4 Windows/10

Release files / awesome_structure-0.1.1-py3-none-any.whl

Download URL awesome_structure-0.1.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01fbbf904b93c9747d2bde4192955b00e1aeac68bfdf92daa6c42b5bdc1ae4e5
BLAKE2b-256 checksum
How to use checksums
41800df1a88235db5337d71a6666c626b89858c542dd335fcddd0d7e7991e6e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.4 Windows/10

Security for awesome-structure 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page