Skip to main content

Python algorithms3

Project description

PyPI version Open Source Helpers Build Status Coverage Status

Pythonic Data Structures and Algorithms

Minimal and clean example implementations of data structures and algorithms in Python 3.

Contributing

Thanks for your interest in contributing! There are many ways to contribute to this project. Get started here

Tests

Use unittest

For running all tests write down:

$ python3 -m unittest discover tests

For running some specific tests you can do this as following (Ex: sort):

$ python3 -m unittest tests.test_sort

Use pytest

For running all tests write down:

$ python3 -m pytest tests

Install

If you want to use the API algorithms in your code, it is as simple as:

$ pip3 install https://github.com/seanlab3/algorithms

You can test by creating a python file: (Ex: use merge_sort in sort)

from algorithms.sort import merge_sort

if __name__ == "__main__":
    my_list = [1, 8, 3, 5, 6]
    my_list = merge_sort(my_list)
    print(my_list)

Uninstall

If you want to uninstall algorithms, it is as simple as:

$ pip3 uninstall -y algorithms

List of Implementations

Contributors

seanlab1, seanlab3

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

seanalgorithms3-0.1.tar.gz (244.4 kB view details)

Uploaded Source

Built Distribution

seanalgorithms3-0.1-py3-none-any.whl (464.6 kB view details)

Uploaded Python 3

File details

Details for the file seanalgorithms3-0.1.tar.gz.

File metadata

  • Download URL: seanalgorithms3-0.1.tar.gz
  • Upload date:
  • Size: 244.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.1

File hashes

Hashes for seanalgorithms3-0.1.tar.gz
Algorithm Hash digest
SHA256 91f00ffd57e9373bf9c3a1eed6697e36e9d450663e89441a19469796973b5ad7
MD5 08c854fade5224ac0b39b0ffc5d18b10
BLAKE2b-256 c9019ecde8a19b725dbdde05e37eca39f03bd32f84dd76c6e8f1bd0142a83c0f

See more details on using hashes here.

File details

Details for the file seanalgorithms3-0.1-py3-none-any.whl.

File metadata

  • Download URL: seanalgorithms3-0.1-py3-none-any.whl
  • Upload date:
  • Size: 464.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.1

File hashes

Hashes for seanalgorithms3-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b44f39922158c7716d4ad7ebda2bcb83292ba6bb7d6dfb17a06371def3a1b3be
MD5 5f6da8b4e3525ded48501b8d92909b79
BLAKE2b-256 e5a15748fd8e34c3f160f61d3ba245c7de7aeb7cc59015bd7436af2bc2bb3a31

See more details on using hashes here.

Supported by

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