Skip to content

gava-connect-plus 0.2.0

Choose a tag to compare

@IamMuuo IamMuuo released this 25 Jun 22:06
0b56e27

gava-connect-plus 0.2.0

Async Lifecycle Improvements

This release improves async resource management and modernizes SDK usage patterns.

Added

  • Async context manager support for GavaConnect

    • __aenter__ / __aexit__ implemented
    • Enables async with GavaConnect(...)
    • Automatic cleanup of underlying httpx.AsyncClient

Documentation

  • Updated README to use async with patterns
  • Removed legacy synchronous context examples
  • Clarified async/await usage across SDK methods

Improvements

  • Safer client lifecycle handling
  • Cleaner async-first developer experience
  • Better alignment between implementation and documentation

Migration

Before:

gava = GavaConnect(...)
try:
    ...
finally:
    await gava.aclose()

After:

async with GavaConnect(...) as gava:
    ...

Notes

  • Non-breaking change
  • Recommended upgrade for all async users
  • No changes to public API surface beyond lifecycle handling