Skip to main content

A package to animate your code step by step in temrinal

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.5.tar.gz (6.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.5-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for code_animate-0.0.5.tar.gz
Algorithm Hash digest
SHA256 561d30379552c369e64daeb66007b18135cc8f0fc19d1fce7ca3c6ce99638c28
MD5 f26585a0a9a418a261d0f787a7ff68ac
BLAKE2b-256 18f77560c4417a1591369c1ea533f2aad85d29e6f27a23053ea1b1a5639ea638

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for code_animate-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b16e7a24e7191e73c64fc351645b2aabc67c4d64b7691e484feb1f91e2e68ee1
MD5 14458cc6eae4e2b7da48d9ac30db0ace
BLAKE2b-256 1108480cefc578f759142f31c493963b0bbb005f84b7c942955a0de6ca994924

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