Skip to main content

Algo-lib (the Algorithm Library)

This is a simple example package. It contains two searching algorithms. The purpose of this repo is to practice packaging a library for distribution.

For package distribution information and release history, see: https://pypi.org/project/algo-lib/

Quick Start

  1. Install algo-lib from the command line using pip.
python3 -m pip install --upgrade algo-lib

Example Usage

  1. Binary Search
from algo_lib import search

lst = [1, 50, 99, 150, 40000]
targetValue = 99

#binary search returns the index of a target value if present in a sorted list
targetIndex = search.binary(lst, 0, len(lst) - 1, targetValue) #targetIndex is 2
  1. Linear Search
from algo_lib import search

lst = [5, 1, 2, 100, 41, -1]
targetValue = -1

#linear search returns the index of a target value if present in list
targetIndex = search.binary(lst, targetValue) #targetIndex is 5
  1. Merge Sort
from algo_lib import sort

lst = [5, 1, 2, 100, 41, -1]

#merge sort takes a list argument, and sorts it in either increasing or decreasing order
targetIndex = sort.merge(lst) #lst is [-1, 1, 2, 5, 41, 100]

Metadata

Release files for algo-lib 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algo-lib 0.0.5
File Size Uploaded Provenance
algo-lib-0.0.5.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for algo-lib 0.0.5
File Interpreter ABI Platform
algo_lib-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / algo-lib-0.0.5.tar.gz

Download URL algo-lib-0.0.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d4309d634f51cf2e2b6dcf283aca919fd9f3dc6fb93d1fdada877dfbceea6e12
BLAKE2b-256 checksum
How to use checksums
7f6ca7cb7ef7fc53d6a55ecc38f58cbffb9ba8986962bccb1502dcc8650a5216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

Release files / algo_lib-0.0.5-py3-none-any.whl

Download URL algo_lib-0.0.5-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dd5ac97cf92c4213eff0363f87b5ca9af11a79d19afd96a37464c071ba147b9
BLAKE2b-256 checksum
How to use checksums
0cba6c06850bf3f8b97c8884f79761eeee81a227df385d279192b0550af43c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

Security for algo-lib 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page