Skip to content

Commit

Permalink
BRAYNS-655 Add engine endpoints v2 (#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien4193 authored Sep 9, 2024
1 parent b686c7e commit 4bc4de7
Show file tree
Hide file tree
Showing 133 changed files with 7,845 additions and 1,651 deletions.
3 changes: 3 additions & 0 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ Note: integration testing can be disable using the pytest --without-integration

```json
{
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"python.analysis.typeCheckingMode": "basic",
"python.testing.pytestArgs": [
"tests"
Expand Down
167 changes: 167 additions & 0 deletions python/brayns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,61 @@
This package provides an API to interact with Brayns service.
"""

from .api.core.camera import (
Camera,
CameraSettings,
DepthOfField,
OrthographicCamera,
OrthographicSettings,
PanoramicCamera,
PanoramicSettings,
PerspectiveCamera,
PerspectiveSettings,
Stereo,
StereoMode,
create_orthographic_camera,
create_panoramic_camera,
create_perspective_camera,
get_camera,
get_orthographic_camera,
get_panoramic_camera,
get_perspective_camera,
update_camera,
update_orthographic_camera,
update_panoramic_camera,
update_perspective_camera,
)
from .api.core.framebuffer import (
Accumulation,
Framebuffer,
FramebufferChannel,
FramebufferFormat,
FramebufferSettings,
Size2,
create_framebuffer,
get_framebuffer,
update_framebuffer,
)
from .api.core.image import (
JpegChannel,
PngChannel,
read_framebuffer,
read_framebuffer_as_exr,
read_framebuffer_as_jpeg,
read_framebuffer_as_png,
)
from .api.core.image_operation import (
ImageOperation,
ToneMapper,
ToneMapperSettings,
create_tone_mapper,
get_tone_mapper,
update_tone_mapper,
)
from .api.core.objects import (
EmptyObject,
Object,
ObjectInfo,
clear_objects,
create_empty_object,
get_all_objects,
Expand All @@ -39,6 +92,7 @@
TaskInfo,
TaskOperation,
Version,
cancel_all_tasks,
cancel_task,
get_endpoint,
get_methods,
Expand All @@ -48,6 +102,27 @@
get_version,
stop_service,
)
from .api.core.transfer_function import (
LinearTransferFunction,
LinearTransferFunctionSettings,
TransferFunction,
create_linear_transfer_function,
get_linear_transfer_function,
update_linear_transfer_function,
)
from .api.core.volume import (
RegularVolume,
RegularVolumeSettings,
RegularVolumeUpdate,
Size3,
Volume,
VolumeFilter,
VolumeType,
VoxelType,
create_regular_volume,
get_regular_volume,
update_regular_volume,
)
from .network.connection import Connection, FutureResponse, Request, Response, connect
from .network.json_rpc import (
JsonRpcError,
Expand All @@ -58,45 +133,137 @@
JsonRpcSuccessResponse,
)
from .network.websocket import ServiceUnavailable, WebSocketError
from .utils.box import Box1, Box2, Box3
from .utils.color import Color3, Color4
from .utils.logger import create_logger
from .utils.quaternion import Quaternion
from .utils.rotation import Rotation, axis_angle, euler, get_rotation_between
from .utils.vector import Vector2, Vector3, Vector4
from .utils.view import View, X, Y, Z
from .version import VERSION

__version__ = VERSION
"""Version tag of brayns Python package (major.minor.patch)."""

__all__ = [
"Accumulation",
"axis_angle",
"Box1",
"Box2",
"Box3",
"Camera",
"CameraSettings",
"cancel_all_tasks",
"cancel_task",
"clear_objects",
"Color3",
"Color4",
"connect",
"Connection",
"create_empty_object",
"create_framebuffer",
"create_linear_transfer_function",
"create_logger",
"create_orthographic_camera",
"create_panoramic_camera",
"create_perspective_camera",
"create_regular_volume",
"create_tone_mapper",
"DepthOfField",
"EmptyObject",
"Endpoint",
"euler",
"Framebuffer",
"FramebufferChannel",
"FramebufferFormat",
"FramebufferSettings",
"FutureResponse",
"get_all_objects",
"get_camera",
"get_endpoint",
"get_framebuffer",
"get_framebuffer",
"get_linear_transfer_function",
"get_linear_transfer_function",
"get_methods",
"get_object",
"get_orthographic_camera",
"get_orthographic_camera",
"get_panoramic_camera",
"get_panoramic_camera",
"get_perspective_camera",
"get_perspective_camera",
"get_regular_volume",
"get_rotation_between",
"get_task_result",
"get_task",
"get_tasks",
"get_tone_mapper",
"get_tone_mapper",
"get_version",
"ImageOperation",
"JpegChannel",
"JsonRpcError",
"JsonRpcErrorResponse",
"JsonRpcId",
"JsonRpcRequest",
"JsonRpcResponse",
"JsonRpcSuccessResponse",
"LinearTransferFunction",
"LinearTransferFunctionSettings",
"Object",
"ObjectInfo",
"OrthographicCamera",
"OrthographicSettings",
"PanoramicCamera",
"PanoramicSettings",
"PerspectiveCamera",
"PerspectiveSettings",
"PngChannel",
"Quaternion",
"read_framebuffer_as_exr",
"read_framebuffer_as_jpeg",
"read_framebuffer_as_png",
"read_framebuffer",
"RegularVolume",
"RegularVolumeSettings",
"RegularVolumeUpdate",
"remove_objects",
"Request",
"Response",
"Rotation",
"ServiceUnavailable",
"Size2",
"Size3",
"Stereo",
"StereoMode",
"stop_service",
"Task",
"TaskInfo",
"TaskOperation",
"ToneMapper",
"ToneMapperSettings",
"TransferFunction",
"update_camera",
"update_framebuffer",
"update_linear_transfer_function",
"update_object",
"update_orthographic_camera",
"update_panoramic_camera",
"update_perspective_camera",
"update_regular_volume",
"update_tone_mapper",
"Vector2",
"Vector3",
"Vector4",
"Version",
"View",
"Volume",
"VolumeFilter",
"VolumeType",
"VoxelType",
"WebSocketError",
"X",
"Y",
"Z",
]
Loading

0 comments on commit 4bc4de7

Please sign in to comment.