storii
Build little ascii friends that can speak and move
^ ^ hello
(ù.ù )___(
//||-//||
^ ^ world!
( ô.ô)___(
//||-//||
Installation
python3 -m pip install storii
Usage
storii [filename] [optional:speed] [optional:repeat]
Example:
ls -l stories/
... story1.yaml
... story2.yaml
... story3.yaml
storii stories/story1.yaml
Build stories
A story is a collection of states
A state is a single snapshot that describes a character
Example:
state:
ears : ' ^ ^'
face : ' (ù.ù )___('
paws : ' ||\\-||\\'
A state is always part of a "states" root element
Example:
states:
- state:
top: " ^ ^ "
mid: " (ù.ù )___( "
low: " //||-//|| "
- state:
top: " ^ ^ "
mid: " ( ô.ô)___( "
low: " //||-//|| "
Add chit-chat in a state
Example:
env:
msg: "hello world!"
states:
- state:
sky: ' {msg}'
ears: ' ^ ^ / '
face: ' (ù.ù )___( '
paws: ' ||\\-||\\ '
### Add chit-chat in a state
Example:
env: msg: "hello world!"
Build Stories
### Repeat the story n times
Example:
repeat: 3
states: - state: top: " ^ ^ " mid: " (ù.ù )( " low: " //||-//|| " - state: top: " ^ ^ " mid: " ( ô.ô)( " low: " //||-//|| "
### Speed up the story (1 to 10)
Example:
speed: 5
states: - state: top: " ^ ^ " mid: " (ù.ù )( " low: " //||-//|| " - state: top: " ^ ^ " mid: " ( ô.ô)( " low: " //||-//|| "
## Develop
git clone https://github.com/guillaumefe/storii cd storii
Edit setup.py
python3 -m pip install setuptools python3 setup.py sdist
### Install (local)
python3 -m pip install dist/storii-{version}
### Push to pip (test)
python3 -m pip install twine
Register at https://test.pypi.org
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
#### Install from pip (test)
python3 -m pip install --index-url https://test.pypi.org/simple/ storii
### Push to pip (prod)
python3 -m pip install twine
Register at https://pypi.org
python3 -m twine upload dist/*
#### Install from pip (prod)
python3 -m pip install storii
Metadata
Release files for storii 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| storii-1.0.tar.gz | 2.8 kB | Details |
Release files / storii-1.0.tar.gz
| Download URL | storii-1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
985d32a8f32addb9159976d314a9eb17a98a2d44f178533d4d200ea90a3624de
|
|
BLAKE2b-256 checksum How to use checksums |
7c551efa52b6aa5d2558c14905144e721f5c2849b78464fbf245dc5feba9c887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
|