sassoftware / sassoftware/python-swat

Await for CAS actions execution

Open
#126 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
159
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Hi, I am developing a backend API which extract data from CAS and returns it to the caller. Since from the backend point of view every CAS action called is an I/O blocking statement, I would like very much to be able to await for them using asyncio.

For instance something like:

async def calculate_data(...):
  await cas.dataStep.runCode(code="...")
  result = await cas.table.fetch(.....)
  return result

Is that something achievable?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Python SWAT entry points that execute CAS actions and fetch table results, then review how blocking calls are exposed to callers. The issue does not name files or tests; done would require a decided design and documented asyncio-compatible execution for both examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.