Python Module: Play the video in the console as ASCII art.
Where there is light, there is Bad Apple!!
Installation
python -m pip install badapple
with audio:
python -m pip install badapple[audio]
with any supported player:
python -m pip install badapple[dev]
Run
python -m badapple
Help Message
usage: badapple [options] ...
BadApple-Python-OS-ISA-Version
options:
-h, --help show this help message and exit
--help_audio show avaliable players (default: False)
-i INPUT, --input INPUT
video file (use `_BA_MP4` `_BA_BA` to load built-in video) (default: _BA_MP4)
-o OUTPUT, --output OUTPUT
preload output file (default: )
-s SCALE, --scale SCALE
width:height (0 means auto) (default: 0:0)
-r RATE, --rate RATE frame rate (default: 1024.0)
--audio AUDIO audio file (use `_BA_WAV` `_BA_MP3` `_BA_MP4` to load built-in audio) (default: )
--audio_player AUDIO_PLAYER
audio player [ffplay mpv vlc mpg123 cmus simpleaudio pyaudio playsound auto] (default: )
-c COLOR, --color COLOR
color type [ascii rgb24 halfwidth fullwidth x256e x256w x232e x232w] (default: ascii)
-m MESSAGE, --message MESSAGE
print message (default: )
--font FONT font data file (use `_BA_CONSOLA` to load built-in font data) (default: _BA_CONSOLA)
--not_clear not clear screen (with ANSI) before each frame (default: False)
--contrast contrast enhancement (default: False)
--preload preload video (not play) (default: False)
--debug debug (default: False)
Metadata
Release files for badapple 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| badapple-0.0.8.tar.gz | 74.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| badapple-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 148.5 MB
Release files / badapple-0.0.8.tar.gz
| Download URL | badapple-0.0.8.tar.gz |
|---|---|
| Size | 74.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f1323d539a15faf451280ed6e3fb0657c08a08af4b1c64bd470bcd320ac81b5
|
|
BLAKE2b-256 checksum How to use checksums |
0a7995b67cf5dadf06a6fd3fa7ddc7bbcc522dcdde005e9e07e147efc25c8749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / badapple-0.0.8-py3-none-any.whl
| Download URL | badapple-0.0.8-py3-none-any.whl |
|---|---|
| Size | 74.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec273c9174bae2914e1d693e08aade354a29619f9246eb1e00a2dbe1a1cff4ee
|
|
BLAKE2b-256 checksum How to use checksums |
02c8e03b193a405453da52c39676b612ff07cf83c089276d8ba82060ca00c516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|