From 354ac6d82d13ea0ee8de17525b386fef747200f3 Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Thu, 14 Aug 2025 09:38:19 +0300 Subject: [PATCH] update README --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b03e12..8387633 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,14 @@ client = VikingClient(user_hash="YOUR_USER_HASH") # Replace with your actual us # Asynchronous client async_client = AsyncVikingClient(user_hash="YOUR_USER_HASH") # Replace with your actual user hash + +# also you can use context manager both synchronous and asynchronous + +# with VikingClient(user_hash="YOUR_USER_HASH") as client: + # Your code here + +# async with AsyncVikingClient(user_hash="YOUR_USER_HASH") as async_client: + # Your asynchronous code here ``` ### Uploading a Local File (Synchronous) @@ -217,7 +225,6 @@ async def get_file_information(): file = await client.get_file(file_hash) - asyncio.run(get_file_information()) ```