Skip to main content

A python package for visualizing data structures

Project description

VisDaS

Visualizing Data Structure

A python package for visualizing data structures and its contents

Data structures form an essential part of computer science. A data structure helps in organizing, managing and storing data in a computer for efficient access and modification.

Visualization of data structure makes it easy to understand the data structure and how elements of that data structure are connected to each other.

This package helps in providing an easy way to get an image of visualization of the data structure and its elements. You can also perform basic operations on your array to understand the result of the function

It provides a way to visualize the contents of data structure and how the elements of data structure are related to each other.

The package currently supports visualization of following data structures :

Examples of How To Use

from visdas import Array

arr = Array([10,15,20,25])
arr.insert(30)
arr.generate("array.png")

array.png

array

Function Description

Array

  • get()

    Returns the array

    arr = Array([100,200,300])
    print(arr.get())
    
  • insert(element,index)

    Inserts an element at given index. If the index is not specified then it appends the element to end of array.

    arr = Array()
    arr.insert(30)
    # Appends 30 to end of array
    print(arr.get())
    # [30]
    arr.insert(0,10)
    # Inserts 10 at the index 0 of array
    print(arr.get())
    # [10,30]
    
  • remove(element)

    Removes the first occurence of an element from the array

    arr = Array([10,20,30,40])
    arr.remove(30)
    # Removes the first occurence of 30 
    print(arr.get())
    # [10,20,40]
    
  • len()

    Returns the length of array

    arr = Array([12,14,16])
    print(arr.len())
    # 3
    
  • generate()

    Generates the image of array with specifies parameters

    arr = Array([12,14,16])
    arr.generate("myArray.png","black","white")
    

    myarray

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

visdas-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

visdas-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file visdas-0.0.1.tar.gz.

File metadata

  • Download URL: visdas-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.6

File hashes

Hashes for visdas-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e031cd2bb92d9424d1f3d46b9d31f7ee7ed6db2e4aed3f0f6d48f6cddd7b6dbe
MD5 ad733df03085c540000472a6a2f3c48c
BLAKE2b-256 47a7ff07fae80fe482a242d2fdc5d86d0e3794050021e2de28da91ba076eafbb

See more details on using hashes here.

File details

Details for the file visdas-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: visdas-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.6

File hashes

Hashes for visdas-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89c3cc226d7c67f3384598448195ae5635b6c80a9d46aaf3a3d8745796569180
MD5 c92d0a49f2b9d7e1da8e5f4113f43e60
BLAKE2b-256 ee2e86fe56b36bf855040c4d5b80c7e1d828b4e2dccc06d530ad9ef537f884f5

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