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

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_animate-0.0.4.tar.gz
  • Upload date:
  • Size: 6.2 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.4.tar.gz
Algorithm Hash digest
SHA256 950a2c9bc7274b35d18956aec61227f8570cda5019f1051c8038d6d888ff019c
MD5 e4b63c68f9c75db37b4beec779713f22
BLAKE2b-256 043d5eee40cb699cdd5d9dbfeac5fc9ef532de64a92cdcf6f4da5ff3d3bbf60e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_animate-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef8a7f635b72ecc3ac159429dbed57f7afede6aa189f6660348cfc0cb3f1a5a
MD5 93d10f0d9f16faa32523beda324b7840
BLAKE2b-256 09d6669201beb39a9d30b09456e692c75784c0e50ab4f1c1dfa44433bedce91e

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