Skip to main content

The library which helps developers to implement data structures & algorithms easily without coding everything.

Project description

easyDSI 1.1.2



Python Library makes it easy for users to code and run data structures & algorithms without having to summarize everything.

Contains

Array

  • array(size) - Creates an array with size.
  • array(elements) - Creates an array with elements.

Linked List

  • linked_list() - Creates an empty linked list.
  • linked_list(elements) - Creates an linked list with elements.

Stack

  • stack(size) - Creates an stack with size.
  • stack(elements) - Creates an stack with elements.

Queue

  • queue(size) - Creates an queue with size.
  • queue(elements) - Creates an queue with elements.

Double Ended Queue

  • double_ended_queue(size) - Creates an queue with size.
  • double_ended_queue(elements) - Creates an queue with elements.

Methods

  • add(position, element) - Add the element in the position.
  • remove(position) - Delete the element from the position.
  • index(position) - Get the element from the position.
  • display() - Display all the elements.
  • get_elements() - Get all the elements.
  • get_length() - Get the length.

Methods - Specially for Linked List, Double Ended Queue

  • add_first() - Add the element at the first position.
  • add_last() - Add the element at the last position.
  • remove_first() - Remove the element from the first position.
  • remove_last() - Remove the element from the last position.

How to install

  • Open your command prompt and enter the below command.
pip install easydsi

How to use

  • Import the library in your project.
import easydsi as dsi
  • Initialize the data structure.
stack = dsi.stack([1, 2, 3])
  • Use the data structure.
stack.display()

How to build and upload to PyPI

Source Distribution

pip install setuptools twine
python setup.py sdist
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

Wheel File

pip install setuptools wheel
python setup.py bdist_wheel
twine upload dist/*

Hits

Change Log

1.0.5 (12/06/2022)

  • Double-ended queue has been added.

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

easydsi-1.1.2.tar.gz (6.0 kB view hashes)

Uploaded Source

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