A minimal Python algorithms library with clean implementations of search algorithms
Project description
algokit-py
A lightweight Python algorithms library with clean, well-documented, and tested implementations. Designed for learning, interviews, and real-world algorithm reasoning.
Features
Search Algorithms
- Linear Search
- Binary Search (iterative, invariant-based)
Sorting Algorithms
- Insertion Sort (in-place, stable)
Usage
Install
pip install algokit-py
Search
from algokit_py.search import linear_search, binary_search
print(linear_search([1, 2, 3], 2))
print(binary_search([1, 2, 3], 2))
Sorting
from algokit_py.sort import insertion_sort
data = [3, 1, 2]
insertion_sort(data)
print(data) # [1, 2, 3]
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
algokit_py-0.2.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algokit_py-0.2.0.tar.gz.
File metadata
- Download URL: algokit_py-0.2.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c06f651ee19d9d862517d1cad636866139903f3c086af2e7a99d1c32d21cff83
|
|
| MD5 |
a565558b35a8af5cf6fa8bfe0f7563c4
|
|
| BLAKE2b-256 |
caad97a50c3786686b0ec0e26e4bf37ba640c072577ce70666b11bf72c2ac7ed
|
File details
Details for the file algokit_py-0.2.0-py3-none-any.whl.
File metadata
- Download URL: algokit_py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e13dd9eac8a3c3878ddb44cbbd55130bd7496f8fa56c0cca01da1bd0ec82c2d3
|
|
| MD5 |
48b1d606d39bdac7da29253db8d406be
|
|
| BLAKE2b-256 |
b1be1d768c77b40abe32eb16fa66da2cc63edcc67eb48e0296546c24d082f224
|