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

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_animate-0.0.7.tar.gz
  • Upload date:
  • Size: 6.9 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.7.tar.gz
Algorithm Hash digest
SHA256 57a6323a98a4711737bdee6b62f97f78a9ea9532afcb300afc357d071b13e6a1
MD5 f06070b040703feabeb224b3a73f66a0
BLAKE2b-256 38bba564b5d92d270a66f92754be50b038d54525dda146bb5ebb62f75d119cfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_animate-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fdaf300cc091f7b20b6472f4d2cfb45021e9a3cc16504f48c65b7b5ffd6f5bc6
MD5 fb494ca0b26d22ea42dc1ce08202229e
BLAKE2b-256 106e4b6403235def3bacdd651473726d097d86b202a17d7573ca68218591f09a

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