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.9.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.9-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_animate-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 1491eeb5002387d96fc776e2997ee19138e5e030772cc18fe4a90779e7ee7540
MD5 d0c1b6bdbb2668fde52be7be1837ef94
BLAKE2b-256 65377ece1393702b6e536665fbafb5e38300d4159d9b6429b6d7297ccde61493

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_animate-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 afd455408c1f303e1a2555a8a093ebea33219daa8f0b53e78f4d6a59f9de6277
MD5 045ef78ecea7cd27c2a941e40f48f9b8
BLAKE2b-256 9d82fe54f555839ac40003f093f71f9e0001ca4b8b7b8170dfdd084e40982e91

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