Skip to main content

Pythonic Data Structures and Algorithms

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 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

Thanks to all the contributors who helped in building the repo.

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

algorithms-0.1.4.tar.gz (137.8 kB view details)

Uploaded Source

Built Distribution

algorithms-0.1.4-py3-none-any.whl (209.2 kB view details)

Uploaded Python 3

File details

Details for the file algorithms-0.1.4.tar.gz.

File metadata

  • Download URL: algorithms-0.1.4.tar.gz
  • Upload date:
  • Size: 137.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for algorithms-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ccd05e13d4ad169b0061028b16b16e7f67e884d237a8bbff13b354ee5d31f34c
MD5 58b1658aa110bde9635a642c86702c6c
BLAKE2b-256 7f2f1b2201adfeb896499f248d932698b18a68d142bcf88840987ee10e08c73a

See more details on using hashes here.

File details

Details for the file algorithms-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: algorithms-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 209.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for algorithms-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee76609fdf99dc3c6f130f3923b77fc12e8636957791caa89e06743d524b4e15
MD5 9a8431309bc9646ec6dd06b163940373
BLAKE2b-256 31a4a94b159b94d545ab7662b659f94b36f3b469b982fe873a6d956e4ffdc0d5

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