Skip to main content
Copyright (c) 2017, Simon Larsén

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Download-URL: https://github.com/slarse/clanim/archive/v0.3.0.tar.gz
Description: # clanim - Command Line Animations

[![Build Status](https://travis-ci.org/slarse/clanim.svg?branch=master)](https://travis-ci.org/slarse/clanim)
[![Code Coverage](https://codecov.io/gh/slarse/clanim/branch/master/graph/badge.svg)](https://codecov.io/gh/slarse/clanim)
[![Documentation Status](https://readthedocs.org/projects/clanim/badge/?version=latest)](https://clanim.readthedocs.io/en/latest/)
[![PyPi Version](https://badge.fury.io/py/clanim.svg)](https://badge.fury.io/py/clanim)
[![Supported Python Verstions](https://img.shields.io/badge/python-3.5%2C%203.6-blue.svg)](https://badge.fury.io/py/clanim)

![Scrolling text animation example](docs/images/hello_world.gif)

### Overview
`clanim` is a collection of made command line animations that can easily
be applied to pretty much any (non-recursive) function. The animations are
built with the [`clanimtk`](https://github.com/slarse/clanimtk) package, and
are mostly meant to serve as examples of how to use it.

### Requirements

Python 3.6 or higher and the `clanimtk` package.

### Quickstart

Here are som minimal examples of using `clanim`:

```python
import time
from clanimtk import animate
from clanim import scrolling_text

# if no parameter is given, the default arrow animation is used
@animate
def slow(n):
time.sleep(n)

# scrolling_text is a large, scrolling text animation
# step determines the time between frames
@animate(animation=scrolling_text("Crunching numbers ..."), step=0.05)
def fibo(n):
if n < 0:
raise ValueError("Undefined for n < 0")
fibo_recursive(n)

# this recursive function must be wrapped in a non-recursive function
# before it can be animated
def fibo_recursive(n):
if n == 0 or n == 1:
return n
return fibo(n-1) + fibo(n-2)
```

### Install

#### Option 1: Install from PyPi with `pip`

The latest release of `clanim` is on PyPi, and can thus be installed as with
`pip install clanim` (with your own preferred options, of course).

#### Option 2: Clone the repo and the install with `pip`

If you want the dev version, you will need to clone the repo, as only release
versions are uploaded to PyPi. Unless you are planning to work on this
yourself, I suggest going with the release version.

1. Clone the repo with `git`:
- `git clone https://github.com/slarse/clanim`
2. `cd` into the project root directory and install with `pip`.
- `pip install --user .`, this will create a local install for the current user.
- Or just `pip install .` if you use `virtualenv`.
- For development, use `pip install -e .` in a `virtualenv`.

### Wanted improvements

* Add more animations

### License

This software is licensed under the MIT License. See the [LICENSE](LICENSE)
file for specifics.

### Contributing

I will happily take contributions, especially in terms of new animations.
Submit a pull request if you have an idea, and let me approve the idea before
you put serious work into something I would not like in the project!

Platform: UNKNOWN
Description-Content-Type: text/markdown

Metadata

Release files for clanim 0.3.0

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

Built distribution (wheel)

Table of built distributions (wheels) for clanim 0.3.0
File Interpreter ABI Platform Actions
clanim-0.3.0-py3-none-any.whl Python 3 none any Details for clanim-0.3.0-py3-none-any.whl

Release files / clanim-0.3.0-py3-none-any.whl

Download URL clanim-0.3.0-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bbd1fd48715483f6891a1d6cab8be5f2fc7485a6c557ae228476840200e5c9c
BLAKE2b-256 checksum
How to use checksums
7edf27e144e2cd78205daddd534758553f1c218c283161495ef6463f864c55f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for clanim 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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