pull/933/head
abc 1 year ago
parent 07063b0fd8
commit 66e7660494

@ -74,7 +74,7 @@ def print_providers():
] ]
providers = get_providers() providers = get_providers()
#responses = asyncio.run(test_async_list(providers)) responses = asyncio.run(test_async_list(providers))
for is_working in (True, False): for is_working in (True, False):
for idx, _provider in enumerate(providers): for idx, _provider in enumerate(providers):
@ -94,10 +94,10 @@ def print_providers():
can_async = "✔️" if issubclass(_provider, AsyncProvider) else "" can_async = "✔️" if issubclass(_provider, AsyncProvider) else ""
if _provider.working: if _provider.working:
status = '![Active](https://img.shields.io/badge/Active-brightgreen)' status = '![Active](https://img.shields.io/badge/Active-brightgreen)'
# if responses[idx]: if responses[idx]:
# status = '![Active](https://img.shields.io/badge/Active-brightgreen)' status = '![Active](https://img.shields.io/badge/Active-brightgreen)'
# else: else:
# status = '![Unknown](https://img.shields.io/badge/Unknown-grey)' status = '![Unknown](https://img.shields.io/badge/Unknown-grey)'
else: else:
status = '![Inactive](https://img.shields.io/badge/Inactive-red)' status = '![Inactive](https://img.shields.io/badge/Inactive-red)'
auth = "✔️" if _provider.needs_auth else "" auth = "✔️" if _provider.needs_auth else ""
@ -151,8 +151,8 @@ def get_models():
if __name__ == "__main__": if __name__ == "__main__":
# print_imports() print_imports()
# print_async() print_async()
print_providers() print_providers()
# print("\n", "-" * 50, "\n") print("\n", "-" * 50, "\n")
# print_models() print_models()
Loading…
Cancel
Save