AlgoEdu
AlgoEdu is an educational Python toolkit for learning and exploring classic algorithms.
It provides simple implementations of searching and sorting algorithms along with tools for viewing their source code and learning about their characteristics.
Features
- Searching algorithms
- Sorting algorithms
- Algorithm complexity information
- Source code inspection
- Simple Python API
- No external runtime dependencies
Installation
pip install algo-edu
Usage
Searching
from algo.search import linear_search, binary_search
numbers = [10, 20, 30, 40, 50]
print(linear_search(numbers, 30))
# 2
print(binary_search(numbers, 40))
# 3
Sorting
Sorting functions return a new sorted list without modifying the original list.
from algo.sort import quick_sort, merge_sort
numbers = [5, 2, 8, 1, 3]
print(quick_sort(numbers))
# [1, 2, 3, 5, 8]
print(merge_sort(numbers))
# [1, 2, 3, 5, 8]
print(numbers)
# [5, 2, 8, 1, 3]
View Algorithm Information
Use algo.info to explore information about an algorithm.
from algo.info import get_info
info = get_info("quick_sort")
print(info)
You can also print formatted information directly:
from algo.info import show_info
show_info("binary_search")
View Source Code
Use algo.code to inspect the implementation of an algorithm.
from algo.code import get_code
print(get_code("binary_search"))
Or:
from algo.code import show_code
show_code("quick_sort")
Available Algorithms
Searching
- Linear Search
- Binary Search
- Jump Search
- Interpolation Search
- Exponential Search
- Ternary Search
- Fibonacci Search
- First Occurrence
- Last Occurrence
- Search Range
Sorting
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
- Counting Sort
- Radix Sort
- Bucket Sort
Learning-Oriented Design
AlgoEdu is designed with learning in mind.
Alongside the algorithm implementations, the package provides information about:
- Time complexity
- Space complexity
- Stability
- Whether sorted input is required
- Advantages and disadvantages
- Suitable use cases
This makes it useful not only for using algorithms, but also for studying and comparing them.
Requirements
- Python 3.10 or newer
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for algo-edu 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| algo_edu-0.1.0.tar.gz | 11.0 kB | With provenance | Details for algo_edu-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| algo_edu-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for algo_edu-0.1.0-py3-none-any.whl |
Total release size: 22.6 kB
Release files / algo_edu-0.1.0.tar.gz
| Download URL | algo_edu-0.1.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b41725226384e1d527175d2cfe9528c416a91abafd8c647b4e5503d86ae2211a
|
|
BLAKE2b-256 checksum How to use checksums |
a2e0b1c6829f80a385f305f11e0a73a8b065d146e0590bc677f7d4e6e7fa597d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / algo_edu-0.1.0-py3-none-any.whl
| Download URL | algo_edu-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34b26135e73df6a4a733c70ca922c9ed1bf911c8d2ef3c4d4c21fc2a6704714a
|
|
BLAKE2b-256 checksum How to use checksums |
186dba8a336a09520b46985c830ab60af8377499d3c71719031a60cfb0db880e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logSecurity for algo-edu 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for algo_edu-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.