Skip to main content

A Python algorithms module for learning

Project description


.. image::
:alt: Documentation Status

.. image::
:alt: Python 3.6

| A Python module to learn all the major algorithms on the go!
| Purely for educational purposes


* Super easy to use
* A very easy to understand `Documentation <>`_
* Get the code right in your editor
* Get time complexities on the go


* Just fire the following command in your terminal:


pip3 install pygorithm

- | It's that easy. If you are using Python 2.7 use pip instead. Depending on your
| permissions, you might need to use ``pip install --user pygorithm`` to install.

* Or you can download the source code from `here <>`_, and then just install the package using


python install

Quick Start Guide

* To sort your list

.. code:: python

>>> from pygorithm.sorting import bubble_sort
>>> my_list = [12, 4, 3, 5, 13, 1, 17, 19, 15]
>>> sorted_list = bubble_sort.sort(my_list)
>>> print(sorted_list)
>>> [1, 3, 4, 5, 12, 13, 15, 17, 19]

* To get the code for function used

.. code:: python

>>> from pygorithm.sorting import bubble_sort
>>> code = bubble_sort.get_code()
>>> print(code)

* To get the time complexity of an algorithm

.. code:: python

>>> from pygorithm.sorting import bubble_sort
>>> time_complexity = bubble_sort.time_complexities()
>>> print(time_complexity)

* To see all the available functions in a module, you can just type ``help()`` with the module name as argument. For example,

.. code:: python

>>> from pygorithm import sorting
>>> help(sorting)
Help on package pygorithm.sorting in pygorithm:

pygorithm.sorting - Collection of sorting methods



* Just type in the following command to run the tests

python3 -m unittest

* This will run all the tests defined in the files of the ``tests/`` directory


If you have found my softwares to be of any use to you, do consider helping me pay my internet bills. This would encourage me to create many such softwares :)

- `PayPal <>`_
- `₹ (INR) <>`_

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygorithm, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pygorithm-1.0.4-py2.py3-none-any.whl (98.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pygorithm-1.0.4.tar.gz (68.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page