Skip to main content

Simple Debugger for Python

Project description

Simple-Python-Debugger

Simple Debugger Package for python.

Example

Code

from spdb import debug


@debug
def binary_search(list_, value):
    list_size = len(list_) - 1

    index0 = 0
    indexn = list_size
    while index0 <= indexn:
        middle = (index0 + indexn) // 2

        if list_[middle] == value:
            return middle

        if value > list_[middle]:
            index0 = middle + 1
        else:
            index0 = middle - 1

    if index0 > indexn:
        return None


binary_search([x for x in range(10)], 7)

Output

binary_search(args: ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 7) kwargs: {}) -> 7
Time of Execution: 0.00

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

simple-python-debugger-0.1.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_python_debugger-0.1.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file simple-python-debugger-0.1.2.tar.gz.

File metadata

  • Download URL: simple-python-debugger-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for simple-python-debugger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0462c0a584d63cedac01992431f3cf3c544fdcbf795ab47c5b20ba43bc02871d
MD5 9b043d513ef94963b38908a6f0e2d7fa
BLAKE2b-256 57a9898b6a3308865727f3ec5fa2fabaed9c23458772f380c67128d7c68b723b

See more details on using hashes here.

File details

Details for the file simple_python_debugger-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: simple_python_debugger-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for simple_python_debugger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d34d41a5b286121fa78f4db12eaa509ef66e469d8d694d9f415c5fb6066726cb
MD5 a5ca218da0f1ce87db4b3cc6f977f290
BLAKE2b-256 8930534ddffa5996d5d39b82d535d3aee5c956d57a3740d42111ebe512d0d739

See more details on using hashes here.

Supported by

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