Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Title: Expose AsyncClient at package level for easier access
Description:
This PR makes the asynchronous DigitalOcean client more accessible by exposing
AsyncClientat the main package level, improving the developer experience for users who want to use async operations.Problem:
Previously, users had to import the async client using a longer import path:
Solution:
Now users can import the async client directly from the main package:
Changes Made:
1. Updated
src/pydo/aio/__init__.py:AsyncClient = Clientalias for the async client class"AsyncClient"to the__all__list for proper exposure2. Updated
src/pydo/_patch.py:AsyncClientfrom the aio module"AsyncClient"to the__all__list to expose it at package levelUsage Examples:
Before (still works):
After (new and improved):
Backward Compatibility:
pydo.aio.Clientimport still functionsTesting:
from pydo import AsyncClientworks correctlyFiles Changed:
src/pydo/aio/__init__.py- Added AsyncClient alias and exposuresrc/pydo/_patch.py- Imported and exposed AsyncClient at package levelImpact:
from pydo import Clientfor sync operationsThis makes async usage much more discoverable and user-friendly! 🚀