mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-04 17:02:53 +01:00
fff80cd4e7
- fix(nexus): Preparing configs to be published - feat(nexus): Various fixes for opening left sources - fix(nexus): Fine-tune versions 1 internal commit(s) GitOrigin-RevId: 6c834cd3f4f5f18109a159a73503700dac63b0bb
17 lines
397 B
Python
17 lines
397 B
Python
import fire
|
|
from aiokit.utils import sync_fu
|
|
from nexus.meta_api.aioclient import MetaApiGrpcClient
|
|
|
|
|
|
async def search(url, schema, query):
|
|
client = MetaApiGrpcClient(url)
|
|
try:
|
|
await client.start()
|
|
print(await client.search(schemas=(schema,), query=query, language='ru'))
|
|
finally:
|
|
await client.stop()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
fire.Fire(sync_fu(search))
|