Skip to main content

Builds recursive calls tree and saves it as a PNG file.

Project description

Recursion tree

Transforms recursive functions in graphical form.

Installation:

pip install RecursionTree

Usage:

@recursion_tree
def fact(x: int) -> int:
    return 1 if x <= 1 else x * fact(x-1)

Just add the 'recursion_tree' decorator to any recursive function. After the run, parameters of the call will be saved as recursion_tree.json. Additional settings might be used via settings.py.

Example of use:
fibo_calls

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

RecursionTree-1.3.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

RecursionTree-1.3-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file RecursionTree-1.3.tar.gz.

File metadata

  • Download URL: RecursionTree-1.3.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1rc1

File hashes

Hashes for RecursionTree-1.3.tar.gz
Algorithm Hash digest
SHA256 259a414e2ea43b6fc247b0b894f593fab304a84ff1a1aab8607aa9abd871b3c4
MD5 845a654e8195f65d684b5f30d2b94855
BLAKE2b-256 c8c0067534501fccdab4ecdc623e285b6317d4aeacc1045aee2d383d2c7757ed

See more details on using hashes here.

File details

Details for the file RecursionTree-1.3-py3-none-any.whl.

File metadata

  • Download URL: RecursionTree-1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1rc1

File hashes

Hashes for RecursionTree-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49b2209972d87178417d37581b19701f44a08266ea57b892b0c21a0017cac96f
MD5 d31dca2da14e4abc0c1130a9d86c4912
BLAKE2b-256 f91c6a45ed2669799e156366efc9ba47bd76d62ddc83432b1d2e5cde30426469

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