Skip to main content

CLI tool to create tree views from a csv file with child-parent relationships.

Project description

plot-tree

Description

plot-tree creates tree views from a csv file with child-parent relationships. It supports time-based snapshots and generates hierarchical data visuals in meraid, yaml, and text-tree formats.

Setting Up the Project

  1. Clone the repository:

    git clone <repository-url>
    cd plot-tree
    
  2. Make sure base python verison is >=3.11

    • if base python is lower than 3.11, you can use conda to create a new environment with Python 3.11:
     conda create -n py311 python=3.11
     conda activate py311
     which python
    
    • then use poetry to create a new virtual environment with python 3.11
     poetry env use python3.11
    
  3. Install Poetry if has not installed: https://python-poetry.org/docs/#installation

     pipx install poetry
    
  4. Install Python dependencies using Poetry:

    poetry install
    

    This command will install all Python packages specified in pyproject.toml, including:

    • pyyaml version ^6.0.1
    • anytree version ^2.12.1

Run all the pytest unit tests

poetry run pytest -v

How to Run

  1. Input: put the child and parent entries in child_parent.csv by using the same format of the csv file
  2. Run at project's root folder:
poetry run plot

  1. Output: at folder /output

treeplots cli

pip install treeplots
treeplots --help
treeplots -v
treeplots --example
treeplots

cli publish

poetry version patch
poetry version minor
poetry publish --build
poetry publish --build --dry-run
tox -e release

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

treeplots-0.10.6.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

treeplots-0.10.6-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file treeplots-0.10.6.tar.gz.

File metadata

  • Download URL: treeplots-0.10.6.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.13 Darwin/24.6.0

File hashes

Hashes for treeplots-0.10.6.tar.gz
Algorithm Hash digest
SHA256 4f8dabf2be0a8eece90f345c932a506645181be9a9087efedd627cf26666d10b
MD5 5c26368dc83c3175610f05b5b35951a5
BLAKE2b-256 50e79e6e9eb125db75778c55f3e5dd5dce8429baa1c3ecccc3c62b457e2228fc

See more details on using hashes here.

File details

Details for the file treeplots-0.10.6-py3-none-any.whl.

File metadata

  • Download URL: treeplots-0.10.6-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.13 Darwin/24.6.0

File hashes

Hashes for treeplots-0.10.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0c347aeebbda6f410a49c370ae007f1c0bb40930a7265ff04de0ad3fa0e1bd7a
MD5 ffb65e7baa3eaea762450687e06d8a35
BLAKE2b-256 94a2a9edaa281debc7182adafb1cfddc8e55601d4091752d635a02f9f65c3a32

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