The library which helps developers to implement data structures & algorithms easily without coding everything.
Project description
easydsi 1.0.5
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.
- getElements() - Get all the elements.
- getLength() - Get the length.
Methods - Specially for Linked List, Double Ended Queue
- addAtFirst() - Add the element at the first position.
- addAtLast() - Add the element at the last position.
- removeAtFirst() - Remove the element from the first position.
- removeAtLast() - Remove the element from the last position.
How to install
- Go to your command prompt and type the following command.
pip install easydsi
How to use
- Import the library in your project.
import easydsi as ds
- Initialize the data structure.
stack = ds.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/*
Change Log
1.0.5 (12/06/2022)
- Double-ended queue has been added.
Project details
Release history Release notifications | RSS feed
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.0.5.tar.gz
(4.9 kB
view hashes)