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)
| File | Size | Uploaded | |
|---|---|---|---|
| code_animate-0.0.10.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|