{"id":15442649,"url":"https://github.com/omkarpathak/pygorithm","last_synced_at":"2025-10-08T18:05:02.604Z","repository":{"id":55539235,"uuid":"98837133","full_name":"OmkarPathak/pygorithm","owner":"OmkarPathak","description":"A Python module for learning all major algorithms","archived":false,"fork":false,"pushed_at":"2023-03-10T12:43:51.000Z","size":4579,"stargazers_count":4401,"open_issues_count":8,"forks_count":508,"subscribers_count":153,"default_branch":"master","last_synced_at":"2025-05-06T08:25:07.114Z","etag":null,"topics":["algorithms","data-structures","modules","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OmkarPathak.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-07-31T01:47:38.000Z","updated_at":"2025-05-05T01:11:11.000Z","dependencies_parsed_at":"2023-09-29T08:52:03.600Z","dependency_job_id":null,"html_url":"https://github.com/OmkarPathak/pygorithm","commit_stats":{"total_commits":363,"total_committers":32,"mean_commits":11.34375,"dds":"0.41597796143250687","last_synced_commit":"be35813729a0151da1ac9ba013453a61ffa249b8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2Fpygorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2Fpygorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2Fpygorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmkarPathak%2Fpygorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OmkarPathak","download_url":"https://codeload.github.com/OmkarPathak/pygorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","data-structures","modules","python3"],"created_at":"2024-10-01T19:29:03.003Z","updated_at":"2025-10-08T18:05:02.541Z","avatar_url":"https://github.com/OmkarPathak.png","language":"Python","readme":"\nPygorithm\n=========\n\n\n.. image:: https://img.shields.io/packagist/l/doctrine/orm.svg\n   :target: https://github.com/OmkarPathak/pygorithm/blob/master/LICENSE\n   :alt: Packagist\n\n.. image:: http://pepy.tech/badge/pygorithm\n   :target: http://pepy.tech/project/pygorithm\n   :alt: Downloads\n\n.. image:: https://readthedocs.org/projects/pygorithm/badge/?version=latest\n   :target: http://pygorithm.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. image:: https://img.shields.io/badge/Python-3.6-brightgreen.svg\n   :target: https://github.com/OmkarPathak/pygorithm\n   :alt: Python 3.6\n   \n.. image:: https://img.shields.io/badge/Say%20Thanks-%F0%9F%A6%89-1EAEDB.svg \n   :target: https://saythanks.io/to/omkarpathak27@gmail.com\n   :alt: Say Thanks!\n   \n.. image:: https://img.shields.io/github/contributors/omkarpathak/pygorithm.svg\n   :target: https://github.com/OmkarPathak/pygorithm/graphs/contributors\n   :alt: Contributors\n\n| A Python module to learn all the major algorithms on the go!\n| Purely for educational purposes\n\n\n.. image:: https://images.gitads.io/pygorithm\n   :target: https://tracking.gitads.io/?campaign=gitads\u0026repo=pygorithm\u0026redirect=gitads.io\n\nFeatures\n~~~~~~~~\n\n* Super easy to use\n* A very easy to understand `Documentation \u003chttp://pygorithm.readthedocs.io/en/latest/\u003e`_\n* Get the code right in your editor\n* Get time complexities on the go\n\nInstallation\n~~~~~~~~~~~~\n\n* Just fire the following command in your terminal:\n\n::\n\n   pip3 install pygorithm\n\n- | It's that easy. If you are using Python 2.7 use pip instead. Depending on your\n  | permissions, you might need to use ``pip install --user pygorithm`` to install.\n\n* Or you can download the source code from `here \u003chttps://github.com/OmkarPathak/pygorithm\u003e`_, and then just install the package using\n\n::\n\n    python setup.py install\n\n\nQuick Start Guide\n~~~~~~~~~~~~~~~~~\n\n* To sort your list\n\n.. code:: python\n\n    \u003e\u003e\u003e from pygorithm.sorting import bubble_sort\n    \u003e\u003e\u003e my_list = [12, 4, 3, 5, 13, 1, 17, 19, 15]\n    \u003e\u003e\u003e sorted_list = bubble_sort.sort(my_list)\n    \u003e\u003e\u003e print(sorted_list)\n    \u003e\u003e\u003e [1, 3, 4, 5, 12, 13, 15, 17, 19]\n\n\n* To get the code for function used\n\n.. code:: python\n\n    \u003e\u003e\u003e from pygorithm.sorting import bubble_sort\n    \u003e\u003e\u003e code = bubble_sort.get_code()\n    \u003e\u003e\u003e print(code)\n\n\n* To get the time complexity of an algorithm\n\n.. code:: python\n\n    \u003e\u003e\u003e from pygorithm.sorting import bubble_sort\n    \u003e\u003e\u003e time_complexity = bubble_sort.time_complexities()\n    \u003e\u003e\u003e print(time_complexity)\n\n* To see all the available functions in a module, you can just type ``help()`` with the module name as argument. For example,\n\n.. code:: python\n\n    \u003e\u003e\u003e from pygorithm import sorting\n    \u003e\u003e\u003e help(sorting)\n        Help on package pygorithm.sorting in pygorithm:\n\n        NAME\n            pygorithm.sorting - Collection of sorting methods\n\n        PACKAGE CONTENTS\n            bubble_sort\n            bucket_sort\n            counting_sort\n            heap_sort\n            insertion_sort\n            merge_sort\n            modules\n            quick_sort\n            selection_sort\n            shell_sort\n\n    \nTests\n~~~~~\n\n* Just type in the following command to run the tests\n::\n\n    python3 -m unittest\n\n* This will run all the tests defined in the files of the ``tests/`` directory\n\n\nDonation\n~~~~~~~~\n\nIf 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 :)\n\n- `PayPal \u003chttps://paypal.me/omkarpathak27\u003e`_\n- `₹ (INR) \u003chttps://www.instamojo.com/@omkarpathak/\u003e`_\n","funding_links":["https://paypal.me/omkarpathak27"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarpathak%2Fpygorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomkarpathak%2Fpygorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarpathak%2Fpygorithm/lists"}