Skip to main content

No project description provided

Project description

STALib

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.

Algorithms:

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

Example

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

:noindex:

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] setup.py 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 details)

Uploaded Source

Built Distribution

stalib-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl (129.0 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file stalib-0.1.1.tar.gz.

File metadata

  • Download URL: stalib-0.1.1.tar.gz
  • Upload date:
  • Size: 563.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.0

File hashes

Hashes for stalib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5b3b1e6d506a766d77f5d20906248117856df5ad5d46ad15c5330e72dbe9d16
MD5 f2b488e11e20a3c4dec495eadcdf9b6f
BLAKE2b-256 62627f7d289b15a87925b36ea42120c2dc53d9732cc67559e09d3f5a0385e8d4

See more details on using hashes here.

File details

Details for the file stalib-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: stalib-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 129.0 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.0

File hashes

Hashes for stalib-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4af9db2dbbd7743755050462079c58762d5503b8fdafd4d6ba41ecf3860fa204
MD5 ca5f49e5c2fe1280762f7bd28e14954d
BLAKE2b-256 1e41b4490daaa86ccdbb9f6846a9e3d56d7db7c67b063a20abd449437cd5c70c

See more details on using hashes here.

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