Skip to main content

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     
"""

Release files for code-animate 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code-animate 0.0.10
File Size Uploaded
code_animate-0.0.10.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for code-animate 0.0.10
File Interpreter ABI Platform
code_animate-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / code_animate-0.0.10.tar.gz

Download URL code_animate-0.0.10.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ab713b005f89335db040b3e9c566cbc2ae0cf29178c94a0b8258aa94d913a8fb
BLAKE2b-256 checksum
How to use checksums
977a98d63b652218d7685be63b57ff4448931bb599ba35b656f341b335dd8b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release files / code_animate-0.0.10-py3-none-any.whl

Download URL code_animate-0.0.10-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d8f3773422624fb902acbe98110f927aadd347249647e662a5340daa55738dc
BLAKE2b-256 checksum
How to use checksums
d4a84a75027144847d9f2fefd4fb2eba77cd5b93145a2ff07adbf8f0691502b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page