Skip to main content

No project description provided

Project description


build experimental unstable

Standard Template and algorithms library of C++ for Python with C-Python API

Stalib Library includes complementary algotrithms and templates to Python's built-in. The algorithms implemented in C++ and extended to Python and compitable with Python's list objects.


Name Type Worst-case Performance Module
Buble Sort Sort O(n^2) algorithms
Merge Sort Sort O(nlogn) algorithms
Quick Sort Sort O(n^2) algorithms
Binary Search Search *O(Logn) algorithms

*Sorted Array

Getting started

To get started, install the library with pip

    pip install stalib


Import the algorithms or templates:

    >>> from stalib.algorithms import merge_sort
    >>> iterable = [1,9,2,4]
    >>> list(merge_sort(iterable))
    [1, 2, 4, 9]

For the full listing of functions, see stalib

Version History


.. automodule:: stalib


0.1.1 (2020-12-01)

  • [fix] conftest error on coverage. [Oguzhan San]

  • [fix] exluded helper function for coverage report.

  • [fix] search algo import fixes and tests.

  • [feat] Bubble search string search

  • [fix] algorithms cython script bundle together. [Oguzhan San]

  • [doc] changed to md for README and added hyperlink for algorithms.

  • [feat] Quick sort algorithm.

0.1.0 (2020-11-08)

  • [Feat] Merge sort and Docs.

  • [Fix] deleted not linking to openmp for multi-threading.

  • [Fix] coverage module files include. [Oguzhan San]

  • [Fix] readme file input path fixed. [Oguzhan San]

  • [Feat] bubble_sort algorithm externed. [Oguzhan San]

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

stalib-0.1.1.tar.gz (563.0 kB view hashes)

Uploaded source

Built Distribution

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