Skip to main content

A package to animate your function call step by step in terminal

Project description

code_animate

Allows you to animate your code step by step.

Note - press Enter to conitnue to next step

Installation

pip install code_animate

Quickstart

from code_animate import animate

@animate
def triangle(height: int) -> str:
    output: str = ""

    for i in range(height):
        num_stars: int = i + 1
        stars_str: str = "*" * num_stars
        output += stars_str + "\n"

    return output

print(triangle(4))

"""
def triangle(height: int) -> str:         
                                          
    output: str = ""                      {'height': 4, 'output': ''}
    for i in range(height):               
        num_stars: int = i + 1            {'i': 3, 'num_stars': 4}
        stars_str: str = "*" * num_stars  {'stars_str': '****'}
        output += stars_str + "\n"        {'output': '*\n**\n***\n****\n'}
    return output     
"""

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

code_animate-0.0.10.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

code_animate-0.0.10-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file code_animate-0.0.10.tar.gz.

File metadata

  • Download URL: code_animate-0.0.10.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for code_animate-0.0.10.tar.gz
Algorithm Hash digest
SHA256 ab713b005f89335db040b3e9c566cbc2ae0cf29178c94a0b8258aa94d913a8fb
MD5 8a7ad45920cb58014476e57c2ee22630
BLAKE2b-256 977a98d63b652218d7685be63b57ff4448931bb599ba35b656f341b335dd8b31

See more details on using hashes here.

File details

Details for the file code_animate-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: code_animate-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for code_animate-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9d8f3773422624fb902acbe98110f927aadd347249647e662a5340daa55738dc
MD5 dd40a1c8d44e2d31433256cc34c76e4e
BLAKE2b-256 d4a84a75027144847d9f2fefd4fb2eba77cd5b93145a2ff07adbf8f0691502b2

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