Skip to main content

A Python library for creating animation in console.

Project description

conanim Library

This python library is used for creating simple animations in console.

How to use

To create an animation you need use frame_animattion()function. Example:

import conanim as ca

# define frames for animation
frames = [
    "|",
    "/",
    "-",
    "\\",
]

while True:
    ca.frame_animation(frames, 0.1) # create an animation

In this example frame_animation() needs 2 arguments: frames and delay in seconds between frames

frame_animation(frames, delay)

This is cool, but if we create program like this:

import conanim as ca

# define frames for animation
frames = [
    "|",
    "/",
    "-",
    "\\",
]

while True:
    print("loading ", end="")
    ca.frame_animation(frames, 0.1) # create an animation

it wil doesn't work, so this library have print_with_animation() function:

import conanim as ca

# define frames for animation
frames = [
    "|",
    "/",
    "-",
    "\\",
]

while True:
    ca.print_with_animation("Loading ", frames, 0.1) # create an animation

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

conanim-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conanim-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file conanim-0.1.0.tar.gz.

File metadata

  • Download URL: conanim-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for conanim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa9bd3fb0d7e21b386e1e826d16933efa3d9fd197bd233790651fd4388ff1e09
MD5 749d29634d40b5fc8bf3b24de21c4e86
BLAKE2b-256 655639596ff3f9ec23663c76a86857c1f53d2d8e68a0e8f0d70574b052525931

See more details on using hashes here.

File details

Details for the file conanim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: conanim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for conanim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0642be338f3b7aceccc6bffe75d288d95605d92de883afafd092c5b78163aed3
MD5 3ee12e18a4c45859a595cd15114c5274
BLAKE2b-256 5c748325e347a3a2b076db325841f2f02a49ccb817f2ffcdd17f59758709f0ea

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