Skip to main content

A module for visualization of a nested python data structure

Project description

A module for visualization of a nested python data structure


a nested python objects including list, tuple, dictionary, tensor, ndarray to data-tree, and make a quick peek out of its structure

data = a list of 10 lists of 3 dicts of 2 keys : list of 2 strings

dv.viz(data)

$ list of 10
$ └── list of 3
$     └── dict of 2
$         ├── train : ['data1', 'data2']
$         └── test : ['data3', 'data4']

How to use


install

$ pip install dstree

import and quick_start

import dstree as dst

data = dst.get_example_data()
tree = dst.viz(data)

usage in detail

import dstree as dst
dst.quick_start() # Copy & Paste console output to set up the tutorial codes

Note

This package is built based on treelib & graphviz syntax.
Supports int, str, float, list, tuple, dict, Tensor, ndarray, Series, DataFrame datatype.
And also custom data classes are supported.

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

dstree-3.4.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

dstree-3.4-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file dstree-3.4.tar.gz.

File metadata

  • Download URL: dstree-3.4.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for dstree-3.4.tar.gz
Algorithm Hash digest
SHA256 b8e10af9e7aab5537263e45040171f9222848c2b1516fe5a25877d18f8d06fb6
MD5 35adc3c93193acf32fb8ddce999bcb09
BLAKE2b-256 35989e46fe5344bc319402722ff1fc5c7d3a478667a13de750c9fe5fe85719d4

See more details on using hashes here.

File details

Details for the file dstree-3.4-py3-none-any.whl.

File metadata

  • Download URL: dstree-3.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for dstree-3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 562a9378628572104c68b8b0e794186be845c24960b1d0186fd3440c7416ba65
MD5 4ad18e170a68b6c3bd8e615be3ece108
BLAKE2b-256 47d5ec6ee89486edcea28060e98b08a27daa1a7f38c43b653c48d905ac172822

See more details on using hashes here.

Supported by

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