algopack-0.0.4
توضیحات
Implementation of various common CS algortihms in Cython
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | algopack-0.0.4 |
| نام | algopack |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Divya Jain |
| ایمیل نویسنده | dkj@somaiya.edu |
| آدرس صفحه اصلی | https://github.com/divykj/algopack |
| آدرس اینترنتی | https://pypi.org/project/algopack/ |
| مجوز | MIT |
========
algopack
========
Implementation of various common CS algorithms in Cython
Usage
=====
Installation
------------
.. code-block:: shell
$ pip install algopack
Examples
--------
Sorting:
.. code-block:: python3
from algopack import sort
my_array = [10, 0, 5, 15, -5]
sorted_array = sort.bubble(my_array)
print(sorted_array)
# [-5, 0, 5, 10, 15]
Testing
-------
Clone the repository::
$ git clone https://github.com/divykj/algopack.git
$ cd algopack
Install requirements::
$ pip install -r requirements.txt
$ pip install -r requirements_dev.txt
Run tests::
$ doit tests
Modules
=======
- `sort <algopack/sort.pyx>`_
- `bubble <algopack/sort.pyx#L2-L18>`_
- `bucket <algopack/sort.pyx#L22-L38>`_
- `cocktail_shaker <algopack/sort.pyx#L42-L64>`_
- `comb <algopack/sort.pyx#L68-L90>`_
- `counting <algopack/sort.pyx#L94-L124>`_
- `gnome <algopack/sort.pyx#L128-L139>`_
- `heap <algopack/sort.pyx#L143-L175>`_
- `insertion <algopack/sort.pyx#L179-L196>`_
- `merge <algopack/sort.pyx#L200-L238>`_
- `pancake <algopack/sort.pyx#L242-L255>`_
- `quick <algopack/sort.pyx#L259-L287>`_
- `radix <algopack/sort.pyx#L291-L315>`_
- `selection <algopack/sort.pyx#L319-L335>`_
- `shell <algopack/sort.pyx#L339-L358>`_
نیازمندی
| مقدار | نام |
|---|---|
| ==0.32.0 | doit |
| ==5.4.1 | pytest |
| ==0.29.16 | Cython |
| ==3.1.1 | twine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl algopack-0.0.4:
pip install algopack-0.0.4.whl
نصب پکیج tar.gz algopack-0.0.4:
pip install algopack-0.0.4.tar.gz