AnonymousSpottedToad/securityPatternsRecovery / codebase /repos /python /autonomi-ai_nos /nos /cli /utils.py
| from asyncio import run | |
| from functools import wraps | |
| import typer | |
| class AsyncTyper(typer.Typer): | |
| def async_command(self, *args, **kwargs): | |
| def decorator(async_func): | |
| def sync_func(*_args, **_kwargs): | |
| return run(async_func(*_args, **_kwargs)) | |
| self.command(*args, **kwargs)(sync_func) | |
| return async_func | |
| return decorator | |
Xet Storage Details
- Size:
- 425 Bytes
- Xet hash:
- c6153ea2f9493add6ba26c7ab784c0556ab225d413c096e124a25581b34074db
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.