Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add interface to JS renderer (#465)

Devin Neal41f6f054e0fc
diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst
index 6d410549c..ce115c644 100644
--- a/docs/source/changelog.rst
+++ b/docs/source/changelog.rst
@@ -32,6 +32,7 @@ Command line
#. Re-implement GIF export with the :code:`-i` flag (using this flag outputs ONLY a .gif file, and no .mp4 file)
#. Added a :code:`--verbose` flag
#. You can save the logs to a file by using :code:`--log_to_file`
+#. Add experimental javascript rendering with :code:`--use_js_renderer`
Config system
@@ -62,6 +63,7 @@ Mobjects, Scenes, and Animations
#. Add a :code:`Variable` class for displaying text that continuously updates to reflect the value of a python variable.
#. The ``Tex`` and ``MathTex`` objects allow you to specify a custom TexTemplate using the ``template`` keyword argument.
#. :code:`VGroup` now supports printing the class names of contained mobjects and :code:`VDict` supports printing the internal dict of mobjects
+#. :code:`Scene` now renders when :code:`Scene.render()` is called rather than upon instantiation.
#. :code:`ValueTracker` now supports increment using the `+=` operator (in addition to the already existing `increment_value` method)
diff --git a/docs/source/manim_directive.py b/docs/source/manim_directive.py
index 882512b3c..7e0fb3cdb 100644
--- a/docs/source/manim_directive.py
+++ b/docs/source/manim_directive.py
@@ -192,7 +192,7 @@ class ManimDirective(Directive):
"from manim import *",
*file_writer_config_code,
*user_code,
- f"{clsname}()",
+ f"{clsname}().render()",
]
exec("\n".join(code), globals())
diff --git a/manim/__init__.py b/manim/__init__.py
index cfa7c33d7..0f6b70bfd 100644
--- a/manim/__init__.py
+++ b/manim/__init__.py
@@ -56,6 +56,7 @@ from .mobject.vector_field import *
from .scene.graph_scene import *
from .scene.moving_camera_scene import *
from .scene.reconfigurable_scene import *
+from .scene.js_scene import *
from .scene.scene import *
from .scene.sample_space_scene import *
from .scene.three_d_scene import *
diff --git a/manim/__main__.py b/manim/__main__.py
index b9e249153..fc1055183 100644
--- a/manim/__main__.py
+++ b/manim/__main__.py
@@ -9,12 +9,17 @@ import importlib.util
import types
from . import constants, logger, console, file_writer_config
-from .config.config import args
+from .config.config import camera_config, args
from .config import cfg_subcmds
+from .utils.module_ops import (
+ get_module,
+ get_scene_classes_from_module,
+ get_scenes_to_render,
+)
from .scene.scene import Scene
from .utils.sounds import play_error_sound, play_finish_sound
from .utils.file_ops import open_file as open_media_file
-from . import constants
+from .grpc.impl import frame_server_impl
def open_file_if_needed(file_writer):
@@ -50,104 +55,6 @@ def open_file_if_needed(file_writer):
sys.stdout = curr_stdout
-def is_child_scene(obj, module):
- return (
- inspect.isclass(obj)
- and issubclass(obj, Scene)
- and obj != Scene
- and obj.__module__.startswith(module.__name__)
- )
-
-
-def prompt_user_for_choice(scene_classes):
- num_to_class = {}
- for count, scene_class in enumerate(scene_classes):
- count += 1 # start with 1 instead of 0
- name = scene_class.__name__
- console.print(f"{count}: {name}", style="logging.level.info")
- num_to_class[count] = scene_class
- try:
- user_input = console.input(
- f"[log.message] {constants.CHOOSE_NUMBER_MESSAGE} [/log.message]"
- )
- return [
- num_to_class[int(num_str)]
- for num_str in re.split(r"\s*,\s*", user_input.strip())
- ]
- except KeyError:
- logger.error(constants.INVALID_NUMBER_MESSAGE)
- sys.exit(2)
- except EOFError:
- sys.exit(1)
-
-
-def get_scenes_to_render(scene_classes):
- if not scene_classes:
- logger.error(constants.NO_SCENE_MESSAGE)
- return []
- if file_writer_config["write_all"]:
- return scene_classes
- result = []
- for scene_name in file_writer_config["scene_names"]:
- found = False
- for scene_class in scene_classes:
- if scene_class.__name__ == scene_name:
- result.append(scene_class)
- found = True
- break
- if not found and (scene_name != ""):
- logger.error(constants.SCENE_NOT_FOUND_MESSAGE.format(scene_name))
- if result:
- return result
- return (
- [scene_classes[0]]
- if len(scene_classes) == 1
- else prompt_user_for_choice(scene_classes)
- )
-
-
-def get_scene_classes_from_module(module):
- return [
- member[1]
- for member in inspect.getmembers(module, lambda x: is_child_scene(x, module))
- ]
-
-
-def get_module(file_name):
- if file_name == "-":
- # Since this feature is used for rapid testing, using Scene Caching would be a
- # hindrance in this case.
- file_writer_config["disable_caching"] = True
- module = types.ModuleType("input_scenes")
- logger.info(
- "Enter the animation's code & end with an EOF (CTRL+D on Linux/Unix, CTRL+Z on Windows):"
- )
- code = sys.stdin.read()
- if not code.startswith("from manim import"):
- logger.warning(
- "Didn't find an import statement for Manim. Importing automatically..."
- )
- code = "from manim import *\n" + code
- logger.info("Rendering animation from typed code...")
- try:
- exec(code, module.__dict__)
- return module
- except Exception as e:
- logger.error(f"Failed to render scene: {str(e)}")
- sys.exit(2)
- else:
- if os.path.exists(file_name):
- if file_name[-3:] != ".py":
- raise Exception(f"{file_name} is not a valid Manim python script.")
- module_name = file_name[:-3].replace(os.sep, ".").split(".")[-1]
- spec = importlib.util.spec_from_file_location(module_name, file_name)
- module = importlib.util.module_from_spec(spec)
- spec.loader.exec_module(module)
- return module
- else:
- raise FileNotFoundError(f"{file_name} not found")
-
-
def main():
if hasattr(args, "subcommands"):
if "cfg" in args.subcommands:
@@ -169,15 +76,19 @@ def main():
sound_on = file_writer_config["sound"]
for SceneClass in scene_classes_to_render:
try:
- # By invoking, this renders the full scene
- scene = SceneClass()
- open_file_if_needed(scene.file_writer)
- if sound_on:
- play_finish_sound()
+ if camera_config["use_js_renderer"]:
+ frame_server_impl.get(SceneClass).start()
+ else:
+ scene = SceneClass()
+ scene.render()
+ open_file_if_needed(scene.file_writer)
+ if sound_on:
+ play_finish_sound()
except Exception:
print("\n\n")
traceback.print_exc()
print("\n\n")
+ if not camera_config["use_js_renderer"]:
if sound_on:
play_error_sound()
diff --git a/manim/camera/camera.py b/manim/camera/camera.py
index 35592ca29..ef2aa55ea 100644
--- a/manim/camera/camera.py
+++ b/manim/camera/camera.py
@@ -104,12 +104,6 @@ class Camera(object):
# corresponding class. If a Mobject is not an instance of a class in
# this dict (or an instance of a class that inherits from a class in
# this dict), then it cannot be rendered.
- self.display_funcs = {
- VMobject: self.display_multiple_vectorized_mobjects,
- PMobject: self.display_multiple_point_cloud_mobjects,
- AbstractImageMobject: self.display_multiple_image_mobjects,
- Mobject: lambda batch, pa: batch, # Do nothing
- }
self.init_background()
self.resize_frame_shape()
@@ -149,6 +143,12 @@ class Camera(object):
:exc:`TypeError`
When mobject is not an instance of a class that can be rendered.
"""
+ self.display_funcs = {
+ VMobject: self.display_multiple_vectorized_mobjects,
+ PMobject: self.display_multiple_point_cloud_mobjects,
+ AbstractImageMobject: self.display_multiple_image_mobjects,
+ Mobject: lambda batch, pa: batch, # Do nothing
+ }
# We have to check each type in turn because we are dealing with
# super classes. For example, if square = Square(), then
# type(square) != VMobject, but isinstance(square, VMobject) == True.
@@ -358,6 +358,9 @@ class Camera(object):
self.set_pixel_array(self.background)
return self
+ def set_frame_to_background(self, background):
+ self.set_pixel_array(background)
+
####
# TODO, it's weird that this is part of camera.
diff --git a/manim/camera/js_camera.py b/manim/camera/js_camera.py
new file mode 100644
index 000000000..f97fcc858
--- /dev/null
+++ b/manim/camera/js_camera.py
@@ -0,0 +1,32 @@
+from .camera import Camera
+import copy
+
+
+class JsCamera(Camera):
+ def __init__(self, **kwargs):
+ super().__init__(self, **kwargs)
+ self.serialized_frame = []
+ self.pixel_array = None
+
+ def display_multiple_non_background_colored_vmobjects(self, vmobjects, _):
+ for vmobject in vmobjects:
+ # TODO: Store a proto instead of JSON.
+ needs_redraw = False
+ point_hash = hash(tuple(vmobject.points.flatten()))
+ if vmobject.point_hash != point_hash:
+ vmobject.point_hash = point_hash
+ needs_redraw = True
+ self.serialized_frame.append(
+ {
+ "points": vmobject.points.tolist(),
+ "style": vmobject.get_style(simple=True),
+ "id": id(vmobject),
+ "needs_redraw": needs_redraw,
+ }
+ )
+
+ def reset(self):
+ self.serialized_frame = []
+
+ def set_frame_to_background(self, background):
+ self.serialized_frame = copy.deepcopy(background)
diff --git a/manim/config/config.py b/manim/config/config.py
index a44222386..eb80a31fb 100644
--- a/manim/config/config.py
+++ b/manim/config/config.py
@@ -112,6 +112,14 @@ def _parse_config(config_parser, args):
background_color = colour.Color(default["background_color"])
config["background_color"] = background_color
+ config["use_js_renderer"] = args.use_js_renderer or default.getboolean(
+ "use_js_renderer"
+ )
+
+ config["js_renderer_path"] = args.js_renderer_path or default.get(
+ "js_renderer_path"
+ )
+
# Set the rest of the frame properties
config["frame_height"] = 8.0
config["frame_width"] = (
@@ -151,6 +159,8 @@ if _from_command_line():
if not (hasattr(args, "subcommands")):
_init_dirs(file_writer_config)
config = _parse_config(config_parser, args)
+if config["use_js_renderer"]:
+ file_writer_config["disable_caching"] = True
camera_config = config
# Set the different loggers
diff --git a/manim/config/config_utils.py b/manim/config/config_utils.py
index 9ec4ca8a6..b85efa55e 100644
--- a/manim/config/config_utils.py
+++ b/manim/config/config_utils.py
@@ -391,6 +391,18 @@ def _parse_cli(arg_list, input=True):
"the rendering at the second value",
)
+ parser.add_argument(
+ "--use_js_renderer",
+ help="Render animations using the javascript frontend",
+ action="store_const",
+ const=True,
+ )
+
+ parser.add_argument(
+ "--js_renderer_path",
+ help="Path to the javascript frontend",
+ )
+
# Specify the manim.cfg file
parser.add_argument(
"--config_file",
diff --git a/manim/config/default.cfg b/manim/config/default.cfg
index d864da45c..45e67d121 100644
--- a/manim/config/default.cfg
+++ b/manim/config/default.cfg
@@ -78,6 +78,21 @@ media_dir = ./media
# --log_dir (by default "/logs", that will be put inside the media dir)
log_dir = logs
+# # --video_dir
+# video_dir = %(MEDIA_DIR)s/videos
+
+# # --tex_dir
+# tex_dir = %(MEDIA_DIR)s/Tex
+
+# # --text_dir
+# text_dir = %(MEDIA_DIR)s/texts
+
+# --use_js_renderer
+use_js_renderer = False
+
+# --js_renderer_path
+js_renderer_path =
+
# If the -t (--transparent) flag is used, these will be replaced with the
# values specified in the [TRANSPARENT] section later in this file.
png_mode = RGB
diff --git a/manim/constants.py b/manim/constants.py
index 6263a4680..8fe4c8cea 100644
--- a/manim/constants.py
+++ b/manim/constants.py
@@ -120,3 +120,9 @@ FFMPEG_VERBOSITY_MAP = {
"CRITICAL": "fatal",
}
VERBOSITY_CHOICES = FFMPEG_VERBOSITY_MAP.keys()
+JS_RENDERER_INFO = (
+ "The Electron frontend to Manim is hosted at "
+ "https://github.com/ManimCommunity/manim-renderer. After cloning and building it, "
+ "you can either start it prior to running Manim or specify the path to the "
+ "executable with the --js_renderer_path flag."
+)
diff --git a/manim/grpc/__init__.py b/manim/grpc/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/manim/grpc/gen/__init__.py b/manim/grpc/gen/__init__.py
new file mode 100644
index 000000000..2118145a3
--- /dev/null
+++ b/manim/grpc/gen/__init__.py
@@ -0,0 +1,6 @@
+# https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-547504972
+
+import sys
+from pathlib import Path
+
+sys.path.append(str(Path(__file__).parent))
diff --git a/manim/grpc/gen/frameserver_pb2.py b/manim/grpc/gen/frameserver_pb2.py
new file mode 100644
index 000000000..288786c2b
--- /dev/null
+++ b/manim/grpc/gen/frameserver_pb2.py
@@ -0,0 +1,743 @@
+# -*- coding: utf-8 -*-
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: frameserver.proto
+
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import message as _message
+from google.protobuf import reflection as _reflection
+from google.protobuf import symbol_database as _symbol_database
+
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+DESCRIPTOR = _descriptor.FileDescriptor(
+ name="frameserver.proto",
+ package="frameserver",
+ syntax="proto3",
+ serialized_options=None,
+ serialized_pb=b'\n\x11\x66rameserver.proto\x12\x0b\x66rameserver"A\n\x0c\x46rameRequest\x12\x17\n\x0f\x61nimation_index\x18\x01 \x01(\x03\x12\x18\n\x10\x61nimation_offset\x18\x02 \x01(\x02"u\n\x05Style\x12\x12\n\nfill_color\x18\x01 \x01(\t\x12\x14\n\x0c\x66ill_opacity\x18\x02 \x01(\x02\x12\x14\n\x0cstroke_color\x18\x03 \x01(\t\x12\x16\n\x0estroke_opacity\x18\x04 \x01(\x02\x12\x14\n\x0cstroke_width\x18\x05 \x01(\x02"(\n\x05Point\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02"v\n\x0bMobjectData\x12\n\n\x02id\x18\x01 \x01(\x03\x12"\n\x06points\x18\x02 \x03(\x0b\x32\x12.frameserver.Point\x12!\n\x05style\x18\x03 \x01(\x0b\x32\x12.frameserver.Style\x12\x14\n\x0cneeds_redraw\x18\x04 \x01(\x08"\xb0\x01\n\rFrameResponse\x12*\n\x08mobjects\x18\x01 \x03(\x0b\x32\x18.frameserver.MobjectData\x12\x15\n\rframe_pending\x18\x02 \x01(\x08\x12\x1a\n\x12\x61nimation_finished\x18\x03 \x01(\x08\x12\x16\n\x0escene_finished\x18\x04 \x01(\x08\x12\x10\n\x08\x64uration\x18\x05 \x01(\x02\x12\x16\n\x0e\x61nimation_name\x18\x06 \x01(\t"\x17\n\x15RendererStatusRequest",\n\x16RendererStatusResponse\x12\x12\n\nscene_name\x18\x01 \x01(\t"\x16\n\x14SceneLocationRequest"\x17\n\x15SceneLocationResponse2\x8f\x02\n\x0b\x46rameServer\x12G\n\x0eGetFrameAtTime\x12\x19.frameserver.FrameRequest\x1a\x1a.frameserver.FrameResponse\x12Y\n\x0eRendererStatus\x12".frameserver.RendererStatusRequest\x1a#.frameserver.RendererStatusResponse\x12\\\n\x13UpdateSceneLocation\x12!.frameserver.SceneLocationRequest\x1a".frameserver.SceneLocationResponseb\x06proto3',
+)
+
+
+_FRAMEREQUEST = _descriptor.Descriptor(
+ name="FrameRequest",
+ full_name="frameserver.FrameRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="animation_index",
+ full_name="frameserver.FrameRequest.animation_index",
+ index=0,
+ number=1,
+ type=3,
+ cpp_type=2,
+ label=1,
+ has_default_value=False,
+ default_value=0,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="animation_offset",
+ full_name="frameserver.FrameRequest.animation_offset",
+ index=1,
+ number=2,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=34,
+ serialized_end=99,
+)
+
+
+_STYLE = _descriptor.Descriptor(
+ name="Style",
+ full_name="frameserver.Style",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="fill_color",
+ full_name="frameserver.Style.fill_color",
+ index=0,
+ number=1,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="fill_opacity",
+ full_name="frameserver.Style.fill_opacity",
+ index=1,
+ number=2,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="stroke_color",
+ full_name="frameserver.Style.stroke_color",
+ index=2,
+ number=3,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="stroke_opacity",
+ full_name="frameserver.Style.stroke_opacity",
+ index=3,
+ number=4,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="stroke_width",
+ full_name="frameserver.Style.stroke_width",
+ index=4,
+ number=5,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=101,
+ serialized_end=218,
+)
+
+
+_POINT = _descriptor.Descriptor(
+ name="Point",
+ full_name="frameserver.Point",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="x",
+ full_name="frameserver.Point.x",
+ index=0,
+ number=1,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="y",
+ full_name="frameserver.Point.y",
+ index=1,
+ number=2,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="z",
+ full_name="frameserver.Point.z",
+ index=2,
+ number=3,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=220,
+ serialized_end=260,
+)
+
+
+_MOBJECTDATA = _descriptor.Descriptor(
+ name="MobjectData",
+ full_name="frameserver.MobjectData",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="id",
+ full_name="frameserver.MobjectData.id",
+ index=0,
+ number=1,
+ type=3,
+ cpp_type=2,
+ label=1,
+ has_default_value=False,
+ default_value=0,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="points",
+ full_name="frameserver.MobjectData.points",
+ index=1,
+ number=2,
+ type=11,
+ cpp_type=10,
+ label=3,
+ has_default_value=False,
+ default_value=[],
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="style",
+ full_name="frameserver.MobjectData.style",
+ index=2,
+ number=3,
+ type=11,
+ cpp_type=10,
+ label=1,
+ has_default_value=False,
+ default_value=None,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="needs_redraw",
+ full_name="frameserver.MobjectData.needs_redraw",
+ index=3,
+ number=4,
+ type=8,
+ cpp_type=7,
+ label=1,
+ has_default_value=False,
+ default_value=False,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=262,
+ serialized_end=380,
+)
+
+
+_FRAMERESPONSE = _descriptor.Descriptor(
+ name="FrameResponse",
+ full_name="frameserver.FrameResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="mobjects",
+ full_name="frameserver.FrameResponse.mobjects",
+ index=0,
+ number=1,
+ type=11,
+ cpp_type=10,
+ label=3,
+ has_default_value=False,
+ default_value=[],
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="frame_pending",
+ full_name="frameserver.FrameResponse.frame_pending",
+ index=1,
+ number=2,
+ type=8,
+ cpp_type=7,
+ label=1,
+ has_default_value=False,
+ default_value=False,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="animation_finished",
+ full_name="frameserver.FrameResponse.animation_finished",
+ index=2,
+ number=3,
+ type=8,
+ cpp_type=7,
+ label=1,
+ has_default_value=False,
+ default_value=False,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="scene_finished",
+ full_name="frameserver.FrameResponse.scene_finished",
+ index=3,
+ number=4,
+ type=8,
+ cpp_type=7,
+ label=1,
+ has_default_value=False,
+ default_value=False,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="duration",
+ full_name="frameserver.FrameResponse.duration",
+ index=4,
+ number=5,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="animation_name",
+ full_name="frameserver.FrameResponse.animation_name",
+ index=5,
+ number=6,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=383,
+ serialized_end=559,
+)
+
+
+_RENDERERSTATUSREQUEST = _descriptor.Descriptor(
+ name="RendererStatusRequest",
+ full_name="frameserver.RendererStatusRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=561,
+ serialized_end=584,
+)
+
+
+_RENDERERSTATUSRESPONSE = _descriptor.Descriptor(
+ name="RendererStatusResponse",
+ full_name="frameserver.RendererStatusResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="scene_name",
+ full_name="frameserver.RendererStatusResponse.scene_name",
+ index=0,
+ number=1,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=586,
+ serialized_end=630,
+)
+
+
+_SCENELOCATIONREQUEST = _descriptor.Descriptor(
+ name="SceneLocationRequest",
+ full_name="frameserver.SceneLocationRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=632,
+ serialized_end=654,
+)
+
+
+_SCENELOCATIONRESPONSE = _descriptor.Descriptor(
+ name="SceneLocationResponse",
+ full_name="frameserver.SceneLocationResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=656,
+ serialized_end=679,
+)
+
+_MOBJECTDATA.fields_by_name["points"].message_type = _POINT
+_MOBJECTDATA.fields_by_name["style"].message_type = _STYLE
+_FRAMERESPONSE.fields_by_name["mobjects"].message_type = _MOBJECTDATA
+DESCRIPTOR.message_types_by_name["FrameRequest"] = _FRAMEREQUEST
+DESCRIPTOR.message_types_by_name["Style"] = _STYLE
+DESCRIPTOR.message_types_by_name["Point"] = _POINT
+DESCRIPTOR.message_types_by_name["MobjectData"] = _MOBJECTDATA
+DESCRIPTOR.message_types_by_name["FrameResponse"] = _FRAMERESPONSE
+DESCRIPTOR.message_types_by_name["RendererStatusRequest"] = _RENDERERSTATUSREQUEST
+DESCRIPTOR.message_types_by_name["RendererStatusResponse"] = _RENDERERSTATUSRESPONSE
+DESCRIPTOR.message_types_by_name["SceneLocationRequest"] = _SCENELOCATIONREQUEST
+DESCRIPTOR.message_types_by_name["SceneLocationResponse"] = _SCENELOCATIONRESPONSE
+_sym_db.RegisterFileDescriptor(DESCRIPTOR)
+
+FrameRequest = _reflection.GeneratedProtocolMessageType(
+ "FrameRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _FRAMEREQUEST,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.FrameRequest)
+ },
+)
+_sym_db.RegisterMessage(FrameRequest)
+
+Style = _reflection.GeneratedProtocolMessageType(
+ "Style",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _STYLE,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.Style)
+ },
+)
+_sym_db.RegisterMessage(Style)
+
+Point = _reflection.GeneratedProtocolMessageType(
+ "Point",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _POINT,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.Point)
+ },
+)
+_sym_db.RegisterMessage(Point)
+
+MobjectData = _reflection.GeneratedProtocolMessageType(
+ "MobjectData",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _MOBJECTDATA,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.MobjectData)
+ },
+)
+_sym_db.RegisterMessage(MobjectData)
+
+FrameResponse = _reflection.GeneratedProtocolMessageType(
+ "FrameResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _FRAMERESPONSE,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.FrameResponse)
+ },
+)
+_sym_db.RegisterMessage(FrameResponse)
+
+RendererStatusRequest = _reflection.GeneratedProtocolMessageType(
+ "RendererStatusRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _RENDERERSTATUSREQUEST,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.RendererStatusRequest)
+ },
+)
+_sym_db.RegisterMessage(RendererStatusRequest)
+
+RendererStatusResponse = _reflection.GeneratedProtocolMessageType(
+ "RendererStatusResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _RENDERERSTATUSRESPONSE,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.RendererStatusResponse)
+ },
+)
+_sym_db.RegisterMessage(RendererStatusResponse)
+
+SceneLocationRequest = _reflection.GeneratedProtocolMessageType(
+ "SceneLocationRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _SCENELOCATIONREQUEST,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.SceneLocationRequest)
+ },
+)
+_sym_db.RegisterMessage(SceneLocationRequest)
+
+SceneLocationResponse = _reflection.GeneratedProtocolMessageType(
+ "SceneLocationResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _SCENELOCATIONRESPONSE,
+ "__module__": "frameserver_pb2"
+ # @@protoc_insertion_point(class_scope:frameserver.SceneLocationResponse)
+ },
+)
+_sym_db.RegisterMessage(SceneLocationResponse)
+
+
+_FRAMESERVER = _descriptor.ServiceDescriptor(
+ name="FrameServer",
+ full_name="frameserver.FrameServer",
+ file=DESCRIPTOR,
+ index=0,
+ serialized_options=None,
+ serialized_start=682,
+ serialized_end=953,
+ methods=[
+ _descriptor.MethodDescriptor(
+ name="GetFrameAtTime",
+ full_name="frameserver.FrameServer.GetFrameAtTime",
+ index=0,
+ containing_service=None,
+ input_type=_FRAMEREQUEST,
+ output_type=_FRAMERESPONSE,
+ serialized_options=None,
+ ),
+ _descriptor.MethodDescriptor(
+ name="RendererStatus",
+ full_name="frameserver.FrameServer.RendererStatus",
+ index=1,
+ containing_service=None,
+ input_type=_RENDERERSTATUSREQUEST,
+ output_type=_RENDERERSTATUSRESPONSE,
+ serialized_options=None,
+ ),
+ _descriptor.MethodDescriptor(
+ name="UpdateSceneLocation",
+ full_name="frameserver.FrameServer.UpdateSceneLocation",
+ index=2,
+ containing_service=None,
+ input_type=_SCENELOCATIONREQUEST,
+ output_type=_SCENELOCATIONRESPONSE,
+ serialized_options=None,
+ ),
+ ],
+)
+_sym_db.RegisterServiceDescriptor(_FRAMESERVER)
+
+DESCRIPTOR.services_by_name["FrameServer"] = _FRAMESERVER
+
+# @@protoc_insertion_point(module_scope)
diff --git a/manim/grpc/gen/frameserver_pb2_grpc.py b/manim/grpc/gen/frameserver_pb2_grpc.py
new file mode 100644
index 000000000..e876f19ea
--- /dev/null
+++ b/manim/grpc/gen/frameserver_pb2_grpc.py
@@ -0,0 +1,164 @@
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
+import grpc
+
+import frameserver_pb2 as frameserver__pb2
+
+
+class FrameServerStub(object):
+ """Missing associated documentation comment in .proto file"""
+
+ def __init__(self, channel):
+ """Constructor.
+
+ Args:
+ channel: A grpc.Channel.
+ """
+ self.GetFrameAtTime = channel.unary_unary(
+ "/frameserver.FrameServer/GetFrameAtTime",
+ request_serializer=frameserver__pb2.FrameRequest.SerializeToString,
+ response_deserializer=frameserver__pb2.FrameResponse.FromString,
+ )
+ self.RendererStatus = channel.unary_unary(
+ "/frameserver.FrameServer/RendererStatus",
+ request_serializer=frameserver__pb2.RendererStatusRequest.SerializeToString,
+ response_deserializer=frameserver__pb2.RendererStatusResponse.FromString,
+ )
+ self.UpdateSceneLocation = channel.unary_unary(
+ "/frameserver.FrameServer/UpdateSceneLocation",
+ request_serializer=frameserver__pb2.SceneLocationRequest.SerializeToString,
+ response_deserializer=frameserver__pb2.SceneLocationResponse.FromString,
+ )
+
+
+class FrameServerServicer(object):
+ """Missing associated documentation comment in .proto file"""
+
+ def GetFrameAtTime(self, request, context):
+ """Updates the scene to the specified animation offset and returns a
+ serialization of the frame at that time.
+ """
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def RendererStatus(self, request, context):
+ """Used to signal to the renderer that manim is running."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateSceneLocation(self, request, context):
+ """Missing associated documentation comment in .proto file"""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+
+def add_FrameServerServicer_to_server(servicer, server):
+ rpc_method_handlers = {
+ "GetFrameAtTime": grpc.unary_unary_rpc_method_handler(
+ servicer.GetFrameAtTime,
+ request_deserializer=frameserver__pb2.FrameRequest.FromString,
+ response_serializer=frameserver__pb2.FrameResponse.SerializeToString,
+ ),
+ "RendererStatus": grpc.unary_unary_rpc_method_handler(
+ servicer.RendererStatus,
+ request_deserializer=frameserver__pb2.RendererStatusRequest.FromString,
+ response_serializer=frameserver__pb2.RendererStatusResponse.SerializeToString,
+ ),
+ "UpdateSceneLocation": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateSceneLocation,
+ request_deserializer=frameserver__pb2.SceneLocationRequest.FromString,
+ response_serializer=frameserver__pb2.SceneLocationResponse.SerializeToString,
+ ),
+ }
+ generic_handler = grpc.method_handlers_generic_handler(
+ "frameserver.FrameServer", rpc_method_handlers
+ )
+ server.add_generic_rpc_handlers((generic_handler,))
+
+
+# This class is part of an EXPERIMENTAL API.
+class FrameServer(object):
+ """Missing associated documentation comment in .proto file"""
+
+ @staticmethod
+ def GetFrameAtTime(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/frameserver.FrameServer/GetFrameAtTime",
+ frameserver__pb2.FrameRequest.SerializeToString,
+ frameserver__pb2.FrameResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def RendererStatus(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/frameserver.FrameServer/RendererStatus",
+ frameserver__pb2.RendererStatusRequest.SerializeToString,
+ frameserver__pb2.RendererStatusResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateSceneLocation(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/frameserver.FrameServer/UpdateSceneLocation",
+ frameserver__pb2.SceneLocationRequest.SerializeToString,
+ frameserver__pb2.SceneLocationResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
diff --git a/manim/grpc/gen/renderserver_pb2.py b/manim/grpc/gen/renderserver_pb2.py
new file mode 100644
index 000000000..20dcb998f
--- /dev/null
+++ b/manim/grpc/gen/renderserver_pb2.py
@@ -0,0 +1,550 @@
+# -*- coding: utf-8 -*-
+# Generated by the protocol buffer compiler. DO NOT EDIT!
+# source: renderserver.proto
+
+from google.protobuf import descriptor as _descriptor
+from google.protobuf import message as _message
+from google.protobuf import reflection as _reflection
+from google.protobuf import symbol_database as _symbol_database
+
+# @@protoc_insertion_point(imports)
+
+_sym_db = _symbol_database.Default()
+
+
+DESCRIPTOR = _descriptor.FileDescriptor(
+ name="renderserver.proto",
+ package="renderserver",
+ syntax="proto3",
+ serialized_options=None,
+ serialized_pb=b'\n\x12renderserver.proto\x12\x0crenderserver"\x0e\n\x0c\x45mptyRequest"\x0f\n\rEmptyResponse"\x1f\n\x0fNewSceneRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\x12\n\x10NewSceneResponse"+\n\tAnimation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x64uration\x18\x02 \x01(\x02"\x18\n\x16\x41nimationStatusRequest"\x19\n\x17\x41nimationStatusResponse"m\n\x12ManimStatusRequest\x12\x12\n\nscene_name\x18\x01 \x01(\t\x12\x16\n\x0escene_finished\x18\x02 \x01(\x08\x12+\n\nanimations\x18\x03 \x03(\x0b\x32\x17.renderserver.Animation"\x15\n\x13ManimStatusResponse"\x14\n\x12UpdateSceneRequest"\x15\n\x13UpdateSceneResponse2\x94\x03\n\x0cRenderServer\x12J\n\x0f\x41nimationStatus\x12\x1a.renderserver.EmptyRequest\x1a\x1b.renderserver.EmptyResponse\x12R\n\x0bManimStatus\x12 .renderserver.ManimStatusRequest\x1a!.renderserver.ManimStatusResponse\x12R\n\x0bUpdateScene\x12 .renderserver.UpdateSceneRequest\x1a!.renderserver.UpdateSceneResponse\x12\x46\n\x08NewScene\x12\x1d.renderserver.NewSceneRequest\x1a\x1b.renderserver.EmptyResponse\x12H\n\rSceneFinished\x12\x1a.renderserver.EmptyRequest\x1a\x1b.renderserver.EmptyResponseb\x06proto3',
+)
+
+
+_EMPTYREQUEST = _descriptor.Descriptor(
+ name="EmptyRequest",
+ full_name="renderserver.EmptyRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=36,
+ serialized_end=50,
+)
+
+
+_EMPTYRESPONSE = _descriptor.Descriptor(
+ name="EmptyResponse",
+ full_name="renderserver.EmptyResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=52,
+ serialized_end=67,
+)
+
+
+_NEWSCENEREQUEST = _descriptor.Descriptor(
+ name="NewSceneRequest",
+ full_name="renderserver.NewSceneRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="name",
+ full_name="renderserver.NewSceneRequest.name",
+ index=0,
+ number=1,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=69,
+ serialized_end=100,
+)
+
+
+_NEWSCENERESPONSE = _descriptor.Descriptor(
+ name="NewSceneResponse",
+ full_name="renderserver.NewSceneResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=102,
+ serialized_end=120,
+)
+
+
+_ANIMATION = _descriptor.Descriptor(
+ name="Animation",
+ full_name="renderserver.Animation",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="name",
+ full_name="renderserver.Animation.name",
+ index=0,
+ number=1,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="duration",
+ full_name="renderserver.Animation.duration",
+ index=1,
+ number=2,
+ type=2,
+ cpp_type=6,
+ label=1,
+ has_default_value=False,
+ default_value=float(0),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=122,
+ serialized_end=165,
+)
+
+
+_ANIMATIONSTATUSREQUEST = _descriptor.Descriptor(
+ name="AnimationStatusRequest",
+ full_name="renderserver.AnimationStatusRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=167,
+ serialized_end=191,
+)
+
+
+_ANIMATIONSTATUSRESPONSE = _descriptor.Descriptor(
+ name="AnimationStatusResponse",
+ full_name="renderserver.AnimationStatusResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=193,
+ serialized_end=218,
+)
+
+
+_MANIMSTATUSREQUEST = _descriptor.Descriptor(
+ name="ManimStatusRequest",
+ full_name="renderserver.ManimStatusRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[
+ _descriptor.FieldDescriptor(
+ name="scene_name",
+ full_name="renderserver.ManimStatusRequest.scene_name",
+ index=0,
+ number=1,
+ type=9,
+ cpp_type=9,
+ label=1,
+ has_default_value=False,
+ default_value=b"".decode("utf-8"),
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="scene_finished",
+ full_name="renderserver.ManimStatusRequest.scene_finished",
+ index=1,
+ number=2,
+ type=8,
+ cpp_type=7,
+ label=1,
+ has_default_value=False,
+ default_value=False,
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ _descriptor.FieldDescriptor(
+ name="animations",
+ full_name="renderserver.ManimStatusRequest.animations",
+ index=2,
+ number=3,
+ type=11,
+ cpp_type=10,
+ label=3,
+ has_default_value=False,
+ default_value=[],
+ message_type=None,
+ enum_type=None,
+ containing_type=None,
+ is_extension=False,
+ extension_scope=None,
+ serialized_options=None,
+ file=DESCRIPTOR,
+ ),
+ ],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=220,
+ serialized_end=329,
+)
+
+
+_MANIMSTATUSRESPONSE = _descriptor.Descriptor(
+ name="ManimStatusResponse",
+ full_name="renderserver.ManimStatusResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=331,
+ serialized_end=352,
+)
+
+
+_UPDATESCENEREQUEST = _descriptor.Descriptor(
+ name="UpdateSceneRequest",
+ full_name="renderserver.UpdateSceneRequest",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=354,
+ serialized_end=374,
+)
+
+
+_UPDATESCENERESPONSE = _descriptor.Descriptor(
+ name="UpdateSceneResponse",
+ full_name="renderserver.UpdateSceneResponse",
+ filename=None,
+ file=DESCRIPTOR,
+ containing_type=None,
+ fields=[],
+ extensions=[],
+ nested_types=[],
+ enum_types=[],
+ serialized_options=None,
+ is_extendable=False,
+ syntax="proto3",
+ extension_ranges=[],
+ oneofs=[],
+ serialized_start=376,
+ serialized_end=397,
+)
+
+_MANIMSTATUSREQUEST.fields_by_name["animations"].message_type = _ANIMATION
+DESCRIPTOR.message_types_by_name["EmptyRequest"] = _EMPTYREQUEST
+DESCRIPTOR.message_types_by_name["EmptyResponse"] = _EMPTYRESPONSE
+DESCRIPTOR.message_types_by_name["NewSceneRequest"] = _NEWSCENEREQUEST
+DESCRIPTOR.message_types_by_name["NewSceneResponse"] = _NEWSCENERESPONSE
+DESCRIPTOR.message_types_by_name["Animation"] = _ANIMATION
+DESCRIPTOR.message_types_by_name["AnimationStatusRequest"] = _ANIMATIONSTATUSREQUEST
+DESCRIPTOR.message_types_by_name["AnimationStatusResponse"] = _ANIMATIONSTATUSRESPONSE
+DESCRIPTOR.message_types_by_name["ManimStatusRequest"] = _MANIMSTATUSREQUEST
+DESCRIPTOR.message_types_by_name["ManimStatusResponse"] = _MANIMSTATUSRESPONSE
+DESCRIPTOR.message_types_by_name["UpdateSceneRequest"] = _UPDATESCENEREQUEST
+DESCRIPTOR.message_types_by_name["UpdateSceneResponse"] = _UPDATESCENERESPONSE
+_sym_db.RegisterFileDescriptor(DESCRIPTOR)
+
+EmptyRequest = _reflection.GeneratedProtocolMessageType(
+ "EmptyRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _EMPTYREQUEST,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.EmptyRequest)
+ },
+)
+_sym_db.RegisterMessage(EmptyRequest)
+
+EmptyResponse = _reflection.GeneratedProtocolMessageType(
+ "EmptyResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _EMPTYRESPONSE,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.EmptyResponse)
+ },
+)
+_sym_db.RegisterMessage(EmptyResponse)
+
+NewSceneRequest = _reflection.GeneratedProtocolMessageType(
+ "NewSceneRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _NEWSCENEREQUEST,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.NewSceneRequest)
+ },
+)
+_sym_db.RegisterMessage(NewSceneRequest)
+
+NewSceneResponse = _reflection.GeneratedProtocolMessageType(
+ "NewSceneResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _NEWSCENERESPONSE,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.NewSceneResponse)
+ },
+)
+_sym_db.RegisterMessage(NewSceneResponse)
+
+Animation = _reflection.GeneratedProtocolMessageType(
+ "Animation",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _ANIMATION,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.Animation)
+ },
+)
+_sym_db.RegisterMessage(Animation)
+
+AnimationStatusRequest = _reflection.GeneratedProtocolMessageType(
+ "AnimationStatusRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _ANIMATIONSTATUSREQUEST,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.AnimationStatusRequest)
+ },
+)
+_sym_db.RegisterMessage(AnimationStatusRequest)
+
+AnimationStatusResponse = _reflection.GeneratedProtocolMessageType(
+ "AnimationStatusResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _ANIMATIONSTATUSRESPONSE,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.AnimationStatusResponse)
+ },
+)
+_sym_db.RegisterMessage(AnimationStatusResponse)
+
+ManimStatusRequest = _reflection.GeneratedProtocolMessageType(
+ "ManimStatusRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _MANIMSTATUSREQUEST,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.ManimStatusRequest)
+ },
+)
+_sym_db.RegisterMessage(ManimStatusRequest)
+
+ManimStatusResponse = _reflection.GeneratedProtocolMessageType(
+ "ManimStatusResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _MANIMSTATUSRESPONSE,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.ManimStatusResponse)
+ },
+)
+_sym_db.RegisterMessage(ManimStatusResponse)
+
+UpdateSceneRequest = _reflection.GeneratedProtocolMessageType(
+ "UpdateSceneRequest",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _UPDATESCENEREQUEST,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.UpdateSceneRequest)
+ },
+)
+_sym_db.RegisterMessage(UpdateSceneRequest)
+
+UpdateSceneResponse = _reflection.GeneratedProtocolMessageType(
+ "UpdateSceneResponse",
+ (_message.Message,),
+ {
+ "DESCRIPTOR": _UPDATESCENERESPONSE,
+ "__module__": "renderserver_pb2"
+ # @@protoc_insertion_point(class_scope:renderserver.UpdateSceneResponse)
+ },
+)
+_sym_db.RegisterMessage(UpdateSceneResponse)
+
+
+_RENDERSERVER = _descriptor.ServiceDescriptor(
+ name="RenderServer",
+ full_name="renderserver.RenderServer",
+ file=DESCRIPTOR,
+ index=0,
+ serialized_options=None,
+ serialized_start=400,
+ serialized_end=804,
+ methods=[
+ _descriptor.MethodDescriptor(
+ name="AnimationStatus",
+ full_name="renderserver.RenderServer.AnimationStatus",
+ index=0,
+ containing_service=None,
+ input_type=_EMPTYREQUEST,
+ output_type=_EMPTYRESPONSE,
+ serialized_options=None,
+ ),
+ _descriptor.MethodDescriptor(
+ name="ManimStatus",
+ full_name="renderserver.RenderServer.ManimStatus",
+ index=1,
+ containing_service=None,
+ input_type=_MANIMSTATUSREQUEST,
+ output_type=_MANIMSTATUSRESPONSE,
+ serialized_options=None,
+ ),
+ _descriptor.MethodDescriptor(
+ name="UpdateScene",
+ full_name="renderserver.RenderServer.UpdateScene",
+ index=2,
+ containing_service=None,
+ input_type=_UPDATESCENEREQUEST,
+ output_type=_UPDATESCENERESPONSE,
+ serialized_options=None,
+ ),
+ _descriptor.MethodDescriptor(
+ name="NewScene",
+ full_name="renderserver.RenderServer.NewScene",
+ index=3,
+ containing_service=None,
+ input_type=_NEWSCENEREQUEST,
+ output_type=_EMPTYRESPONSE,
+ serialized_options=None,
+ ),
+ _descriptor.MethodDescriptor(
+ name="SceneFinished",
+ full_name="renderserver.RenderServer.SceneFinished",
+ index=4,
+ containing_service=None,
+ input_type=_EMPTYREQUEST,
+ output_type=_EMPTYRESPONSE,
+ serialized_options=None,
+ ),
+ ],
+)
+_sym_db.RegisterServiceDescriptor(_RENDERSERVER)
+
+DESCRIPTOR.services_by_name["RenderServer"] = _RENDERSERVER
+
+# @@protoc_insertion_point(module_scope)
diff --git a/manim/grpc/gen/renderserver_pb2_grpc.py b/manim/grpc/gen/renderserver_pb2_grpc.py
new file mode 100644
index 000000000..26feaa1dd
--- /dev/null
+++ b/manim/grpc/gen/renderserver_pb2_grpc.py
@@ -0,0 +1,248 @@
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
+import grpc
+
+import renderserver_pb2 as renderserver__pb2
+
+
+class RenderServerStub(object):
+ """Missing associated documentation comment in .proto file"""
+
+ def __init__(self, channel):
+ """Constructor.
+
+ Args:
+ channel: A grpc.Channel.
+ """
+ self.AnimationStatus = channel.unary_unary(
+ "/renderserver.RenderServer/AnimationStatus",
+ request_serializer=renderserver__pb2.EmptyRequest.SerializeToString,
+ response_deserializer=renderserver__pb2.EmptyResponse.FromString,
+ )
+ self.ManimStatus = channel.unary_unary(
+ "/renderserver.RenderServer/ManimStatus",
+ request_serializer=renderserver__pb2.ManimStatusRequest.SerializeToString,
+ response_deserializer=renderserver__pb2.ManimStatusResponse.FromString,
+ )
+ self.UpdateScene = channel.unary_unary(
+ "/renderserver.RenderServer/UpdateScene",
+ request_serializer=renderserver__pb2.UpdateSceneRequest.SerializeToString,
+ response_deserializer=renderserver__pb2.UpdateSceneResponse.FromString,
+ )
+ self.NewScene = channel.unary_unary(
+ "/renderserver.RenderServer/NewScene",
+ request_serializer=renderserver__pb2.NewSceneRequest.SerializeToString,
+ response_deserializer=renderserver__pb2.EmptyResponse.FromString,
+ )
+ self.SceneFinished = channel.unary_unary(
+ "/renderserver.RenderServer/SceneFinished",
+ request_serializer=renderserver__pb2.EmptyRequest.SerializeToString,
+ response_deserializer=renderserver__pb2.EmptyResponse.FromString,
+ )
+
+
+class RenderServerServicer(object):
+ """Missing associated documentation comment in .proto file"""
+
+ def AnimationStatus(self, request, context):
+ """Used to signal that a new animation is ready to be animated."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ManimStatus(self, request, context):
+ """Used to signal when manim starts and stops."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def UpdateScene(self, request, context):
+ """Missing associated documentation comment in .proto file"""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def NewScene(self, request, context):
+ """Missing associated documentation comment in .proto file"""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def SceneFinished(self, request, context):
+ """Missing associated documentation comment in .proto file"""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+
+def add_RenderServerServicer_to_server(servicer, server):
+ rpc_method_handlers = {
+ "AnimationStatus": grpc.unary_unary_rpc_method_handler(
+ servicer.AnimationStatus,
+ request_deserializer=renderserver__pb2.EmptyRequest.FromString,
+ response_serializer=renderserver__pb2.EmptyResponse.SerializeToString,
+ ),
+ "ManimStatus": grpc.unary_unary_rpc_method_handler(
+ servicer.ManimStatus,
+ request_deserializer=renderserver__pb2.ManimStatusRequest.FromString,
+ response_serializer=renderserver__pb2.ManimStatusResponse.SerializeToString,
+ ),
+ "UpdateScene": grpc.unary_unary_rpc_method_handler(
+ servicer.UpdateScene,
+ request_deserializer=renderserver__pb2.UpdateSceneRequest.FromString,
+ response_serializer=renderserver__pb2.UpdateSceneResponse.SerializeToString,
+ ),
+ "NewScene": grpc.unary_unary_rpc_method_handler(
+ servicer.NewScene,
+ request_deserializer=renderserver__pb2.NewSceneRequest.FromString,
+ response_serializer=renderserver__pb2.EmptyResponse.SerializeToString,
+ ),
+ "SceneFinished": grpc.unary_unary_rpc_method_handler(
+ servicer.SceneFinished,
+ request_deserializer=renderserver__pb2.EmptyRequest.FromString,
+ response_serializer=renderserver__pb2.EmptyResponse.SerializeToString,
+ ),
+ }
+ generic_handler = grpc.method_handlers_generic_handler(
+ "renderserver.RenderServer", rpc_method_handlers
+ )
+ server.add_generic_rpc_handlers((generic_handler,))
+
+
+# This class is part of an EXPERIMENTAL API.
+class RenderServer(object):
+ """Missing associated documentation comment in .proto file"""
+
+ @staticmethod
+ def AnimationStatus(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/renderserver.RenderServer/AnimationStatus",
+ renderserver__pb2.EmptyRequest.SerializeToString,
+ renderserver__pb2.EmptyResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def ManimStatus(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/renderserver.RenderServer/ManimStatus",
+ renderserver__pb2.ManimStatusRequest.SerializeToString,
+ renderserver__pb2.ManimStatusResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def UpdateScene(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/renderserver.RenderServer/UpdateScene",
+ renderserver__pb2.UpdateSceneRequest.SerializeToString,
+ renderserver__pb2.UpdateSceneResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def NewScene(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/renderserver.RenderServer/NewScene",
+ renderserver__pb2.NewSceneRequest.SerializeToString,
+ renderserver__pb2.EmptyResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
+
+ @staticmethod
+ def SceneFinished(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/renderserver.RenderServer/SceneFinished",
+ renderserver__pb2.EmptyRequest.SerializeToString,
+ renderserver__pb2.EmptyResponse.FromString,
+ options,
+ channel_credentials,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ )
diff --git a/manim/grpc/impl/__init__.py b/manim/grpc/impl/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/manim/grpc/impl/frame_server_impl.py b/manim/grpc/impl/frame_server_impl.py
new file mode 100644
index 000000000..e288142cc
--- /dev/null
+++ b/manim/grpc/impl/frame_server_impl.py
@@ -0,0 +1,262 @@
+from ...config import camera_config
+from ...config import file_writer_config
+from ...scene import scene
+from ..gen import frameserver_pb2
+from ..gen import frameserver_pb2_grpc
+from ..gen import renderserver_pb2
+from ..gen import renderserver_pb2_grpc
+from concurrent import futures
+from google.protobuf import json_format
+from watchdog.events import LoggingEventHandler, FileSystemEventHandler
+from watchdog.observers import Observer
+import grpc
+import subprocess as sp
+import threading
+import time
+import ctypes
+from ...utils.module_ops import (
+ get_module,
+ get_scene_classes_from_module,
+ get_scenes_to_render,
+)
+from ...config.logger import logger
+from ...constants import JS_RENDERER_INFO
+
+
+class FrameServer(frameserver_pb2_grpc.FrameServerServicer):
+ def animation_index_is_cached(self, animation_index):
+ return animation_index < len(self.keyframes)
+
+ def __init__(self, server, scene_class):
+ self.server = server
+ self.keyframes = []
+ self.scene = scene_class(self)
+ self.scene_thread = threading.Thread(
+ target=lambda s: s.render(), args=(self.scene,)
+ )
+ self.previous_frame_animation_index = None
+ self.scene_finished = False
+
+ path = "./example_scenes/basic.py"
+ event_handler = UpdateFrontendHandler(self)
+ observer = Observer()
+ observer.schedule(event_handler, path)
+ observer.start()
+
+ # If a javascript renderer is running, notify it of the scene being served. If
+ # not, spawn one and it will request the scene when it starts.
+ with grpc.insecure_channel("localhost:50052") as channel:
+ stub = renderserver_pb2_grpc.RenderServerStub(channel)
+ request = renderserver_pb2.NewSceneRequest(name=str(self.scene))
+ try:
+ stub.NewScene(request)
+ except grpc._channel._InactiveRpcError:
+ logger.warning(f"No frontend was detected at localhost:50052.")
+ try:
+ sp.Popen(camera_config["js_renderer_path"])
+ except PermissionError:
+ logger.info(JS_RENDERER_INFO)
+ self.server.stop(None)
+ return
+
+ self.scene_thread.start()
+
+ def signal_pending_animation(self, animation_index):
+ self.scene.start_animation = animation_index
+ self.scene.animation_finished.set()
+ return frameserver_pb2.FrameResponse(frame_pending=True)
+
+ def GetFrameAtTime(self, request, context):
+ selected_scene = None
+ if self.animation_index_is_cached(request.animation_index):
+ selected_scene = self.keyframes[request.animation_index]
+ else:
+ return self.signal_pending_animation(request.animation_index)
+
+ # play() uses run_time and wait() uses duration TODO: Fix this inconsistency.
+ # TODO: What about animations without a fixed duration?
+ duration = (
+ selected_scene.run_time
+ if selected_scene.animations
+ else selected_scene.duration
+ )
+
+ if request.animation_offset > duration:
+ if self.animation_index_is_cached(request.animation_index + 1):
+ # TODO: Clone scenes to allow reuse.
+ selected_scene = self.keyframes[request.animation_index + 1]
+ else:
+ return self.signal_pending_animation(request.animation_index + 1)
+
+ setattr(selected_scene, "camera", self.scene.camera)
+
+ if selected_scene.animations:
+ # This is a call to play().
+ selected_scene.update_animation_to_time(request.animation_offset)
+ selected_scene.update_frame(
+ selected_scene.moving_mobjects,
+ selected_scene.static_image,
+ )
+ serialized_mobject_list, duration = selected_scene.add_frame(
+ selected_scene.get_frame()
+ )
+ resp = list_to_frame_response(
+ selected_scene, duration, serialized_mobject_list
+ )
+ return resp
+ else:
+ # This is a call to wait().
+ if selected_scene.should_update_mobjects():
+ # TODO, be smart about setting a static image
+ # the same way Scene.play does
+ selected_scene.update_animation_to_time(time)
+ selected_scene.update_frame()
+ serialized_mobject_list, duration = selected_scene.add_frame(
+ selected_scene.get_frame()
+ )
+ frame_response = list_to_frame_response(
+ selected_scene, duration, serialized_mobject_list
+ )
+ if (
+ selected_scene.stop_condition is not None
+ and selected_scene.stop_condition()
+ ):
+ selected_scene.animation_finished.set()
+ frame_response.frame_pending = True
+ selected_scene.renderer_waiting = True
+ return frame_response
+ elif selected_scene.skip_animations:
+ # Do nothing
+ return
+ else:
+ selected_scene.update_frame()
+ dt = 1 / selected_scene.camera.frame_rate
+ serialized_mobject_list, duration = selected_scene.add_frame(
+ selected_scene.get_frame(),
+ num_frames=int(selected_scene.duration / dt),
+ )
+ resp = list_to_frame_response(
+ selected_scene, duration, serialized_mobject_list
+ )
+ return resp
+
+ def RendererStatus(self, request, context):
+ response = frameserver_pb2.RendererStatusResponse()
+ response.scene_name = str(self.scene)
+ return response
+
+ # def UpdateSceneLocation(self, request, context):
+ # # Reload self.scene.
+ # print(scene_classes_to_render)
+
+ # response = frameserver_pb2.SceneLocationResponse()
+ # return response
+
+
+def list_to_frame_response(scene, duration, serialized_mobject_list):
+ response = frameserver_pb2.FrameResponse()
+ response.frame_pending = False
+ response.duration = duration
+
+ for mob_serialization in serialized_mobject_list:
+ mob_proto = response.mobjects.add()
+ mob_proto.id = mob_serialization["id"]
+ mob_proto.needs_redraw = mob_serialization["needs_redraw"]
+ for point in mob_serialization["points"]:
+ point_proto = mob_proto.points.add()
+ point_proto.x = point[0]
+ point_proto.y = point[1]
+ point_proto.z = point[2]
+ mob_proto.style.fill_color = mob_serialization["style"]["fill_color"]
+ mob_proto.style.fill_opacity = float(mob_serialization["style"]["fill_opacity"])
+ mob_proto.style.stroke_color = mob_serialization["style"]["stroke_color"]
+ mob_proto.style.stroke_opacity = float(
+ mob_serialization["style"]["stroke_opacity"]
+ )
+ mob_proto.style.stroke_width = float(mob_serialization["style"]["stroke_width"])
+ return response
+
+
+class UpdateFrontendHandler(FileSystemEventHandler):
+ """Logs all the events captured."""
+
+ def __init__(self, frame_server):
+ super().__init__()
+ self.frame_server = frame_server
+
+ def on_moved(self, event):
+ super().on_moved(event)
+ raise NotImplementedError("Update not implemented for moved files.")
+
+ def on_deleted(self, event):
+ super().on_deleted(event)
+ raise NotImplementedError("Update not implemented for deleted files.")
+
+ def on_modified(self, event):
+ super().on_modified(event)
+ module = get_module(file_writer_config["input_file"])
+ all_scene_classes = get_scene_classes_from_module(module)
+ scene_classes_to_render = get_scenes_to_render(all_scene_classes)
+ scene_class = scene_classes_to_render[0]
+
+ # Get the old thread's ID.
+ old_thread_id = None
+ old_thread = self.frame_server.scene_thread
+ if hasattr(old_thread, "_thread_id"):
+ old_thread_id = old_thread._thread_id
+ if old_thread_id is None:
+ for thread_id, thread in threading._active.items():
+ if thread is old_thread:
+ old_thread_id = thread_id
+
+ # Stop the old thread.
+ res = ctypes.pythonapi.PyThreadState_SetAsyncExc(
+ old_thread_id, ctypes.py_object(SystemExit)
+ )
+ if res > 1:
+ ctypes.pythonapi.PyThreadState_SetAsyncExc(old_thread_id, 0)
+ print("Exception raise failure")
+ old_thread.join()
+
+ # Start a new thread.
+ self.frame_server.initialize_scene(scene_class, start_animation=1)
+ self.frame_server.scene.reached_start_animation.wait()
+
+ # Serialize data on Animations up to the target one.
+ animations = []
+ for scene in self.frame_server.keyframes:
+ if scene.animations:
+ animation_duration = scene.run_time
+ if len(scene.animations) == 1:
+ animation_name = str(scene.animations[0])
+ else:
+ animation_name = f"{str(scene.animations[0])}..."
+ else:
+ animation_duration = scene.duration
+ animation_name = "Wait"
+ animations.append(
+ renderserver_pb2.Animation(
+ name=animation_name,
+ duration=animation_duration,
+ )
+ )
+
+ # Reset the renderer.
+ with grpc.insecure_channel("localhost:50052") as channel:
+ stub = renderserver_pb2_grpc.RenderServerStub(channel)
+ request = renderserver_pb2.ManimStatusRequest(
+ scene_name=str(self.frame_server.scene), animations=animations
+ )
+ try:
+ stub.ManimStatus(request)
+ except grpc._channel._InactiveRpcError:
+ sp.Popen(camera_config["js_renderer_path"])
+
+
+def get(scene_class):
+ server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
+ frameserver_pb2_grpc.add_FrameServerServicer_to_server(
+ FrameServer(server, scene_class), server
+ )
+ server.add_insecure_port("localhost:50051")
+ return server
diff --git a/manim/grpc/proto/frameserver.proto b/manim/grpc/proto/frameserver.proto
new file mode 100644
index 000000000..4c95e3b78
--- /dev/null
+++ b/manim/grpc/proto/frameserver.proto
@@ -0,0 +1,57 @@
+syntax = "proto3";
+
+package frameserver;
+
+service FrameServer {
+ // Updates the scene to the specified animation offset and returns a
+ // serialization of the frame at that time.
+ rpc GetFrameAtTime (FrameRequest) returns (FrameResponse);
+
+ // Used to signal to the renderer that manim is running.
+ rpc RendererStatus (RendererStatusRequest) returns (RendererStatusResponse);
+
+ rpc UpdateSceneLocation (SceneLocationRequest) returns (SceneLocationResponse);
+}
+
+message FrameRequest {
+ int64 animation_index = 1;
+ float animation_offset = 2;
+}
+
+message Style {
+ string fill_color = 1;
+ float fill_opacity = 2;
+ string stroke_color = 3;
+ float stroke_opacity = 4;
+ float stroke_width = 5;
+}
+
+message Point {
+ float x = 1;
+ float y = 2;
+ float z = 3;
+}
+
+message MobjectData {
+ int64 id = 1;
+ repeated Point points = 2;
+ Style style = 3;
+ bool needs_redraw = 4;
+}
+
+message FrameResponse {
+ repeated MobjectData mobjects = 1;
+ bool frame_pending = 2;
+ bool animation_finished = 3;
+ bool scene_finished = 4;
+ float duration = 5;
+ string animation_name = 6;
+}
+
+message RendererStatusRequest {}
+message RendererStatusResponse {
+ string scene_name = 1;
+}
+
+message SceneLocationRequest {}
+message SceneLocationResponse {}
diff --git a/manim/grpc/proto/renderserver.proto b/manim/grpc/proto/renderserver.proto
new file mode 100644
index 000000000..c868ae2c3
--- /dev/null
+++ b/manim/grpc/proto/renderserver.proto
@@ -0,0 +1,51 @@
+syntax = "proto3";
+
+package renderserver;
+
+service RenderServer {
+ // Used to signal that a new animation is ready to be animated.
+ rpc AnimationStatus (EmptyRequest) returns (EmptyResponse);
+
+ // Used to signal when manim starts and stops.
+ rpc ManimStatus (ManimStatusRequest) returns (ManimStatusResponse);
+
+ rpc UpdateScene (UpdateSceneRequest) returns (UpdateSceneResponse);
+
+ rpc NewScene (NewSceneRequest) returns (EmptyResponse);
+
+ rpc SceneFinished (EmptyRequest) returns (EmptyResponse);
+}
+
+message EmptyRequest {}
+message EmptyResponse {}
+
+message NewSceneRequest {
+ string name = 1;
+}
+
+message NewSceneResponse {}
+
+message Animation {
+ string name = 1;
+ float duration = 2;
+}
+
+message AnimationStatusRequest {}
+message AnimationStatusResponse {}
+
+message ManimStatusRequest {
+ // The name of the scene whose frames are currently being served. This is
+ // only seen if a javascript renderer is running prior to manim being
+ // started.
+ string scene_name = 1;
+
+ // Indicates that the current Scene is finished.
+ bool scene_finished = 2;
+
+ // Indicates that the Animations have been updated and should be changed.
+ repeated Animation animations = 3;
+}
+message ManimStatusResponse {}
+
+message UpdateSceneRequest {}
+message UpdateSceneResponse {}
diff --git a/manim/grpc/update_protos.sh b/manim/grpc/update_protos.sh
new file mode 100755
index 000000000..d6b43b68c
--- /dev/null
+++ b/manim/grpc/update_protos.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+python \
+ -m grpc_tools.protoc \
+ -I./proto \
+ --python_out=./gen \
+ --grpc_python_out=./gen \
+ ./proto/frameserver.proto \
+ ./proto/renderserver.proto
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index b93f0d40b..16227bc0d 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -52,6 +52,7 @@ class Mobject(Container):
def __init__(self, **kwargs):
Container.__init__(self, **kwargs)
+ self.point_hash = None
self.submobjects = []
self.color = Color(self.color)
if self.name is None:
diff --git a/manim/mobject/types/vectorized_mobject.py b/manim/mobject/types/vectorized_mobject.py
index 8f499d62e..bcb8f7cf4 100644
--- a/manim/mobject/types/vectorized_mobject.py
+++ b/manim/mobject/types/vectorized_mobject.py
@@ -13,8 +13,7 @@ __all__ = [
import itertools as it
import sys
-
-from colour import Color
+import colour
from ...constants import *
from ...mobject.mobject import Mobject
@@ -211,21 +210,29 @@ class VMobject(Mobject):
self.color_using_background_image(background_image_file)
return self
- def get_style(self):
- return {
- "fill_color": self.get_fill_colors(),
- "fill_opacity": self.get_fill_opacities(),
- "stroke_color": self.get_stroke_colors(),
- "stroke_width": self.get_stroke_width(),
+ def get_style(self, simple=False):
+ ret = {
"stroke_opacity": self.get_stroke_opacity(),
- "background_stroke_color": self.get_stroke_colors(background=True),
- "background_stroke_width": self.get_stroke_width(background=True),
- "background_stroke_opacity": self.get_stroke_opacity(background=True),
- "sheen_factor": self.get_sheen_factor(),
- "sheen_direction": self.get_sheen_direction(),
- "background_image_file": self.get_background_image_file(),
+ "stroke_width": self.get_stroke_width(),
}
+ if simple:
+ ret["fill_color"] = colour.rgb2hex(self.get_fill_color().get_rgb())
+ ret["fill_opacity"] = self.get_fill_opacity()
+ ret["stroke_color"] = colour.rgb2hex(self.get_stroke_color().get_rgb())
+ else:
+ ret["fill_color"] = self.get_fill_colors()
+ ret["fill_opacity"] = self.get_fill_opacities()
+ ret["stroke_color"] = self.get_stroke_colors()
+ ret["background_stroke_color"] = self.get_stroke_colors(background=True)
+ ret["background_stroke_width"] = self.get_stroke_width(background=True)
+ ret["background_stroke_opacity"] = self.get_stroke_opacity(background=True)
+ ret["sheen_factor"] = self.get_sheen_factor()
+ ret["sheen_direction"] = self.get_sheen_direction()
+ ret["background_image_file"] = self.get_background_image_file()
+
+ return ret
+
def match_style(self, vmobject, family=True):
self.set_style(**vmobject.get_style(), family=False)
@@ -290,7 +297,7 @@ class VMobject(Mobject):
return self.get_fill_opacities()[0]
def get_fill_colors(self):
- return [Color(rgb=rgba[:3]) for rgba in self.get_fill_rgbas()]
+ return [colour.Color(rgb=rgba[:3]) for rgba in self.get_fill_rgbas()]
def get_fill_opacities(self):
return self.get_fill_rgbas()[:, 3]
@@ -319,7 +326,9 @@ class VMobject(Mobject):
return self.get_stroke_opacities(background)[0]
def get_stroke_colors(self, background=False):
- return [Color(rgb=rgba[:3]) for rgba in self.get_stroke_rgbas(background)]
+ return [
+ colour.Color(rgb=rgba[:3]) for rgba in self.get_stroke_rgbas(background)
+ ]
def get_stroke_opacities(self, background=False):
return self.get_stroke_rgbas(background)[:, 3]
diff --git a/manim/scene/js_scene.py b/manim/scene/js_scene.py
new file mode 100644
index 000000000..80aa682d7
--- /dev/null
+++ b/manim/scene/js_scene.py
@@ -0,0 +1,145 @@
+from . import scene
+from ..camera.camera import Camera
+from ..camera.js_camera import JsCamera
+from ..config import config
+from ..grpc.gen import renderserver_pb2
+from ..grpc.gen import renderserver_pb2_grpc
+from ..grpc.impl.frame_server_impl import FrameServer
+from ..mobject.mobject import Mobject
+from ..constants import DEFAULT_WAIT_TIME
+from threading import Event
+import copy
+import grpc
+import inspect
+import random
+import string
+import types
+from ..config.logger import logger
+
+
+def get_random_name(name_map):
+ while True:
+ random_name = "".join(random.sample(string.ascii_lowercase, k=10))
+ if random_name not in name_map:
+ return random_name
+
+
+class JsScene(scene.Scene):
+ def __init__(self, frame_server):
+ super().__init__(camera_class=JsCamera)
+ self.frame_server = frame_server
+ self.start_animation = 0
+ self.reached_start_animation = Event()
+ self.animation_finished = Event()
+ self.renderer_waiting = False
+
+ def __deepcopy__(self, memo):
+ cls = self.__class__
+ result = cls.__new__(cls)
+ memo[id(self)] = result
+ for k, v in self.__dict__.items():
+ if type(v) in [FrameServer, Event, Camera]:
+ continue
+ setattr(result, k, copy.deepcopy(v, memo))
+
+ # Update updaters
+ for mobject in self.mobjects:
+ cloned_updaters = []
+ for updater in mobject.updaters:
+ # Make the cloned updater use the cloned Mobjects as free variables
+ # rather than the original ones.
+ # TODO: The the same for function calls recursively.
+ free_variable_map = inspect.getclosurevars(updater).nonlocals
+ cloned_co_freevars = []
+ cloned_closure = []
+ for i, free_variable_name in enumerate(updater.__code__.co_freevars):
+ free_variable_value = free_variable_map[free_variable_name]
+ if isinstance(free_variable_value, Mobject):
+ random_name = get_random_name(free_variable_map)
+
+ # Put the cloned Mobject in the function's scope.
+ free_variable_map[random_name] = memo[id(free_variable_value)]
+
+ # Add the cloned Mobject's name to the free variable list.
+ cloned_co_freevars.append(random_name)
+
+ # Add a cell containing the cloned Mobject's reference to the
+ # closure list.
+ cloned_closure.append(
+ types.CellType(memo[id(free_variable_value)])
+ )
+ else:
+ cloned_co_freevars.append(free_variable_name)
+ cloned_closure.append(updater.__closure__[i])
+
+ cloned_updater = types.FunctionType(
+ updater.__code__.replace(co_freevars=tuple(cloned_co_freevars)),
+ updater.__globals__,
+ updater.__name__,
+ updater.__defaults__,
+ tuple(cloned_closure),
+ )
+ cloned_updaters.append(cloned_updater)
+ memo[id(mobject)].updaters = cloned_updaters
+ return result
+
+ def render(self):
+ try:
+ self.construct()
+ except scene.EndSceneEarlyException:
+ pass
+
+ self.frame_server.scene_finished = True
+ with grpc.insecure_channel("localhost:50052") as channel:
+ stub = renderserver_pb2_grpc.RenderServerStub(channel)
+ try:
+ stub.SceneFinished(renderserver_pb2.EmptyRequest())
+ except grpc._channel._InactiveRpcError as e:
+ logger.error(e)
+
+ def progress_through_animations(self):
+ self.frame_server.keyframes.append(copy.deepcopy(self))
+ self.animation_finished.clear()
+ if self.num_plays == self.start_animation:
+ with grpc.insecure_channel("localhost:50052") as channel:
+ stub = renderserver_pb2_grpc.RenderServerStub(channel)
+ try:
+ stub.AnimationStatus(renderserver_pb2.EmptyRequest())
+ except grpc._channel._InactiveRpcError as e:
+ logger.error(e)
+ self.animation_finished.wait()
+
+ @scene.handle_play_like_call
+ def wait(self, duration=DEFAULT_WAIT_TIME, stop_condition=None):
+ self.update_mobjects(dt=0) # Any problems with this?
+ self.animations = []
+ self.duration = duration
+ self.stop_condition = stop_condition
+ self.last_t = 0
+
+ self.frame_server.keyframes.append(copy.deepcopy(self))
+ self.animation_finished.clear()
+ if self.num_plays == self.start_animation:
+ with grpc.insecure_channel("localhost:50052") as channel:
+ stub = renderserver_pb2_grpc.RenderServerStub(channel)
+ try:
+ stub.AnimationStatus(renderserver_pb2.EmptyRequest())
+ except grpc._channel._InactiveRpcError as e:
+ logger.error(e)
+ self.animation_finished.wait()
+
+ def add_frame(self, serialized_frame, num_frames=1):
+ dt = 1 / self.camera.frame_rate
+ self.increment_time(num_frames * dt)
+ if num_frames != 1:
+ duration = num_frames / self.camera.frame_rate
+ else:
+ duration = 0
+ return self.camera.serialized_frame, duration
+
+ def get_frame(self):
+ return self.camera.serialized_frame
+
+
+if config["use_js_renderer"]:
+ scene.Scene = JsScene
diff --git a/manim/scene/scene.py b/manim/scene/scene.py
index 249f6b04c..f6608c8c1 100644
--- a/manim/scene/scene.py
+++ b/manim/scene/scene.py
@@ -25,6 +25,39 @@ from ..utils.iterables import list_update
from ..utils.hashing import get_hash_from_play_call, get_hash_from_wait_call
+def handle_play_like_call(func):
+ """
+ This method is used internally to wrap the
+ passed function, into a function that
+ actually writes to the video stream.
+ Simultaneously, it also adds to the number
+ of animations played.
+
+ Parameters
+ ----------
+ func : function
+ The play() like function that has to be
+ written to the video file stream.
+
+ Returns
+ -------
+ function
+ The play() like function that can now write
+ to the video file stream.
+ """
+
+ def wrapper(self, *args, **kwargs):
+ allow_write = not file_writer_config["skip_animations"]
+ if not self.camera.use_js_renderer:
+ self.file_writer.begin_animation(allow_write)
+ func(self, *args, **kwargs)
+ if not self.camera.use_js_renderer:
+ self.file_writer.end_animation(allow_write)
+ self.num_plays += 1
+
+ return wrapper
+
+
class Scene(Container):
"""A Scene is the canvas of your animation.
@@ -65,11 +98,13 @@ class Scene(Container):
def __init__(self, **kwargs):
Container.__init__(self, **kwargs)
self.camera = self.camera_class(**camera_config)
- self.file_writer = SceneFileWriter(
- self,
- **file_writer_config,
- )
+ if not self.camera.use_js_renderer:
+ self.file_writer = SceneFileWriter(
+ self,
+ **file_writer_config,
+ )
self.play_hashes_list = []
+
self.mobjects = []
self.original_skipping_status = file_writer_config["skip_animations"]
# TODO, remove need for foreground mobjects
@@ -82,10 +117,16 @@ class Scene(Container):
np.random.seed(self.random_seed)
self.setup()
+
+ def render(self):
+ """
+ Render this Scene.
+ """
try:
self.construct()
except EndSceneEarlyException:
pass
+
self.tear_down()
# We have to reset these settings in case of multiple renders.
file_writer_config["skip_animations"] = False
@@ -204,7 +245,7 @@ class Scene(Container):
self.foreground_mobjects,
)
if background is not None:
- self.camera.set_pixel_array(background)
+ self.camera.set_frame_to_background(background)
else:
self.camera.reset()
@@ -684,8 +725,7 @@ class Scene(Container):
ProgressDisplay
The CommandLine Progress Bar.
"""
- run_time = self.get_run_time(animations)
- time_progression = self.get_time_progression(run_time)
+ time_progression = self.get_time_progression(self.run_time)
time_progression.set_description(
"".join(
[
@@ -868,36 +908,6 @@ class Scene(Container):
return wrapper
- def handle_play_like_call(func):
- """
- This method is used internally to wrap the
- passed function, into a function that
- actually writes to the video stream.
- Simultaneously, it also adds to the number
- of animations played.
-
- Parameters
- ----------
- func : function
- The play() like function that has to be
- written to the video file stream.
-
- Returns
- -------
- function
- The play() like function that can now write
- to the video file stream.
- """
-
- def wrapper(self, *args, **kwargs):
- allow_write = not file_writer_config["skip_animations"]
- self.file_writer.begin_animation(allow_write)
- func(self, *args, **kwargs)
- self.file_writer.end_animation(allow_write)
- self.num_plays += 1
-
- return wrapper
-
def begin_animations(self, animations):
"""
This method begins the list of animations that is passed,
@@ -914,32 +924,33 @@ class Scene(Container):
# Begin animation
animation.begin()
- def progress_through_animations(self, animations):
+ def progress_through_animations(self):
"""
This method progresses through each animation
in the list passed and and updates the frames as required.
+ """
+ for t in self.get_animation_time_progression(self.animations):
+ self.update_animation_to_time(t)
+ self.update_frame(self.moving_mobjects, self.static_image)
+ self.add_frame(self.get_frame())
+
+ def update_animation_to_time(self, t):
+ """
+ Updates the current animation to the specified time.
Parameters
----------
- animations : list
- List of involved animations.
- """
- # Paint all non-moving objects onto the screen, so they don't
- # have to be rendered every frame
- moving_mobjects = self.get_moving_mobjects(*animations)
- self.update_frame(excluded_mobjects=moving_mobjects)
- static_image = self.get_frame()
- last_t = 0
- for t in self.get_animation_time_progression(animations):
- dt = t - last_t
- last_t = t
- for animation in animations:
- animation.update_mobjects(dt)
- alpha = t / animation.run_time
- animation.interpolate(alpha)
- self.update_mobjects(dt)
- self.update_frame(moving_mobjects, static_image)
- self.add_frames(self.get_frame())
+ t : int
+ Offset from the start of the animation to which to update the current
+ animation.
+ """
+ dt = t - self.last_t
+ self.last_t = t
+ for animation in self.animations:
+ animation.update_mobjects(dt)
+ alpha = t / animation.run_time
+ animation.interpolate(alpha)
+ self.update_mobjects(dt)
def finish_animations(self, animations):
"""
@@ -977,10 +988,20 @@ class Scene(Container):
if len(args) == 0:
warnings.warn("Called Scene.play with no animations")
return
- animations = self.compile_play_args_to_animation_list(*args, **kwargs)
- self.begin_animations(animations)
- self.progress_through_animations(animations)
- self.finish_animations(animations)
+ self.animations = self.compile_play_args_to_animation_list(*args, **kwargs)
+ self.begin_animations(self.animations)
+
+ # Paint all non-moving objects onto the screen, so they don't
+ # have to be rendered every frame
+ self.moving_mobjects = self.get_moving_mobjects(*self.animations)
+ self.update_frame(excluded_mobjects=self.moving_mobjects)
+ self.static_image = self.get_frame()
+ self.last_t = 0
+ self.run_time = self.get_run_time(self.animations)
+
+ self.progress_through_animations()
+
+ self.finish_animations(self.animations)
def clean_up_animations(self, *animations):
"""
@@ -1073,29 +1094,29 @@ class Scene(Container):
The scene, after waiting.
"""
self.update_mobjects(dt=0) # Any problems with this?
+ self.animations = []
+ self.duration = duration
+ self.stop_condition = stop_condition
+ self.last_t = 0
+
if self.should_update_mobjects():
time_progression = self.get_wait_time_progression(duration, stop_condition)
# TODO, be smart about setting a static image
# the same way Scene.play does
- last_t = 0
for t in time_progression:
- dt = t - last_t
- last_t = t
- self.update_mobjects(dt)
+ self.update_animation_to_time(t)
self.update_frame()
- self.add_frames(self.get_frame())
+ self.add_frame(self.get_frame())
if stop_condition is not None and stop_condition():
time_progression.close()
break
- elif file_writer_config["skip_animations"]:
+ elif self.skip_animations:
# Do nothing
return self
else:
self.update_frame()
dt = 1 / self.camera.frame_rate
- n_frames = int(duration / dt)
- frame = self.get_frame()
- self.add_frames(*[frame] * n_frames)
+ self.add_frame(self.get_frame(), num_frames=int(duration / dt))
return self
def wait_until(self, stop_condition, max_time=60):
@@ -1145,20 +1166,22 @@ class Scene(Container):
file_writer_config["skip_animations"] = self.original_skipping_status
return self
- def add_frames(self, *frames):
+ def add_frame(self, frame, num_frames=1):
"""
Adds a frame to the video_file_stream
Parameters
----------
- *frames : numpy.ndarray
- The frames to add, as pixel arrays.
+ frame : numpy.ndarray
+ The frame to add, as a pixel array.
+ num_frames: int
+ The number of times to add frame.
"""
dt = 1 / self.camera.frame_rate
- self.increment_time(len(frames) * dt)
+ self.increment_time(num_frames * dt)
if file_writer_config["skip_animations"]:
return
- for frame in frames:
+ for _ in range(num_frames):
self.file_writer.write_frame(frame)
def add_sound(self, sound_file, time_offset=0, gain=None, **kwargs):
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.py
index e510c351d..efc5dcd79 100644
--- a/manim/scene/scene_file_writer.py
+++ b/manim/scene/scene_file_writer.py
@@ -366,7 +366,7 @@ class SceneFileWriter(object):
self.update_frame()
n_frames = 1
frame = self.get_frame()
- self.add_frames(*[frame] * n_frames)
+ self.add_frame(*[frame] * n_frames)
b = datetime.datetime.now()
time_diff = (b - a).total_seconds()
frame_duration = 1 / self.scene.camera.frame_rate
diff --git a/manim/utils/file_ops.py b/manim/utils/file_ops.py
index e62476ba0..856c59941 100644
--- a/manim/utils/file_ops.py
+++ b/manim/utils/file_ops.py
@@ -10,10 +10,11 @@ __all__ = [
import os
-import subprocess as sp
import platform
import numpy as np
import time
+import re
+import subprocess as sp
def add_extension_if_not_present(file_name, extension):
diff --git a/manim/utils/module_ops.py b/manim/utils/module_ops.py
new file mode 100644
index 000000000..d08357280
--- /dev/null
+++ b/manim/utils/module_ops.py
@@ -0,0 +1,105 @@
+from .. import constants
+from ..config import file_writer_config
+from ..config.logger import logger, console
+import importlib.util
+import inspect
+import os
+import sys
+import types
+
+
+def get_module(file_name):
+ if file_name == "-":
+ module = types.ModuleType("input_scenes")
+ logger.info(
+ "Enter the animation's code & end with an EOF (CTRL+D on Linux/Unix, CTRL+Z on Windows):"
+ )
+ code = sys.stdin.read()
+ if not code.startswith("from manim import"):
+ logger.warn(
+ "Didn't find an import statement for Manim. Importing automatically..."
+ )
+ code = "from manim import *\n" + code
+ logger.info("Rendering animation from typed code...")
+ try:
+ exec(code, module.__dict__)
+ return module
+ except Exception as e:
+ logger.error(f"Failed to render scene: {str(e)}")
+ sys.exit(2)
+ else:
+ if os.path.exists(file_name):
+ if file_name[-3:] != ".py":
+ raise Exception(f"{file_name} is not a valid Manim python script.")
+ module_name = file_name[:-3].replace(os.sep, ".").split(".")[-1]
+ spec = importlib.util.spec_from_file_location(module_name, file_name)
+ module = importlib.util.module_from_spec(spec)
+ sys.modules[module_name] = module
+ spec.loader.exec_module(module)
+ return module
+ else:
+ raise FileNotFoundError(f"{file_name} not found")
+
+
+def get_scene_classes_from_module(module):
+ from ..scene.scene import Scene
+
+ def is_child_scene(obj, module):
+ return (
+ inspect.isclass(obj)
+ and issubclass(obj, Scene)
+ and obj != Scene
+ and obj.__module__.startswith(module.__name__)
+ )
+
+ return [
+ member[1]
+ for member in inspect.getmembers(module, lambda x: is_child_scene(x, module))
+ ]
+
+
+def get_scenes_to_render(scene_classes):
+ if not scene_classes:
+ logger.error(constants.NO_SCENE_MESSAGE)
+ return []
+ if file_writer_config["write_all"]:
+ return scene_classes
+ result = []
+ for scene_name in file_writer_config["scene_names"]:
+ found = False
+ for scene_class in scene_classes:
+ if scene_class.__name__ == scene_name:
+ result.append(scene_class)
+ found = True
+ break
+ if not found and (scene_name != ""):
+ logger.error(constants.SCENE_NOT_FOUND_MESSAGE.format(scene_name))
+ if result:
+ return result
+ return (
+ [scene_classes[0]]
+ if len(scene_classes) == 1
+ else prompt_user_for_choice(scene_classes)
+ )
+
+
+def prompt_user_for_choice(scene_classes):
+ num_to_class = {}
+ for count, scene_class in enumerate(scene_classes):
+ count += 1 # start with 1 instead of 0
+ name = scene_class.__name__
+ console.print(f"{count}: {name}", style="logging.level.info")
+ num_to_class[count] = scene_class
+ try:
+ user_input = console.input(
+ f"[log.message] {constants.CHOOSE_NUMBER_MESSAGE} [/log.message]"
+ )
+ return [
+ num_to_class[int(num_str)]
+ for num_str in re.split(r"\s*,\s*", user_input.strip())
+ ]
+ except KeyError:
+ logger.error(constants.INVALID_NUMBER_MESSAGE)
+ sys.exit(2)
+ except EOFError:
+ sys.exit(1)
diff --git a/poetry.lock b/poetry.lock
index ad72a6a4e..c5e3151d7 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1,59 +1,83 @@
[[package]]
-name = "appdirs"
-version = "1.4.4"
-description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
category = "dev"
+description = "A configurable sidebar-enabled Sphinx theme"
+name = "alabaster"
optional = false
python-versions = "*"
+version = "0.7.12"
+
+[[package]]
+category = "dev"
+description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
+marker = "platform_python_implementation == \"CPython\""
+name = "appdirs"
+optional = false
+python-versions = "*"
+version = "1.4.4"
[[package]]
-name = "astroid"
-version = "2.4.2"
-description = "An abstract syntax tree for Python with inference support."
category = "dev"
+description = "An abstract syntax tree for Python with inference support."
+name = "astroid"
optional = false
python-versions = ">=3.5"
+version = "2.4.2"
[package.dependencies]
lazy-object-proxy = ">=1.4.0,<1.5.0"
six = ">=1.12,<2.0"
-typed-ast = {version = ">=1.4.0,<1.5", markers = "implementation_name == \"cpython\" and python_version < \"3.8\""}
wrapt = ">=1.11,<2.0"
+[package.dependencies.typed-ast]
+python = "<3.8"
+version = ">=1.4.0,<1.5"
+
[[package]]
-name = "atomicwrites"
-version = "1.4.0"
-description = "Atomic file writes."
category = "dev"
+description = "Atomic file writes."
+marker = "sys_platform == \"win32\""
+name = "atomicwrites"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "1.4.0"
[[package]]
-name = "attrs"
-version = "20.2.0"
-description = "Classes Without Boilerplate"
category = "dev"
+description = "Classes Without Boilerplate"
+name = "attrs"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "20.2.0"
[package.extras]
-dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "sphinx-rtd-theme", "pre-commit"]
+dev = ["coverage (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface", "sphinx", "sphinx-rtd-theme", "pre-commit"]
docs = ["sphinx", "sphinx-rtd-theme", "zope.interface"]
-tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"]
-tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"]
+tests = ["coverage (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "zope.interface"]
+tests_no_zope = ["coverage (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six"]
+
+[[package]]
+category = "dev"
+description = "Internationalization utilities"
+name = "babel"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "2.8.0"
+
+[package.dependencies]
+pytz = ">=2015.7"
[[package]]
-name = "black"
-version = "20.8b1"
-description = "The uncompromising code formatter."
category = "dev"
+description = "The uncompromising code formatter."
+marker = "platform_python_implementation == \"CPython\""
+name = "black"
optional = false
python-versions = ">=3.6"
+version = "20.8b1"
[package.dependencies]
appdirs = "*"
click = ">=7.1.2"
-dataclasses = {version = ">=0.6", markers = "python_version < \"3.7\""}
mypy-extensions = ">=0.4.3"
pathspec = ">=0.6,<1"
regex = ">=2020.1.8"
@@ -61,63 +85,147 @@ toml = ">=0.10.1"
typed-ast = ">=1.4.0"
typing-extensions = ">=3.7.4"
+[package.dependencies.dataclasses]
+python = "<3.7"
+version = ">=0.6"
+
[package.extras]
colorama = ["colorama (>=0.4.3)"]
d = ["aiohttp (>=3.3.2)", "aiohttp-cors"]
[[package]]
-name = "click"
-version = "7.1.2"
-description = "Composable command line interface toolkit"
category = "dev"
+description = "Python package for providing Mozilla's CA Bundle."
+name = "certifi"
+optional = false
+python-versions = "*"
+version = "2020.6.20"
+
+[[package]]
+category = "dev"
+description = "Universal encoding detector for Python 2 and 3"
+name = "chardet"
+optional = false
+python-versions = "*"
+version = "3.0.4"
+
+[[package]]
+category = "dev"
+description = "Composable command line interface toolkit"
+marker = "platform_python_implementation == \"CPython\""
+name = "click"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+version = "7.1.2"
[[package]]
-name = "colorama"
-version = "0.4.3"
-description = "Cross-platform colored terminal text."
category = "main"
+description = "Cross-platform colored terminal text."
+name = "colorama"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+version = "0.4.3"
[[package]]
-name = "colour"
-version = "0.1.5"
-description = "converts and manipulates various color representation (HSL, RVB, web, X11, ...)"
category = "main"
+description = "converts and manipulates various color representation (HSL, RVB, web, X11, ...)"
+name = "colour"
optional = false
python-versions = "*"
+version = "0.1.5"
[package.extras]
test = ["nose"]
[[package]]
-name = "commonmark"
-version = "0.9.1"
-description = "Python parser for the CommonMark Markdown spec"
category = "main"
+description = "Python parser for the CommonMark Markdown spec"
+name = "commonmark"
optional = false
python-versions = "*"
+version = "0.9.1"
[package.extras]
test = ["flake8 (3.7.8)", "hypothesis (3.55.3)"]
[[package]]
+category = "main"
+description = "A backport of the dataclasses module for Python 3.6"
+marker = "python_version >= \"3.6\" and python_version < \"3.7\" or platform_python_implementation == \"CPython\" and python_version < \"3.7\""
name = "dataclasses"
+optional = false
+python-versions = ">=3.6, <3.7"
version = "0.7"
-description = "A backport of the dataclasses module for Python 3.6"
+
+[[package]]
+category = "dev"
+description = "Docutils -- Python Documentation Utilities"
+name = "docutils"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+version = "0.16"
+
+[[package]]
category = "main"
+description = "HTTP/2-based RPC framework"
+name = "grpcio"
optional = false
-python-versions = ">=3.6, <3.7"
+python-versions = "*"
+version = "1.32.0"
+
+[package.dependencies]
+six = ">=1.5.2"
+
+[package.extras]
+protobuf = ["grpcio-tools (>=1.32.0)"]
+
+[[package]]
+category = "main"
+description = "Protobuf code generator for gRPC"
+name = "grpcio-tools"
+optional = false
+python-versions = "*"
+version = "1.32.0"
+
+[package.dependencies]
+grpcio = ">=1.32.0"
+protobuf = ">=3.5.0.post1,<4.0dev"
[[package]]
-name = "importlib-metadata"
-version = "2.0.0"
-description = "Read metadata from Python packages"
category = "dev"
+description = "Sphinx theme used by Guzzle."
+name = "guzzle-sphinx-theme"
+optional = false
+python-versions = "*"
+version = "0.7.11"
+
+[package.dependencies]
+Sphinx = ">=1.2b1"
+
+[[package]]
+category = "dev"
+description = "Internationalized Domain Names in Applications (IDNA)"
+name = "idna"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "2.10"
+
+[[package]]
+category = "dev"
+description = "Getting image size from png/jpeg/jpeg2000/gif file"
+name = "imagesize"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "1.2.0"
+
+[[package]]
+category = "dev"
+description = "Read metadata from Python packages"
+marker = "python_version < \"3.8\""
+name = "importlib-metadata"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
+version = "2.0.0"
[package.dependencies]
zipp = ">=0.5"
@@ -127,297 +235,534 @@ docs = ["sphinx", "rst.linker"]
testing = ["packaging", "pep517", "importlib-resources (>=1.3)"]
[[package]]
-name = "iniconfig"
-version = "1.0.1"
-description = "iniconfig: brain-dead simple config-ini parsing"
category = "dev"
+description = "iniconfig: brain-dead simple config-ini parsing"
+name = "iniconfig"
optional = false
python-versions = "*"
+version = "1.0.1"
[[package]]
-name = "isort"
-version = "5.5.4"
-description = "A Python utility / library to sort Python imports."
category = "dev"
+description = "A Python utility / library to sort Python imports."
+name = "isort"
optional = false
python-versions = ">=3.6,<4.0"
+version = "5.5.4"
[package.extras]
+colors = ["colorama (>=0.4.3,<0.5.0)"]
pipfile_deprecated_finder = ["pipreqs", "requirementslib"]
requirements_deprecated_finder = ["pipreqs", "pip-api"]
-colors = ["colorama (>=0.4.3,<0.5.0)"]
[[package]]
+category = "dev"
+description = "A very fast and expressive template engine."
+name = "jinja2"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+version = "2.11.2"
+
+[package.dependencies]
+MarkupSafe = ">=0.23"
+
+[package.extras]
+i18n = ["Babel (>=0.8)"]
+
+[[package]]
+category = "dev"
+description = "A fast and thorough lazy object proxy."
name = "lazy-object-proxy"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "1.4.3"
-description = "A fast and thorough lazy object proxy."
+
+[[package]]
category = "dev"
+description = "Safely add untrusted strings to HTML/XML markup."
+name = "markupsafe"
optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*"
+version = "1.1.1"
[[package]]
-name = "mccabe"
-version = "0.6.1"
-description = "McCabe checker, plugin for flake8"
category = "dev"
+description = "McCabe checker, plugin for flake8"
+name = "mccabe"
optional = false
python-versions = "*"
+version = "0.6.1"
[[package]]
-name = "mypy-extensions"
-version = "0.4.3"
-description = "Experimental type system extensions for programs checked with the mypy typechecker."
category = "dev"
+description = "Experimental type system extensions for programs checked with the mypy typechecker."
+marker = "platform_python_implementation == \"CPython\""
+name = "mypy-extensions"
optional = false
python-versions = "*"
+version = "0.4.3"
[[package]]
-name = "numpy"
-version = "1.19.2"
-description = "NumPy is the fundamental package for array computing with Python."
category = "main"
+description = "NumPy is the fundamental package for array computing with Python."
+name = "numpy"
optional = false
python-versions = ">=3.6"
+version = "1.19.2"
[[package]]
-name = "packaging"
-version = "20.4"
-description = "Core utilities for Python packages"
category = "dev"
+description = "Core utilities for Python packages"
+name = "packaging"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "20.4"
[package.dependencies]
pyparsing = ">=2.0.2"
six = "*"
[[package]]
-name = "pathspec"
-version = "0.8.0"
-description = "Utility library for gitignore style pattern matching of file paths."
category = "dev"
+description = "Utility library for gitignore style pattern matching of file paths."
+marker = "platform_python_implementation == \"CPython\""
+name = "pathspec"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+version = "0.8.0"
[[package]]
-name = "pillow"
-version = "7.2.0"
-description = "Python Imaging Library (Fork)"
category = "main"
+description = "File system general utilities"
+name = "pathtools"
+optional = false
+python-versions = "*"
+version = "0.1.2"
+
+[[package]]
+category = "main"
+description = "Python Imaging Library (Fork)"
+name = "pillow"
optional = false
python-versions = ">=3.5"
+version = "7.2.0"
[[package]]
-name = "pluggy"
-version = "0.13.1"
-description = "plugin and hook calling mechanisms for python"
category = "dev"
+description = "plugin and hook calling mechanisms for python"
+name = "pluggy"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "0.13.1"
[package.dependencies]
-importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
+[package.dependencies.importlib-metadata]
+python = "<3.8"
+version = ">=0.12"
[package.extras]
dev = ["pre-commit", "tox"]
[[package]]
+category = "main"
+description = "Text progress bar library for Python."
name = "progressbar"
+optional = false
+python-versions = "*"
version = "2.5"
-description = "Text progress bar library for Python."
+
+[[package]]
category = "main"
+description = "Protocol Buffers"
+name = "protobuf"
optional = false
python-versions = "*"
+version = "3.13.0"
+
+[package.dependencies]
+setuptools = "*"
+six = ">=1.9"
[[package]]
-name = "py"
-version = "1.9.0"
-description = "library with cross-python path, ini-parsing, io, code, log facilities"
category = "dev"
+description = "library with cross-python path, ini-parsing, io, code, log facilities"
+name = "py"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+version = "1.9.0"
[[package]]
-name = "pycairo"
-version = "1.19.2"
-description = "Python interface for cairo"
category = "main"
+description = "Python interface for cairo"
+marker = "sys_platform != \"win32\" or sys_platform == \"win32\""
+name = "pycairo"
optional = false
python-versions = ">=3.5, <4"
+version = "1.19.2"
[package.source]
+reference = "testpypi"
type = "legacy"
url = "https://test.pypi.org/simple"
-reference = "testpypi"
[[package]]
-name = "pydub"
-version = "0.24.1"
-description = "Manipulate audio with an simple and easy high level interface"
category = "main"
+description = "Manipulate audio with an simple and easy high level interface"
+name = "pydub"
optional = false
python-versions = "*"
+version = "0.24.1"
[[package]]
-name = "pygments"
-version = "2.7.1"
-description = "Pygments is a syntax highlighting package written in Python."
category = "main"
+description = "Pygments is a syntax highlighting package written in Python."
+name = "pygments"
optional = false
python-versions = ">=3.5"
+version = "2.7.1"
[[package]]
-name = "pylint"
-version = "2.6.0"
-description = "python code static checker"
category = "dev"
+description = "python code static checker"
+name = "pylint"
optional = false
python-versions = ">=3.5.*"
+version = "2.6.0"
[package.dependencies]
astroid = ">=2.4.0,<=2.5"
-colorama = {version = "*", markers = "sys_platform == \"win32\""}
+colorama = "*"
isort = ">=4.2.5,<6"
mccabe = ">=0.6,<0.7"
toml = ">=0.7.1"
[[package]]
-name = "pyparsing"
-version = "2.4.7"
-description = "Python parsing module"
category = "dev"
+description = "Python parsing module"
+name = "pyparsing"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+version = "2.4.7"
[[package]]
-name = "pytest"
-version = "6.1.0"
-description = "pytest: simple powerful testing with Python"
category = "dev"
+description = "pytest: simple powerful testing with Python"
+name = "pytest"
optional = false
python-versions = ">=3.5"
+version = "6.1.0"
[package.dependencies]
-atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""}
+atomicwrites = ">=1.0"
attrs = ">=17.4.0"
-colorama = {version = "*", markers = "sys_platform == \"win32\""}
-importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
+colorama = "*"
iniconfig = "*"
packaging = "*"
pluggy = ">=0.12,<1.0"
py = ">=1.8.2"
toml = "*"
+[package.dependencies.importlib-metadata]
+python = "<3.8"
+version = ">=0.12"
+
[package.extras]
checkqa_mypy = ["mypy (0.780)"]
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"]
[[package]]
+category = "dev"
+description = "World timezone definitions, modern and historical"
+name = "pytz"
+optional = false
+python-versions = "*"
+version = "2020.1"
+
+[[package]]
+category = "dev"
+description = "A docutils-compatibility bridge to CommonMark, enabling you to write CommonMark inside of Docutils & Sphinx projects."
+name = "recommonmark"
+optional = false
+python-versions = "*"
+version = "0.6.0"
+
+[package.dependencies]
+commonmark = ">=0.8.1"
+docutils = ">=0.11"
+sphinx = ">=1.3.1"
+
+[[package]]
+category = "dev"
+description = "Alternative regular expression module, to replace re."
+marker = "platform_python_implementation == \"CPython\""
name = "regex"
+optional = false
+python-versions = "*"
version = "2020.9.27"
-description = "Alternative regular expression module, to replace re."
+
+[[package]]
category = "dev"
+description = "Python HTTP for Humans."
+name = "requests"
optional = false
-python-versions = "*"
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+version = "2.24.0"
+
+[package.dependencies]
+certifi = ">=2017.4.17"
+chardet = ">=3.0.2,<4"
+idna = ">=2.5,<3"
+urllib3 = ">=1.21.1,<1.25.0 || >1.25.0,<1.25.1 || >1.25.1,<1.26"
+
+[package.extras]
+security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"]
+socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7)", "win-inet-pton"]
[[package]]
-name = "rich"
-version = "7.1.0"
-description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
category = "main"
+description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
+name = "rich"
optional = false
python-versions = ">=3.6,<4.0"
+version = "7.1.0"
[package.dependencies]
colorama = ">=0.4.0,<0.5.0"
commonmark = ">=0.9.0,<0.10.0"
-dataclasses = {version = ">=0.7,<0.8", markers = "python_version >= \"3.6\" and python_version < \"3.7\""}
pygments = ">=2.6.0,<3.0.0"
typing-extensions = ">=3.7.4,<4.0.0"
+[package.dependencies.dataclasses]
+python = ">=3.6,<3.7"
+version = ">=0.7,<0.8"
+
[package.extras]
jupyter = ["ipywidgets (>=7.5.1,<8.0.0)"]
[[package]]
-name = "scipy"
-version = "1.5.2"
-description = "SciPy: Scientific Library for Python"
category = "main"
+description = "SciPy: Scientific Library for Python"
+name = "scipy"
optional = false
python-versions = ">=3.6"
+version = "1.5.2"
[package.dependencies]
numpy = ">=1.14.5"
[[package]]
+category = "main"
+description = "Python 2 and 3 compatibility utilities"
name = "six"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
version = "1.15.0"
-description = "Python 2 and 3 compatibility utilities"
+
+[[package]]
category = "dev"
+description = "This package provides 26 stemmers for 25 languages generated from Snowball algorithms."
+name = "snowballstemmer"
optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+python-versions = "*"
+version = "2.0.0"
+
+[[package]]
+category = "dev"
+description = "Python documentation generator"
+name = "sphinx"
+optional = false
+python-versions = ">=3.5"
+version = "3.2.1"
+
+[package.dependencies]
+Jinja2 = ">=2.3"
+Pygments = ">=2.0"
+alabaster = ">=0.7,<0.8"
+babel = ">=1.3"
+colorama = ">=0.3.5"
+docutils = ">=0.12"
+imagesize = "*"
+packaging = "*"
+requests = ">=2.5.0"
+setuptools = "*"
+snowballstemmer = ">=1.1"
+sphinxcontrib-applehelp = "*"
+sphinxcontrib-devhelp = "*"
+sphinxcontrib-htmlhelp = "*"
+sphinxcontrib-jsmath = "*"
+sphinxcontrib-qthelp = "*"
+sphinxcontrib-serializinghtml = "*"
+
+[package.extras]
+docs = ["sphinxcontrib-websupport"]
+lint = ["flake8 (>=3.5.0)", "flake8-import-order", "mypy (>=0.780)", "docutils-stubs"]
+test = ["pytest", "pytest-cov", "html5lib", "typed-ast", "cython"]
+
+[[package]]
+category = "dev"
+description = "sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books"
+name = "sphinxcontrib-applehelp"
+optional = false
+python-versions = ">=3.5"
+version = "1.0.2"
+
+[package.extras]
+lint = ["flake8", "mypy", "docutils-stubs"]
+test = ["pytest"]
+
+[[package]]
+category = "dev"
+description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document."
+name = "sphinxcontrib-devhelp"
+optional = false
+python-versions = ">=3.5"
+version = "1.0.2"
+
+[package.extras]
+lint = ["flake8", "mypy", "docutils-stubs"]
+test = ["pytest"]
+
+[[package]]
+category = "dev"
+description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
+name = "sphinxcontrib-htmlhelp"
+optional = false
+python-versions = ">=3.5"
+version = "1.0.3"
+
+[package.extras]
+lint = ["flake8", "mypy", "docutils-stubs"]
+test = ["pytest", "html5lib"]
+
+[[package]]
+category = "dev"
+description = "A sphinx extension which renders display math in HTML via JavaScript"
+name = "sphinxcontrib-jsmath"
+optional = false
+python-versions = ">=3.5"
+version = "1.0.1"
+
+[package.extras]
+test = ["pytest", "flake8", "mypy"]
+
+[[package]]
+category = "dev"
+description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document."
+name = "sphinxcontrib-qthelp"
+optional = false
+python-versions = ">=3.5"
+version = "1.0.3"
+
+[package.extras]
+lint = ["flake8", "mypy", "docutils-stubs"]
+test = ["pytest"]
+
+[[package]]
+category = "dev"
+description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)."
+name = "sphinxcontrib-serializinghtml"
+optional = false
+python-versions = ">=3.5"
+version = "1.1.4"
+
+[package.extras]
+lint = ["flake8", "mypy", "docutils-stubs"]
+test = ["pytest"]
[[package]]
-name = "toml"
-version = "0.10.1"
-description = "Python Library for Tom's Obvious, Minimal Language"
category = "dev"
+description = "Python Library for Tom's Obvious, Minimal Language"
+name = "toml"
optional = false
python-versions = "*"
+version = "0.10.1"
[[package]]
-name = "tqdm"
-version = "4.50.0"
-description = "Fast, Extensible Progress Meter"
category = "main"
+description = "Fast, Extensible Progress Meter"
+name = "tqdm"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*"
+version = "4.50.0"
[package.extras]
dev = ["py-make (>=0.1.0)", "twine", "argopt", "pydoc-markdown"]
[[package]]
-name = "typed-ast"
-version = "1.4.1"
-description = "a fork of Python 2 and 3 ast modules with type comment support"
category = "dev"
+description = "a fork of Python 2 and 3 ast modules with type comment support"
+marker = "implementation_name == \"cpython\" and python_version < \"3.8\" or platform_python_implementation == \"CPython\""
+name = "typed-ast"
optional = false
python-versions = "*"
+version = "1.4.1"
[[package]]
+category = "main"
+description = "Backported and Experimental Type Hints for Python 3.5+"
name = "typing-extensions"
+optional = false
+python-versions = "*"
version = "3.7.4.3"
-description = "Backported and Experimental Type Hints for Python 3.5+"
+
+[[package]]
+category = "dev"
+description = "HTTP library with thread-safe connection pooling, file post, and more."
+name = "urllib3"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
+version = "1.25.10"
+
+[package.extras]
+brotli = ["brotlipy (>=0.6.0)"]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "pyOpenSSL (>=0.14)", "ipaddress"]
+socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7,<2.0)"]
+
+[[package]]
category = "main"
+description = "Filesystem events monitoring"
+name = "watchdog"
optional = false
python-versions = "*"
+version = "0.10.3"
+
+[package.dependencies]
+pathtools = ">=0.1.1"
+
+[package.extras]
+watchmedo = ["PyYAML (>=3.10)", "argh (>=0.24.1)"]
[[package]]
-name = "wrapt"
-version = "1.12.1"
-description = "Module for decorators, wrappers and monkey patching."
category = "dev"
+description = "Module for decorators, wrappers and monkey patching."
+name = "wrapt"
optional = false
python-versions = "*"
+version = "1.12.1"
[[package]]
-name = "zipp"
-version = "3.2.0"
-description = "Backport of pathlib-compatible object wrapper for zip files"
category = "dev"
+description = "Backport of pathlib-compatible object wrapper for zip files"
+marker = "python_version < \"3.8\""
+name = "zipp"
optional = false
python-versions = ">=3.6"
+version = "3.2.0"
[package.extras]
docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["pytest (>=3.5,<3.7.3 || >3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "jaraco.test (>=3.2.0)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"]
[metadata]
-lock-version = "1.1"
+content-hash = "871e7fec2d83c5631e4ad648317450667bb92c7e637ec1d2dc858742bc33a55e"
+lock-version = "1.0"
python-versions = "^3.6"
-content-hash = "2ab28ad951a028f4e1b955e7991e4449b95aa71c05d280c269d1c2254fbafd51"
[metadata.files]
+alabaster = [
+ {file = "alabaster-0.7.12-py2.py3-none-any.whl", hash = "sha256:446438bdcca0e05bd45ea2de1668c1d9b032e1a9154c2c259092d77031ddd359"},
+ {file = "alabaster-0.7.12.tar.gz", hash = "sha256:a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02"},
+]
appdirs = [
{file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"},
{file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"},
@@ -434,10 +779,21 @@ attrs = [
{file = "attrs-20.2.0-py2.py3-none-any.whl", hash = "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc"},
{file = "attrs-20.2.0.tar.gz", hash = "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594"},
]
+babel = [
+ {file = "Babel-2.8.0-py2.py3-none-any.whl", hash = "sha256:d670ea0b10f8b723672d3a6abeb87b565b244da220d76b4dba1b66269ec152d4"},
+ {file = "Babel-2.8.0.tar.gz", hash = "sha256:1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38"},
+]
black = [
- {file = "black-20.8b1-py3-none-any.whl", hash = "sha256:70b62ef1527c950db59062cda342ea224d772abdf6adc58b86a45421bab20a6b"},
{file = "black-20.8b1.tar.gz", hash = "sha256:1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea"},
]
+certifi = [
+ {file = "certifi-2020.6.20-py2.py3-none-any.whl", hash = "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"},
+ {file = "certifi-2020.6.20.tar.gz", hash = "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3"},
+]
+chardet = [
+ {file = "chardet-3.0.4-py2.py3-none-any.whl", hash = "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"},
+ {file = "chardet-3.0.4.tar.gz", hash = "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"},
+]
click = [
{file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"},
{file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"},
@@ -458,6 +814,103 @@ dataclasses = [
{file = "dataclasses-0.7-py3-none-any.whl", hash = "sha256:3459118f7ede7c8bea0fe795bff7c6c2ce287d01dd226202f7c9ebc0610a7836"},
{file = "dataclasses-0.7.tar.gz", hash = "sha256:494a6dcae3b8bcf80848eea2ef64c0cc5cd307ffc263e17cdf42f3e5420808e6"},
]
+docutils = [
+ {file = "docutils-0.16-py2.py3-none-any.whl", hash = "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af"},
+ {file = "docutils-0.16.tar.gz", hash = "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc"},
+]
+grpcio = [
+ {file = "grpcio-1.32.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:3afb058b6929eba07dba9ae6c5b555aa1d88cb140187d78cc510bd72d0329f28"},
+ {file = "grpcio-1.32.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:a8004b34f600a8a51785e46859cd88f3386ef67cccd1cfc7598e3d317608c643"},
+ {file = "grpcio-1.32.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:e6786f6f7be0937614577edcab886ddce91b7c1ea972a07ef9972e9f9ecbbb78"},
+ {file = "grpcio-1.32.0-cp27-cp27m-win32.whl", hash = "sha256:e467af6bb8f5843f5a441e124b43474715cfb3981264e7cd227343e826dcc3ce"},
+ {file = "grpcio-1.32.0-cp27-cp27m-win_amd64.whl", hash = "sha256:1376a60f9bfce781b39973f100b5f67e657b5be479f2fd8a7d2a408fc61c085c"},
+ {file = "grpcio-1.32.0-cp27-cp27mu-linux_armv7l.whl", hash = "sha256:ce617e1c4a39131f8527964ac9e700eb199484937d7a0b3e52655a3ba50d5fb9"},
+ {file = "grpcio-1.32.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:99bac0e2c820bf446662365df65841f0c2a55b0e2c419db86eaf5d162ddae73e"},
+ {file = "grpcio-1.32.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:6d869a3e8e62562b48214de95e9231c97c53caa7172802236cd5d60140d7cddd"},
+ {file = "grpcio-1.32.0-cp35-cp35m-linux_armv7l.whl", hash = "sha256:182c64ade34c341398bf71ec0975613970feb175090760ab4f51d1e9a5424f05"},
+ {file = "grpcio-1.32.0-cp35-cp35m-macosx_10_7_intel.whl", hash = "sha256:9c0d8f2346c842088b8cbe3e14985b36e5191a34bf79279ba321a4bf69bd88b7"},
+ {file = "grpcio-1.32.0-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:4775bc35af9cd3b5033700388deac2e1d611fa45f4a8dcb93667d94cb25f0444"},
+ {file = "grpcio-1.32.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:be98e3198ec765d0a1e27f69d760f69374ded8a33b953dcfe790127731f7e690"},
+ {file = "grpcio-1.32.0-cp35-cp35m-manylinux2014_i686.whl", hash = "sha256:378fe80ec5d9353548eb2a8a43ea03747a80f2e387c4f177f2b3ff6c7d898753"},
+ {file = "grpcio-1.32.0-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:f7d508691301027033215d3662dab7e178f54d5cca2329f26a71ae175d94b83f"},
+ {file = "grpcio-1.32.0-cp35-cp35m-win32.whl", hash = "sha256:25959a651420dd4a6fd7d3e8dee53f4f5fd8c56336a64963428e78b276389a59"},
+ {file = "grpcio-1.32.0-cp35-cp35m-win_amd64.whl", hash = "sha256:ac7028d363d2395f3d755166d0161556a3f99500a5b44890421ccfaaf2aaeb08"},
+ {file = "grpcio-1.32.0-cp36-cp36m-linux_armv7l.whl", hash = "sha256:c31e8a219650ddae1cd02f5a169e1bffe66a429a8255d3ab29e9363c73003b62"},
+ {file = "grpcio-1.32.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:e28e4c0d4231beda5dee94808e3a224d85cbaba3cfad05f2192e6f4ec5318053"},
+ {file = "grpcio-1.32.0-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:f03dfefa9075dd1c6c5cc27b1285c521434643b09338d8b29e1d6a27b386aa82"},
+ {file = "grpcio-1.32.0-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:c4966d746dccb639ef93f13560acbe9630681c07f2b320b7ec03fe2c8f0a1f15"},
+ {file = "grpcio-1.32.0-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:ec10d5f680b8e95a06f1367d73c5ddcc0ed04a3f38d6e4c9346988fb0cea2ffa"},
+ {file = "grpcio-1.32.0-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:28677f057e2ef11501860a7bc15de12091d40b95dd0fddab3c37ff1542e6b216"},
+ {file = "grpcio-1.32.0-cp36-cp36m-win32.whl", hash = "sha256:0f3f09269ffd3fded430cd89ba2397eabbf7e47be93983b25c187cdfebb302a7"},
+ {file = "grpcio-1.32.0-cp36-cp36m-win_amd64.whl", hash = "sha256:4396b1d0f388ae875eaf6dc05cdcb612c950fd9355bc34d38b90aaa0665a0d4b"},
+ {file = "grpcio-1.32.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:1ada89326a364a299527c7962e5c362dbae58c67b283fe8383c4d952b26565d5"},
+ {file = "grpcio-1.32.0-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:1d384a61f96a1fc6d5d3e0b62b0a859abc8d4c3f6d16daba51ebf253a3e7df5d"},
+ {file = "grpcio-1.32.0-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:e811ce5c387256609d56559d944a974cc6934a8eea8c76e7c86ec388dc06192d"},
+ {file = "grpcio-1.32.0-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:07b430fa68e5eecd78e2ad529ab80f6a234b55fc1b675fe47335ccbf64c6c6c8"},
+ {file = "grpcio-1.32.0-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:0e3edd8cdb71809d2455b9dbff66b4dd3d36c321e64bfa047da5afdfb0db332b"},
+ {file = "grpcio-1.32.0-cp37-cp37m-win32.whl", hash = "sha256:6f7947dad606c509d067e5b91a92b250aa0530162ab99e4737090f6b17eb12c4"},
+ {file = "grpcio-1.32.0-cp37-cp37m-win_amd64.whl", hash = "sha256:7cda998b7b551503beefc38db9be18c878cfb1596e1418647687575cdefa9273"},
+ {file = "grpcio-1.32.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c58825a3d8634cd634d8f869afddd4d5742bdb59d594aea4cea17b8f39269a55"},
+ {file = "grpcio-1.32.0-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:ef9bd7fdfc0a063b4ed0efcab7906df5cae9bbcf79d05c583daa2eba56752b00"},
+ {file = "grpcio-1.32.0-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:1ce6f5ff4f4a548c502d5237a071fa617115df58ea4b7bd41dac77c1ab126e9c"},
+ {file = "grpcio-1.32.0-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:f12900be4c3fd2145ba94ab0d80b7c3d71c9e6414cfee2f31b1c20188b5c281f"},
+ {file = "grpcio-1.32.0-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:f53f2dfc8ff9a58a993e414a016c8b21af333955ae83960454ad91798d467c7b"},
+ {file = "grpcio-1.32.0-cp38-cp38-win32.whl", hash = "sha256:5bddf9d53c8df70061916c3bfd2f468ccf26c348bb0fb6211531d895ed5e4c72"},
+ {file = "grpcio-1.32.0-cp38-cp38-win_amd64.whl", hash = "sha256:14c0f017bfebbc18139551111ac58ecbde11f4bc375b73a53af38927d60308b6"},
+ {file = "grpcio-1.32.0.tar.gz", hash = "sha256:01d3046fe980be25796d368f8fc5ff34b7cf5e1444f3789a017a7fe794465639"},
+]
+grpcio-tools = [
+ {file = "grpcio-tools-1.32.0.tar.gz", hash = "sha256:28547272c51e1d2d343685b9f531e85bb90ad7bd93e726ba646b5627173cbc47"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:b6165dc7d424c3c58a54e9e47eacc7cc1513cd09c7c71ff5323e74ead5bb863f"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:a7432b84d6f2f6260d5461eb2a8904db8cf24b663e0a1236375098c8e15c289c"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:4f61edfb0c07689a2835f15f4a25a781f058866cb4fea0bea391ae6deb74325f"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27m-win32.whl", hash = "sha256:a3524be59d4e6f8b089f7eaa128bc83e2375aac973f1bf0b568cd1c04c4df56e"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27m-win_amd64.whl", hash = "sha256:b31e7e909ba9efd8a08eb45665bf2f8326726da288d9e33555473e6b20596dbd"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27mu-linux_armv7l.whl", hash = "sha256:4e04d6a7c48adbdca64e9b67cc75e8294b3b37b1284dd2819183e38a4207aa39"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:37acc75ec1dc836772496ef77170fab585e2517abdf1330c29e682eb50a6ce86"},
+ {file = "grpcio_tools-1.32.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:7d5be0d06bf830efbf1867db7b01720e54a136454410270e896441ec56baba00"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-linux_armv7l.whl", hash = "sha256:6e26e8d0ef73c04dc1118513c06ff56bce36672c8e28410ae4f938c22002ba00"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-macosx_10_9_intel.whl", hash = "sha256:3971dee0cf57dc3813f6f40724161341ec3b31137b026ae8d4db30c83afeb2a1"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:83414dd919b692d92876db787b6fda709c226243c9bdb71b5025297a127f3be4"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:9b5beb49002bb1f1c0641b55ddc2d1d92c7844fb42348e874146bf7667b6ca20"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-manylinux2014_i686.whl", hash = "sha256:7a18d6375efe075cc274fdfe004bee4530319a2dbb044eb7eb157c313fe88c97"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-manylinux2014_x86_64.whl", hash = "sha256:8147085f0a044ddc27c870feb8e82a25685f3fdf09184dba0f63fed720f12e93"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-win32.whl", hash = "sha256:e2a37e716ef6b5e81c44648648aae258b67b9ef19e0a472ec4080f5e384be386"},
+ {file = "grpcio_tools-1.32.0-cp35-cp35m-win_amd64.whl", hash = "sha256:130c248d0d94473f3eb80d86bdae35a39eb20ab98fde6d227e7f7e053ccbba88"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-linux_armv7l.whl", hash = "sha256:11228fb5343c197e1f4376a966f6845ea270c794ec925260b8a27f6df5d90d04"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:246caf8cdea97ff3710a810c55c9400e3aa7af1a5464a667d62184e38a58a031"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:6aa6dd1d7e746c41803a209565d23e6027b0a5dd9b59596da37f99257cc58e65"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:541a6b992aa417a6305c965bb6896aa1a1ca37d00a82d5438074b18db6a37aad"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:e83146ef8f17e3a35fe77a438794f0a4a50ea11085194bfea1b419c1b342f7b1"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:71c451240e66245125e504abee5acc7ab30da099d5c17596d43ecc66e6034e20"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-win32.whl", hash = "sha256:6155ed6fed3c9a41fd03156c31adb5012c2399992c929987d3fa8ff1cd3c7cd8"},
+ {file = "grpcio_tools-1.32.0-cp36-cp36m-win_amd64.whl", hash = "sha256:a137b6079c96f11f0854a4793910f76aa4a62283947311b6e5131369fa226b48"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:f5f381943081792d82fe34c5a649d98a6b91741c6d62cbca8914943b8d1a4e8b"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:adeae62f3bd1c6839e3822620f7650d30adb7398170e3a0b45a0059f9fe631c8"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:bcc62cb4a3c9a39fb9e349124018e7d7edf0f627592561410e28b590767b831f"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:d11f432ed6fde059b33c514b64fcbf4527f56e03ff94f52f95121547c6945825"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:708077380f458ef831e7da67f574abfb2fc6b6a24225c5976d92809b8930254c"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-win32.whl", hash = "sha256:de8ca90742bd41a19c1067fba6ffa13befd3ddb505d67eb297d6a418a5937a25"},
+ {file = "grpcio_tools-1.32.0-cp37-cp37m-win_amd64.whl", hash = "sha256:632bba5853e955072392aac42fbca16daf65adfc0ec094fa840afbb83c78bee8"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c2da2a4b2209156d0f88f91bd5d4650a9ed830acb6f685881a26d67d3f671361"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:d3d01ebc1526cc9cdc5e29d2196bae43d56d8ec545dd30fead8b8b3e0b126808"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:fd059d37d9537fa1a89b1139f8cbed7530a5f81c8577560d3f7710fcec95efde"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:524f0460a49a3248d1cb462d0904e783a75bb3cecdcaea520c3688c8bccd9f2f"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:6327f2c6acca4eac1d5a8e1ee92282682b83069d53199ff8ce18906e912086ed"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-win32.whl", hash = "sha256:07c1da5f1dbd4db664d416f68db6a92d5c88b4073ec6be41fcc7aa4d632f60a9"},
+ {file = "grpcio_tools-1.32.0-cp38-cp38-win_amd64.whl", hash = "sha256:9b92f998ed1d01925160e47e9546c742aa0de49009f8fa3bb79420252d8a888d"},
+]
+guzzle-sphinx-theme = [
+ {file = "guzzle_sphinx_theme-0.7.11.tar.gz", hash = "sha256:9b8c1639c343c02c3f3db7df660ddf6f533b5454ee92a5f7b02edaa573fed3e6"},
+]
+idna = [
+ {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"},
+ {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"},
+]
+imagesize = [
+ {file = "imagesize-1.2.0-py2.py3-none-any.whl", hash = "sha256:6965f19a6a2039c7d48bca7dba2473069ff854c36ae6f19d2cde309d998228a1"},
+ {file = "imagesize-1.2.0.tar.gz", hash = "sha256:b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1"},
+]
importlib-metadata = [
{file = "importlib_metadata-2.0.0-py2.py3-none-any.whl", hash = "sha256:cefa1a2f919b866c5beb7c9f7b0ebb4061f30a8a9bf16d609b000e2dfaceb9c3"},
{file = "importlib_metadata-2.0.0.tar.gz", hash = "sha256:77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da"},
@@ -470,6 +923,10 @@ isort = [
{file = "isort-5.5.4-py3-none-any.whl", hash = "sha256:36f0c6659b9000597e92618d05b72d4181104cf59472b1c6a039e3783f930c95"},
{file = "isort-5.5.4.tar.gz", hash = "sha256:ba040c24d20aa302f78f4747df549573ae1eaf8e1084269199154da9c483f07f"},
]
+jinja2 = [
+ {file = "Jinja2-2.11.2-py2.py3-none-any.whl", hash = "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035"},
+ {file = "Jinja2-2.11.2.tar.gz", hash = "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0"},
+]
lazy-object-proxy = [
{file = "lazy-object-proxy-1.4.3.tar.gz", hash = "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0"},
{file = "lazy_object_proxy-1.4.3-cp27-cp27m-macosx_10_13_x86_64.whl", hash = "sha256:a2238e9d1bb71a56cd710611a1614d1194dc10a175c1e08d75e1a7bcc250d442"},
@@ -493,6 +950,41 @@ lazy-object-proxy = [
{file = "lazy_object_proxy-1.4.3-cp38-cp38-win32.whl", hash = "sha256:5541cada25cd173702dbd99f8e22434105456314462326f06dba3e180f203dfd"},
{file = "lazy_object_proxy-1.4.3-cp38-cp38-win_amd64.whl", hash = "sha256:59f79fef100b09564bc2df42ea2d8d21a64fdcda64979c0fa3db7bdaabaf6239"},
]
+markupsafe = [
+ {file = "MarkupSafe-1.1.1-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161"},
+ {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"},
+ {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183"},
+ {file = "MarkupSafe-1.1.1-cp27-cp27m-win32.whl", hash = "sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b"},
+ {file = "MarkupSafe-1.1.1-cp27-cp27m-win_amd64.whl", hash = "sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e"},
+ {file = "MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f"},
+ {file = "MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1"},
+ {file = "MarkupSafe-1.1.1-cp34-cp34m-macosx_10_6_intel.whl", hash = "sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5"},
+ {file = "MarkupSafe-1.1.1-cp34-cp34m-manylinux1_i686.whl", hash = "sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1"},
+ {file = "MarkupSafe-1.1.1-cp34-cp34m-manylinux1_x86_64.whl", hash = "sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735"},
+ {file = "MarkupSafe-1.1.1-cp34-cp34m-win32.whl", hash = "sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21"},
+ {file = "MarkupSafe-1.1.1-cp34-cp34m-win_amd64.whl", hash = "sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235"},
+ {file = "MarkupSafe-1.1.1-cp35-cp35m-macosx_10_6_intel.whl", hash = "sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b"},
+ {file = "MarkupSafe-1.1.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f"},
+ {file = "MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905"},
+ {file = "MarkupSafe-1.1.1-cp35-cp35m-win32.whl", hash = "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1"},
+ {file = "MarkupSafe-1.1.1-cp35-cp35m-win_amd64.whl", hash = "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d"},
+ {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff"},
+ {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473"},
+ {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e"},
+ {file = "MarkupSafe-1.1.1-cp36-cp36m-win32.whl", hash = "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66"},
+ {file = "MarkupSafe-1.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5"},
+ {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d"},
+ {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e"},
+ {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"},
+ {file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"},
+ {file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"},
+ {file = "MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15"},
+ {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2"},
+ {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42"},
+ {file = "MarkupSafe-1.1.1-cp38-cp38-win32.whl", hash = "sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b"},
+ {file = "MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"},
+ {file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"},
+]
mccabe = [
{file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"},
{file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"},
@@ -537,6 +1029,9 @@ pathspec = [
{file = "pathspec-0.8.0-py2.py3-none-any.whl", hash = "sha256:7d91249d21749788d07a2d0f94147accd8f845507400749ea19c1ec9054a12b0"},
{file = "pathspec-0.8.0.tar.gz", hash = "sha256:da45173eb3a6f2a5a487efba21f050af2b41948be6ab52b6a1e3ff22bb8b7061"},
]
+pathtools = [
+ {file = "pathtools-0.1.2.tar.gz", hash = "sha256:7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"},
+]
pillow = [
{file = "Pillow-7.2.0-cp35-cp35m-macosx_10_10_intel.whl", hash = "sha256:1ca594126d3c4def54babee699c055a913efb01e106c309fa6b04405d474d5ae"},
{file = "Pillow-7.2.0-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:c92302a33138409e8f1ad16731568c55c9053eee71bb05b6b744067e1b62380f"},
@@ -574,6 +1069,26 @@ pluggy = [
progressbar = [
{file = "progressbar-2.5.tar.gz", hash = "sha256:5d81cb529da2e223b53962afd6c8ca0f05c6670e40309a7219eacc36af9b6c63"},
]
+protobuf = [
+ {file = "protobuf-3.13.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:9c2e63c1743cba12737169c447374fab3dfeb18111a460a8c1a000e35836b18c"},
+ {file = "protobuf-3.13.0-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:1e834076dfef9e585815757a2c7e4560c7ccc5962b9d09f831214c693a91b463"},
+ {file = "protobuf-3.13.0-cp35-cp35m-macosx_10_9_intel.whl", hash = "sha256:df3932e1834a64b46ebc262e951cd82c3cf0fa936a154f0a42231140d8237060"},
+ {file = "protobuf-3.13.0-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:8c35bcbed1c0d29b127c886790e9d37e845ffc2725cc1db4bd06d70f4e8359f4"},
+ {file = "protobuf-3.13.0-cp35-cp35m-win32.whl", hash = "sha256:339c3a003e3c797bc84499fa32e0aac83c768e67b3de4a5d7a5a9aa3b0da634c"},
+ {file = "protobuf-3.13.0-cp35-cp35m-win_amd64.whl", hash = "sha256:361acd76f0ad38c6e38f14d08775514fbd241316cce08deb2ce914c7dfa1184a"},
+ {file = "protobuf-3.13.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:9edfdc679a3669988ec55a989ff62449f670dfa7018df6ad7f04e8dbacb10630"},
+ {file = "protobuf-3.13.0-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:5db9d3e12b6ede5e601b8d8684a7f9d90581882925c96acf8495957b4f1b204b"},
+ {file = "protobuf-3.13.0-cp36-cp36m-win32.whl", hash = "sha256:c8abd7605185836f6f11f97b21200f8a864f9cb078a193fe3c9e235711d3ff1e"},
+ {file = "protobuf-3.13.0-cp36-cp36m-win_amd64.whl", hash = "sha256:4d1174c9ed303070ad59553f435846a2f877598f59f9afc1b89757bdf846f2a7"},
+ {file = "protobuf-3.13.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0bba42f439bf45c0f600c3c5993666fcb88e8441d011fad80a11df6f324eef33"},
+ {file = "protobuf-3.13.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:c0c5ab9c4b1eac0a9b838f1e46038c3175a95b0f2d944385884af72876bd6bc7"},
+ {file = "protobuf-3.13.0-cp37-cp37m-win32.whl", hash = "sha256:f68eb9d03c7d84bd01c790948320b768de8559761897763731294e3bc316decb"},
+ {file = "protobuf-3.13.0-cp37-cp37m-win_amd64.whl", hash = "sha256:91c2d897da84c62816e2f473ece60ebfeab024a16c1751aaf31100127ccd93ec"},
+ {file = "protobuf-3.13.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3dee442884a18c16d023e52e32dd34a8930a889e511af493f6dc7d4d9bf12e4f"},
+ {file = "protobuf-3.13.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:e7662437ca1e0c51b93cadb988f9b353fa6b8013c0385d63a70c8a77d84da5f9"},
+ {file = "protobuf-3.13.0-py2.py3-none-any.whl", hash = "sha256:d69697acac76d9f250ab745b46c725edf3e98ac24763990b24d58c16c642947a"},
+ {file = "protobuf-3.13.0.tar.gz", hash = "sha256:6a82e0c8bb2bf58f606040cc5814e07715b2094caeba281e2e7d0b0e2e397db5"},
+]
py = [
{file = "py-1.9.0-py2.py3-none-any.whl", hash = "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2"},
{file = "py-1.9.0.tar.gz", hash = "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342"},
@@ -585,6 +1100,8 @@ pycairo = [
{file = "pycairo-1.19.2-cp37-cp37m-win_amd64.whl", hash = "sha256:927fbb4f62a60177d69e17d9049f98438a9fe5e6d6553754dca7d65ab73b1995"},
{file = "pycairo-1.19.2-cp38-cp38-win32.whl", hash = "sha256:5041b1c8bafc45e46b7847d86bef34ad7a94b03a3a855b7bd637a03588a66734"},
{file = "pycairo-1.19.2-cp38-cp38-win_amd64.whl", hash = "sha256:8dc94be70ef8b3df858ea21bb4664f2e67fc0e048bb03f4be25b26824e4883b0"},
+ {file = "pycairo-1.19.2-cp39-cp39-win32.whl", hash = "sha256:fea7217a36fab37c93e1ad0b13c1ea82af721e8aaf0c57e0ded8e3ddf9ff69a9"},
+ {file = "pycairo-1.19.2-cp39-cp39-win_amd64.whl", hash = "sha256:0216c5343ea58bfa12204d4baa79f8b46f6f8e4f7fd4937ef765e25e17b230ba"},
{file = "pycairo-1.19.2.tar.gz", hash = "sha256:2c143183280feb67f5beb4e543fd49990c28e7df427301ede04fc550d3562e84"},
]
pydub = [
@@ -607,6 +1124,14 @@ pytest = [
{file = "pytest-6.1.0-py3-none-any.whl", hash = "sha256:1cd09785c0a50f9af72220dd12aa78cfa49cbffc356c61eab009ca189e018a33"},
{file = "pytest-6.1.0.tar.gz", hash = "sha256:d010e24666435b39a4cf48740b039885642b6c273a3f77be3e7e03554d2806b7"},
]
+pytz = [
+ {file = "pytz-2020.1-py2.py3-none-any.whl", hash = "sha256:a494d53b6d39c3c6e44c3bec237336e14305e4f29bbf800b599253057fbb79ed"},
+ {file = "pytz-2020.1.tar.gz", hash = "sha256:c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048"},
+]
+recommonmark = [
+ {file = "recommonmark-0.6.0-py2.py3-none-any.whl", hash = "sha256:2ec4207a574289355d5b6ae4ae4abb29043346ca12cdd5f07d374dc5987d2852"},
+ {file = "recommonmark-0.6.0.tar.gz", hash = "sha256:29cd4faeb6c5268c633634f2d69aef9431e0f4d347f90659fd0aab20e541efeb"},
+]
regex = [
{file = "regex-2020.9.27-cp27-cp27m-win32.whl", hash = "sha256:d23a18037313714fb3bb5a94434d3151ee4300bae631894b1ac08111abeaa4a3"},
{file = "regex-2020.9.27-cp27-cp27m-win_amd64.whl", hash = "sha256:84e9407db1b2eb368b7ecc283121b5e592c9aaedbe8c78b1a2f1102eb2e21d19"},
@@ -630,6 +1155,10 @@ regex = [
{file = "regex-2020.9.27-cp38-cp38-win_amd64.whl", hash = "sha256:4318d56bccfe7d43e5addb272406ade7a2274da4b70eb15922a071c58ab0108c"},
{file = "regex-2020.9.27.tar.gz", hash = "sha256:a6f32aea4260dfe0e55dc9733ea162ea38f0ea86aa7d0f77b15beac5bf7b369d"},
]
+requests = [
+ {file = "requests-2.24.0-py2.py3-none-any.whl", hash = "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898"},
+ {file = "requests-2.24.0.tar.gz", hash = "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b"},
+]
rich = [
{file = "rich-7.1.0-py3-none-any.whl", hash = "sha256:555c4d730a63377d220cfded4a47ccf6e329ada1b5d6e4f71d3618a6f49acbb6"},
{file = "rich-7.1.0.tar.gz", hash = "sha256:ff701be541be32bcf46e821487c00bf4fa560aa814fc3cc9b3d514fd9b19a6f6"},
@@ -656,6 +1185,38 @@ six = [
{file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"},
{file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"},
]
+snowballstemmer = [
+ {file = "snowballstemmer-2.0.0-py2.py3-none-any.whl", hash = "sha256:209f257d7533fdb3cb73bdbd24f436239ca3b2fa67d56f6ff88e86be08cc5ef0"},
+ {file = "snowballstemmer-2.0.0.tar.gz", hash = "sha256:df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52"},
+]
+sphinx = [
+ {file = "Sphinx-3.2.1-py3-none-any.whl", hash = "sha256:ce6fd7ff5b215af39e2fcd44d4a321f6694b4530b6f2b2109b64d120773faea0"},
+ {file = "Sphinx-3.2.1.tar.gz", hash = "sha256:321d6d9b16fa381a5306e5a0b76cd48ffbc588e6340059a729c6fdd66087e0e8"},
+]
+sphinxcontrib-applehelp = [
+ {file = "sphinxcontrib-applehelp-1.0.2.tar.gz", hash = "sha256:a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58"},
+ {file = "sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl", hash = "sha256:806111e5e962be97c29ec4c1e7fe277bfd19e9652fb1a4392105b43e01af885a"},
+]
+sphinxcontrib-devhelp = [
+ {file = "sphinxcontrib-devhelp-1.0.2.tar.gz", hash = "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"},
+ {file = "sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl", hash = "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e"},
+]
+sphinxcontrib-htmlhelp = [
+ {file = "sphinxcontrib-htmlhelp-1.0.3.tar.gz", hash = "sha256:e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b"},
+ {file = "sphinxcontrib_htmlhelp-1.0.3-py2.py3-none-any.whl", hash = "sha256:3c0bc24a2c41e340ac37c85ced6dafc879ab485c095b1d65d2461ac2f7cca86f"},
+]
+sphinxcontrib-jsmath = [
+ {file = "sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"},
+ {file = "sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl", hash = "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178"},
+]
+sphinxcontrib-qthelp = [
+ {file = "sphinxcontrib-qthelp-1.0.3.tar.gz", hash = "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72"},
+ {file = "sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl", hash = "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6"},
+]
+sphinxcontrib-serializinghtml = [
+ {file = "sphinxcontrib-serializinghtml-1.1.4.tar.gz", hash = "sha256:eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc"},
+ {file = "sphinxcontrib_serializinghtml-1.1.4-py2.py3-none-any.whl", hash = "sha256:f242a81d423f59617a8e5cf16f5d4d74e28ee9a66f9e5b637a18082991db5a9a"},
+]
toml = [
{file = "toml-0.10.1-py2.py3-none-any.whl", hash = "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"},
{file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"},
@@ -692,6 +1253,13 @@ typing-extensions = [
{file = "typing_extensions-3.7.4.3-py3-none-any.whl", hash = "sha256:7cb407020f00f7bfc3cb3e7881628838e69d8f3fcab2f64742a5e76b2f841918"},
{file = "typing_extensions-3.7.4.3.tar.gz", hash = "sha256:99d4073b617d30288f569d3f13d2bd7548c3a7e4c8de87db09a9d29bb3a4a60c"},
]
+urllib3 = [
+ {file = "urllib3-1.25.10-py2.py3-none-any.whl", hash = "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461"},
+ {file = "urllib3-1.25.10.tar.gz", hash = "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a"},
+]
+watchdog = [
+ {file = "watchdog-0.10.3.tar.gz", hash = "sha256:4214e1379d128b0588021880ccaf40317ee156d4603ac388b9adcf29165e0c04"},
+]
wrapt = [
{file = "wrapt-1.12.1.tar.gz", hash = "sha256:b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7"},
]
diff --git a/pyproject.toml b/pyproject.toml
index 94b31536a..4691627d9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,10 +39,15 @@ pycairo = [
{ version = "^1.19", markers = "sys_platform == 'win32'", source="testpypi" },
]
dataclasses = {version = "^0.7", python = "~3.6"}
+grpcio = "*"
+grpcio-tools = "*"
+watchdog = "*"
[tool.poetry.dev-dependencies]
pytest = "^6.0"
pylint = "*"
+guzzle_sphinx_theme = "*"
+recommonmark = "*"
[tool.poetry.dev-dependencies.black]
version = "^20.8b1"
diff --git a/requirements.txt b/requirements.txt
index f4f0e7230..5a587531b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -8,6 +8,9 @@ pydub
pygments
pyreadline; sys_platform == 'win32'
rich>=4.2.1
+grpcio
+grpcio-tools
+watchdog
# for development only:
# pytest
diff --git a/tests/utils/GraphicalUnitTester.py b/tests/utils/GraphicalUnitTester.py
index ef8cb4e37..7f856ded1 100644
--- a/tests/utils/GraphicalUnitTester.py
+++ b/tests/utils/GraphicalUnitTester.py
@@ -77,6 +77,7 @@ class GraphicalUnitTester:
# By invoking this, the scene is rendered.
self.scene = scene_object()
+ self.scene.render()
def _load_data(self):
"""Load the np.array of the last frame of a pre-rendered scene. If not found, throw FileNotFoundError.