AllenNeuralDynamics / AllenNeuralDynamics/one-liner

Expose certain calls by a specifiable name

オープン
#27 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
3
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

Re: https://github.com/AllenNeuralDynamics/one-liner/pull/1#discussion_r2479545705

Currently, to call a remote function, we need to lookup the corresponding object instance and method name and then call the method. It would nice to abstract out the object and method name to a single call like this:

```python
server = RouterServer()

# assign a name (or look it up from a config)
server.register_call(obj_name="xyz_stage", method_name="get_positions", call_name="get_xyz_positions")
```

Then one or more clients can call with:

```python
client = RouterClient()
time, positions = client.call("get_xyz_positions")
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。