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.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

RecursionTree-1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: RecursionTree-1.1.tar.gz
  • Upload date:
  • Size: 5.8 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.1.tar.gz
Algorithm Hash digest
SHA256 a22eb6621f7aa5e2ff47bd55dd8670f4edd21d46240661ac365c81b863831509
MD5 8ae6e6997a6011aa4f95d4e0d50a6554
BLAKE2b-256 e7d84b3880dc5faa3ea23f3ea44706f42287c4af5371974aac09516ad9ca4b86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: RecursionTree-1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4861b80806ef3ae647124ac925cb7c5241f27c8957f29b68bbc23a1ce9434378
MD5 0bbafca0fd10083e1ad095abd099c1b0
BLAKE2b-256 87c7e64696cbff1c7e6244bdadfebe42daacfb9a99be925946caebcb353ba8fd

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