Skip to main content

SpAlgo is a python library with special algorithms which will helps you in your education and your tasks.

Project description

SpAlgo

spalgo

Python version BSD Licence Project Initiator Repo Size Downloads PyPI version shields.io GitHub Workflow Status

ForTheBadge built-with-love

SpAlgo is a python library with special algorithms which can help you in your education or any other purpose.

Overview

SpAlgo is a python library with special algorithms which can help you in your education or any other purpose. By now, this library contains some algorithms for the following items and other algorithms will be added soon.

  • Sequence
  • Array
  • Matrix
  • Knapsack
  • Closest Pair

life is so short so you don't need to spend your time implementing these algorithms so we recommend you use SpAlgo if you want to have a faster experience.

Usage

In the following paragraphs, I am going to describe how you can get and use SpAlgo for your own projects.

Getting it

To download SpAlgo, either fork this github repo or simply use Pypi via pip.

$ pip install SpAlgo

Using it

SpAlgo was programmed with ease-of-use in mind. First, import Matrix, Array and Subsequence from SpAlgo

for more exact usage documents you can see the example files here

from SpAlgo import Matrix, Array, MaxSubseq, Knapsack, ClosestPair, Point

then you can them bassed on what you need.

  1. Array the current available methods are:
findPeak()
findAllPeak()
findFisrtPeak()
findMaxPeak()
findMaxPeak()
  1. Matrix the current available methods are:
findPeak()
findAllPeak()
  1. Sequence the current available methods are:
maximmum_sum()
subsequence()
  1. Knapsack the current available methods are:
getPack()
getTotalValue()
getUsedWeight()
getWastedWeight()
getCrumbledItem()
  1. ClosestPair the current available methods are:
get_min_distance()
get_closest_pair()

Support

Supported versions of python for this library are as follow:

License

This project is under MIT license read it here:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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

SpAlgo-0.4.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

SpAlgo-0.4.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file SpAlgo-0.4.0.tar.gz.

File metadata

  • Download URL: SpAlgo-0.4.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for SpAlgo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3e971abac2b3d4e618b621a9059ddf359a41b002a9443b33ab63a97c6af2e16d
MD5 ec1726bb7799d1db075c6c3dd9958a8a
BLAKE2b-256 45e107f0b81b7c129e4f4c129cb55892be80e38abea248132d07f75fc79b03da

See more details on using hashes here.

File details

Details for the file SpAlgo-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: SpAlgo-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for SpAlgo-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73164030cb0376666d7c0901886d081c2a7c78c1757392ea0fcd55ac2f22be4f
MD5 d9d1bea80fea818c962de67ee564c07e
BLAKE2b-256 375ea900f769db7e98a6e86e86c52785142e9824a81639a71d834a0a1edaa467

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