3b1b-manim/manimlib/__init__.py
Soeren Wegener 2d7c97723b
Add travis job to publish on PyPI.
Also moved some shortcuts into manimlib, to be able to use it without the big_ol_pile_of_manim_imports script. Updated the README to explain installation via pip
2019-05-05 22:08:13 +02:00

16 lines
436 B
Python

#!/usr/bin/env python
import manimlib.config
import manimlib.extract_scene
import manimlib.stream_starter
def main():
args = manimlib.config.parse_cli()
if not args.livestream:
config = manimlib.config.get_configuration(args)
manimlib.extract_scene.main(config)
else:
manimlib.stream_starter.start_livestream(
to_twitch=args.to_twitch,
twitch_key=args.twitch_key,
)