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
Release history Release notifications | RSS feed
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.6.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file code_animate-0.0.6.tar.gz.
File metadata
- Download URL: code_animate-0.0.6.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98e1971596a93ada95448a4f9970c130750e98d759ee4ad9d77d1180e032a1e0
|
|
| MD5 |
bada7c3515585e50d27365e19fbdbcc5
|
|
| BLAKE2b-256 |
f07a8a250256d0d560838144a058657d1dd7e9f0d5f18d10b0dcc4125dc97127
|
File details
Details for the file code_animate-0.0.6-py3-none-any.whl.
File metadata
- Download URL: code_animate-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d49ffb991b1b4b3ada567ff2b8289f85491c88c30ae9d0809b1d87f3573bf2c1
|
|
| MD5 |
ae03eb88b1d899d2b4409e4890e7a1cd
|
|
| BLAKE2b-256 |
820ca7859318e6332d7495e1b4040bac6331e0def0dd0ac83f3370eb25191d6b
|