### Installing `synclane` Library - Bash Source: https://github.com/westandskif/synclane/blob/main/docs/README.md This command installs the `synclane` Python package using pip. It is the primary method for adding `synclane` to a Python environment, with `pydantic` being its only direct dependency. ```bash pip install synclane ``` -------------------------------- ### Using Auto-Generated `synclane` TypeScript Client - TypeScript Source: https://github.com/westandskif/synclane/blob/main/docs/README.md This snippet illustrates the usage of the automatically generated TypeScript client for `synclane`. It shows how to import a procedure call function (`callGetUsers`) and then invoke it, demonstrating how to interact with the backend RPC API from the frontend. ```typescript import { callGetUsers } from "./src/out"; expect(callGetUsers(userParams).$promise).resolves.toEqual(listOfUserDetails); ``` -------------------------------- ### Defining `synclane` API Procedures with Pydantic - Python Source: https://github.com/westandskif/synclane/blob/main/docs/README.md This snippet demonstrates how to define an API procedure in `synclane` using Pydantic for input validation. It defines `UserParams` as an input model and `GetUsers` as an `AbstractProcedure` that processes these parameters, showcasing the backend API definition structure. ```python class UserParams(pydantic.BaseModel): uid: str class GetUsers(AbstractProcedure): def call(self, in_: UserParams, context) -> List[UserDetails]: ... ``` -------------------------------- ### Extending Base Template and Analytics Block in Jinja2 Source: https://github.com/westandskif/synclane/blob/main/docs/overrides/main.html This snippet shows how to extend a base HTML template ('base.html') and override the 'analytics' block. The `{{ super() }}` call ensures that any content from the parent template's 'analytics' block is preserved and included. ```Jinja2 {% extends "base.html" %} {% block analytics %} {{ super() }} {% endblock %} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.