Skip to main content

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 handling
  • application/: orchestration and input validation
  • algorithms/: reusable algorithm implementations

Quality Checks

ruff format --check .
ruff check .
mypy
pytest

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

kuroki_algorithm_toolkit-0.1.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for kuroki_algorithm_toolkit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5bf9acd6aeb60c86308a007728ed17ada909559c476e78650e6d03efb21819e6
MD5 09e42190d9126aff2da18413243613a7
BLAKE2b-256 e6464966a23278d6d5ed1127d39bd28c6f16efd739134448c800fd05a8acc39a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kuroki_algorithm_toolkit-0.1.1.tar.gz:

Publisher: publish.yml on inmaginebreaker-beep/algorithm-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kuroki_algorithm_toolkit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4db16369264fae0943ece705b5d17ff40257b1a162bbd434ed5324ffabfb4037
MD5 b2ef99203a8d504848562d854cc0c1df
BLAKE2b-256 a220c4376bba3f5c2234c3481f0265d5ce7f06000a2809fb666cfe3a5ba5a155

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page