A command-line toolkit for practicing Python algorithms
Project description
Algorithm Toolkit
一个用于学习 Python 算法、项目结构和软件工程实践的项目。
Features
- Two Sum
- Find Max
- Reverse Array
Requirements
- Python 3.10+
Installation
Clone the repository: powershell git clone https://github.com/inmaginebreaker-beep/algorithm-toolkit.git cd algorithm-toolkit
Create and activate a virtual environment:
python -m venv .venv ..venv\Scripts\activate
Install the project:
python -m pip install -e .
Install development dependencies:
python -m pip install -e ".[dev]"
Usage
from algorithm_toolkit.algorithms.array import two_sum
result = two_sum([2, 7, 11, 15], 9) print(result)
Run
python -m algorithm_toolkit.main
Project Structure
algorithm-toolkit/
├── src/
│ └── algorithm_toolkit/
│ ├── init.py
│ ├── main.py
│ └── algorithms/
│ ├── init.py
│ └── array.py
├── tests/
├── .gitignore
├── pyproject.toml
└── README.md
License
This project is for educational purposes.
Code Quality
Format the project:
ruff format .
Run static checks:
ruff check .
Verify formatting without modifying files:
ruff format --check .
Architecture
The project separates responsibilities into three layers:
main.py: application entry point and top-level error handlingapplication/: orchestration and input validationalgorithms/: reusable algorithm implementations
Quality Checks
ruff format --check .
ruff check .
mypy
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 kuroki_algorithm_toolkit-0.1.1.tar.gz.
File metadata
- Download URL: kuroki_algorithm_toolkit-0.1.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bf9acd6aeb60c86308a007728ed17ada909559c476e78650e6d03efb21819e6
|
|
| MD5 |
09e42190d9126aff2da18413243613a7
|
|
| BLAKE2b-256 |
e6464966a23278d6d5ed1127d39bd28c6f16efd739134448c800fd05a8acc39a
|
Provenance
The following attestation bundles were made for kuroki_algorithm_toolkit-0.1.1.tar.gz:
Publisher:
publish.yml on inmaginebreaker-beep/algorithm-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kuroki_algorithm_toolkit-0.1.1.tar.gz -
Subject digest:
5bf9acd6aeb60c86308a007728ed17ada909559c476e78650e6d03efb21819e6 - Sigstore transparency entry: 2339137010
- Sigstore integration time:
-
Permalink:
inmaginebreaker-beep/algorithm-toolkit@96ef5cc1103f652243eb60e22b2e5cdd887cdd47 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/inmaginebreaker-beep
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@96ef5cc1103f652243eb60e22b2e5cdd887cdd47 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4db16369264fae0943ece705b5d17ff40257b1a162bbd434ed5324ffabfb4037
|
|
| MD5 |
b2ef99203a8d504848562d854cc0c1df
|
|
| BLAKE2b-256 |
a220c4376bba3f5c2234c3481f0265d5ce7f06000a2809fb666cfe3a5ba5a155
|
Provenance
The following attestation bundles were made for kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on inmaginebreaker-beep/algorithm-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl -
Subject digest:
4db16369264fae0943ece705b5d17ff40257b1a162bbd434ed5324ffabfb4037 - Sigstore transparency entry: 2339137014
- Sigstore integration time:
-
Permalink:
inmaginebreaker-beep/algorithm-toolkit@96ef5cc1103f652243eb60e22b2e5cdd887cdd47 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/inmaginebreaker-beep
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@96ef5cc1103f652243eb60e22b2e5cdd887cdd47 -
Trigger Event:
push
-
Statement type: