From 817db37dad340414eb4d44243655dc6f28f5d40a Mon Sep 17 00:00:00 2001 From: Codemation <> Date: Sun, 1 Mar 2026 20:43:04 +0100 Subject: [PATCH 1/4] Added docstrings from origin functions to proxy side functions --- easyrpc/proxy.py | 4 ++-- easyrpc/register.py | 3 ++- easyrpc/server.py | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/easyrpc/proxy.py b/easyrpc/proxy.py index 33df7a3..9e80fc2 100644 --- a/easyrpc/proxy.py +++ b/easyrpc/proxy.py @@ -155,7 +155,7 @@ async def create(cls, def run_cron(self, action, interval): async def cron(): - self.log.warning(f"creating cron or {action.__name__} - interval {interval}") + self.log.debug(f"creating cron or {action.__name__} - interval {interval}") tasks = [] while True: try: @@ -466,7 +466,7 @@ async def ws_client(): ws_sender = self.get_ws_sender(ws) ws_receiver = self.get_ws_receiver(ws) - self.log.warning( + self.log.debug( f"started connection to server {self.origin_host}:{self.origin_port}" ) async def keep_alive(): diff --git a/easyrpc/register.py b/easyrpc/register.py index b25c1d0..a272e8f 100644 --- a/easyrpc/register.py +++ b/easyrpc/register.py @@ -46,8 +46,8 @@ async def __proxy__(*args, **kwargs): return await result return result - #__proxy__.__name__ = f"{config['name']}_proxy" __proxy__.__name__ = f"{config['name']}" + __proxy__.__doc__ = config.get('doc', '') nf = create_function( create_signature_from_dict( config['sig'] @@ -126,6 +126,7 @@ def register(f, namespace): obj.namespaces[namespace][f.__name__]['config'] = { 'sig': get_signature_as_dict(f), 'name': f.__name__, + 'doc': f.__doc__, 'is_async': iscoroutinefunction(f) } obj.namespaces[namespace][f.__name__]['method'] = f diff --git a/easyrpc/server.py b/easyrpc/server.py index 4b7c021..6c46d20 100644 --- a/easyrpc/server.py +++ b/easyrpc/server.py @@ -23,11 +23,11 @@ async def connect(self, websocket: WebSocket): return await websocket.accept() def store_connect(self, endpoint_id, websocket: WebSocket): - self.log.warning(f"created websocket connection with endpoint {endpoint_id}") + self.log.debug(f"created websocket connection with endpoint {endpoint_id}") self.active_connections[endpoint_id] = websocket def disconnect(self, endpoint_id: str): - self.log.warning(f"deleted websocket connection with endpoint {endpoint_id}") + self.log.debug(f"deleted websocket connection with endpoint {endpoint_id}") del self.active_connections[endpoint_id] async def broadcast(self, message: str): for connection in self.active_connections: @@ -422,7 +422,7 @@ async def ws_receiver(): await finished.get() # child connection closed - self.log.warning(f"client websocket connection with id {decoded_id} finished") + self.log.debug(f"client websocket connection with id {decoded_id} finished") # check if child is server or proxy if setup['type'] == 'SERVER': From 33e7e3fcffff173bc2de05a4239f7a72f5db36d5 Mon Sep 17 00:00:00 2001 From: Codemation <> Date: Sun, 1 Mar 2026 20:46:57 +0100 Subject: [PATCH 2/4] Updated min version of tests to p38 --- .github/workflows/main.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c3473a3..6318d4f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,14 +1,14 @@ name: Test EasyRpc Core Functionality on: ['pull_request'] jobs: - test_easyrpc_core_37: + test_easyrpc_core_38: # Containers must run in Linux based operating systems runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in #container: joshjamison/python38:latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -25,15 +25,15 @@ jobs: - name: Test EasyRpc Core Functionality run: | pytest tests/test_core.py - test_easyrpc_cluster_1_37: - needs: test_easyrpc_core_37 + test_easyrpc_cluster_1_38: + needs: test_easyrpc_core_38 # Containers must run in Linux based operating systems runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in #container: joshjamison/python38:latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -50,15 +50,15 @@ jobs: - name: Test EasyRpc Cluster Functionality - 1 run: | pytest tests/test_clustering_1.py - test_easyrpc_cluster_2_37: - needs: test_easyrpc_cluster_1_37 + test_easyrpc_cluster_2_38: + needs: test_easyrpc_cluster_1_38 # Containers must run in Linux based operating systems runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in #container: joshjamison/python38:latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -76,14 +76,14 @@ jobs: run: | pytest tests/test_clustering_2.py test_easyrpc_cluster_3_37: - needs: test_easyrpc_cluster_2_37 + needs: test_easyrpc_cluster_2_38 # Containers must run in Linux based operating systems runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in #container: joshjamison/python38:latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] steps: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -101,7 +101,7 @@ jobs: run: | pytest tests/test_clustering_3.py test_easyrpc_core_38: - needs: test_easyrpc_cluster_3_37 + needs: test_easyrpc_cluster_3_38 # Containers must run in Linux based operating systems runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in From bdf0f9e2225f933970a08d86dd3615bdeb37ae7c Mon Sep 17 00:00:00 2001 From: Codemation <> Date: Sun, 1 Mar 2026 20:50:43 +0100 Subject: [PATCH 3/4] Updated min version of tests to p38 --- .github/workflows/main.yaml | 100 ------------------------------------ 1 file changed, 100 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6318d4f..324961f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -75,106 +75,6 @@ jobs: - name: Test EasyRpc Cluster Functionality - 2 run: | pytest tests/test_clustering_2.py - test_easyrpc_cluster_3_37: - needs: test_easyrpc_cluster_2_38 - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Cluster Functionality - 3 - run: | - pytest tests/test_clustering_3.py - test_easyrpc_core_38: - needs: test_easyrpc_cluster_3_38 - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Core Functionality - run: | - pytest tests/test_core.py - test_easyrpc_cluster_1_38: - needs: test_easyrpc_core_38 - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Cluster Functionality - 1 - run: | - pytest tests/test_clustering_1.py - test_easyrpc_cluster_2_38: - needs: test_easyrpc_cluster_1_38 - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Cluster Functionality - 2 - run: | - pytest tests/test_clustering_2.py test_easyrpc_cluster_3_38: needs: test_easyrpc_cluster_2_38 # Containers must run in Linux based operating systems From 4d69a4826528d84c8042c65f852e5a60f705bc7b Mon Sep 17 00:00:00 2001 From: Codemation <> Date: Sun, 1 Mar 2026 20:53:38 +0100 Subject: [PATCH 4/4] removed tests from package workflow --- .github/workflows/package.yaml | 100 --------------------------------- 1 file changed, 100 deletions(-) diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 705344d..0a0fbc1 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -4,108 +4,8 @@ on: tags: - "*" jobs: - test_easyrpc_core: - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Core Functionality - run: | - pytest tests/test_core.py - test_easyrpc_cluster_1: - # Containers must run in Linux based operating systems - needs: test_easyrpc_core - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Cluster Functionality - 1 - run: | - pytest tests/test_clustering_1.py - test_easyrpc_cluster_2: - needs: test_easyrpc_cluster_1 - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Cluster Functionality - 2 - run: | - pytest tests/test_clustering_2.py - test_easyrpc_cluster_3: - needs: test_easyrpc_cluster_2 - # Containers must run in Linux based operating systems - runs-on: ubuntu-latest - # Docker Hub image that `container-job` executes in - #container: joshjamison/python38:latest - strategy: - matrix: - python-version: [3.8] - steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Downloads a copy of the code in your repository before running CI tests - - name: Check out repository code - uses: actions/checkout@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest requests pytest-asyncio - - name: Test EasyRpc Cluster Functionality - 3 - run: | - pytest tests/test_clustering_3.py package: name: Package easyrpc for PyPI - needs: test_easyrpc_cluster_3 runs-on: ubuntu-latest steps: # Downloads a copy of the code in your repository before running CI tests