Skip to main content

Python algorithms

Project description

PyPI version Open Source Helpers Build Status Coverage Status

SEANLAB Algorithms 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 seanalgorithms

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

from seanalgorithms.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 seanalgorithms, it is as simple as:

$ pip3 uninstall -y seanalgorithms

List of Implementations

Contributors

seanlab1, seanlab3 email: newstein33@gmail.com

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

seanalgorithms-0.7.tar.gz (119.2 kB view details)

Uploaded Source

Built Distribution

seanalgorithms-0.7-py3-none-any.whl (192.7 kB view details)

Uploaded Python 3

File details

Details for the file seanalgorithms-0.7.tar.gz.

File metadata

  • Download URL: seanalgorithms-0.7.tar.gz
  • Upload date:
  • Size: 119.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.9

File hashes

Hashes for seanalgorithms-0.7.tar.gz
Algorithm Hash digest
SHA256 171fbf0f8faeba90906004be3a7bd0de5cf2091f200d851171e4c7fa3a84c8ac
MD5 9e538ddd0a8255d0e71705083f4c557b
BLAKE2b-256 eb7954db4c9e82d49475582e0191f05df1ee0426486c7a6cb8d3b1789ba863ae

See more details on using hashes here.

File details

Details for the file seanalgorithms-0.7-py3-none-any.whl.

File metadata

  • Download URL: seanalgorithms-0.7-py3-none-any.whl
  • Upload date:
  • Size: 192.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.9

File hashes

Hashes for seanalgorithms-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4a572144f4089c3d790157e46826f85e946be40aa00e5253f5439908f87e4e37
MD5 bee9d80bf381bba113662fcbe2310307
BLAKE2b-256 5aa2a88a53e5ff8702b4f5293cd9570784d7880789c6084b5a62d8f8aebfc441

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