jonathanslenders/asyncio-redis: Redis client for Python asyncio (PEP 3156) briancoyner/AsyncWorkflow: Techniques for building "async workflows" using NSOperation and NSOperationQueue. hibiken/asynq: Simple, rel
Logger import set_logger_config @@ -396,43 +395,3 @@ async def test_info_random_route(self, redis_client: BaseRedisClient): info = await redis_client.info(route=RandomNode()) assert type(info) == str assert "# Server" in info @pytest.mark.asyncio class TestFFICoreCommands: async ...
from lightrag import LightRAG from lightrag.llm import gpt_4o_mini_complete from lightrag.llm.openai import gpt_4o_mini_complete ### # Uncomment the below two lines if running in a jupyter notebook to handle the async nature of rag.insert() # import nest_asyncio4 changes:...
Remove implicit creation of event loop from asyncio.get_event_loop as deprecated from Python 3.12. Linked PRs gh-126354
# publish.py import asyncio from asyncapi import build_api api = build_api('api-spec.yaml') channel_id = 'user/update' message = api.payload(channel_id, id='fake-user', name='Fake User', age=33) async def publish() -> None: await api.connect() await api.publish(channel_id, me...
API to redis import asyncio from idataapi_transform import ProcessFactory, GetterConfig, WriterConfig async def example(): api_config = GetterConfig.RAPIConfig("http://xxx") getter = ProcessFactory.create_getter(api_config) redis_config = WriterConfig.WRedisConfig("key_a") ...
formatted_answer) asyncio.run(main()) Choosing Model By default, it uses OpenAI models with gpt-4o-2024-08-06 for both the re-ranking and summary step, the summary_llm setting, and for the answering step, the llm setting. You can adjust this easily: from paperqa import Settings, ask ...
Simple redis hash example importasynciofromdataclassesimportdataclassfromdbdaoraimport(DictFallbackDataSource,DictMemoryDataSource,HashRepository, )@dataclassclassPerson:id:strname:strage:intdefmake_person(name:str,age:int)->Person:returnPerson(name.replace(' ','_').lower(),name,age)classPersonReposit...
Tornado is fully integrated with native pythonasynciolibrary and provide a great framework for developing an HTTP server. Extensions to WPS TIMEOUT extension Specify the timeout for a process: if the process takes more than TIMEOUT seconds to run, the worker is then killed, and an error status...
In convertToComponentName of DreamService.java, there is a possible way to launch arbitrary protected activities due to intent redirection. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitation. UmVfX1BvaW50/CVE-2024-...