{"id":15048017,"url":"https://github.com/sanoguzhan/stalib","last_synced_at":"2025-05-15T17:30:52.469Z","repository":{"id":56074847,"uuid":"301547696","full_name":"sanoguzhan/STAlib","owner":"sanoguzhan","description":"Standard Template and algorithms library of C++ for Python with C-Python API","archived":false,"fork":false,"pushed_at":"2020-12-15T11:41:17.000Z","size":184,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T15:18:31.413Z","etag":null,"topics":["algorithms-library","cpp11","cpython-api","cython-wrapper","python"],"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/sanoguzhan.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2020-10-05T21:46:31.000Z","updated_at":"2020-12-15T11:41:19.000Z","dependencies_parsed_at":"2022-08-15T12:40:38.821Z","dependency_job_id":null,"html_url":"https://github.com/sanoguzhan/STAlib","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanoguzhan%2FSTAlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanoguzhan%2FSTAlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanoguzhan%2FSTAlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanoguzhan%2FSTAlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanoguzhan","download_url":"https://codeload.github.com/sanoguzhan/STAlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388038,"owners_count":22062971,"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-library","cpp11","cpython-api","cython-wrapper","python"],"created_at":"2024-09-24T21:06:57.861Z","updated_at":"2025-05-15T17:30:47.453Z","avatar_url":"https://github.com/sanoguzhan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# STALib\n\n\n![build](https://github.com/sanoguzhan/STAlib/workflows/build/badge.svg)\n[![Downloads](https://static.pepy.tech/personalized-badge/stalib?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=orange\u0026left_text=Downloads)](https://pepy.tech/project/stalib)\n![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)\n[![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges)\n\nStandard Template and algorithms library of C++ for Python with C-Python API\n\nStalib Library includes complementary algotrithms and templates to Python's ``built-in``.\nThe algorithms implemented in C++ and extended to Python and compitable with Python's ``list`` objects.\n\n\nAlgorithms:\n\n\n\n\n| Name          | Type          | Worst-case Performance                   | Module\n| ------------- |:-------------:| --------------------------------:|-------------:|\n| [Buble Sort](https://en.wikipedia.org/wiki/Bubble_sort)    |  Sort       | O(n^2)|algorithms\n| [Merge Sort](https://en.wikipedia.org/wiki/Merge_sort)     | Sort      |   O(nlogn) |algorithms\n| [Quick Sort](https://en.wikipedia.org/wiki/Quicksort)| Sort    |    O(n^2) |algorithms\n| [Binary Search](https://en.wikipedia.org/wiki/Binary_search_algorithm)| Search    |     *O(Logn) |algorithms\n\n\n\n*Sorted Array\n\n------\n## Getting started\n\n\nTo get started, install the library with [pip](https://pip.pypa.io/en/stable/)\n\n```bash\n    pip install stalib\n```\n  \n\n## Example \n\n\nImport the algorithms or templates:\n\n```python\n\n    \u003e\u003e\u003e from stalib.algorithms import merge_sort\n    \u003e\u003e\u003e iterable = [1,9,2,4]\n    \u003e\u003e\u003e list(merge_sort(iterable))\n    [1, 2, 4, 9]\n\n```\n\nFor the full listing of functions, see [stalib](https://pypi.org/project/stalib/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanoguzhan%2Fstalib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanoguzhan%2Fstalib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanoguzhan%2Fstalib/lists"}