Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about async #837

Closed
Paillat-dev opened this issue Jun 19, 2024 · 1 comment
Closed

Questions about async #837

Paillat-dev opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Paillat-dev
Copy link

Currently, as far as I could understand by looking at issues, the async client is used with

from supabase._async.client import AsyncClient as SupabaseClient, create_client

However, in python, we are not supposed to access private members of a module (starting with _ makes it private). Thus my question is whether there is another official way of importing it, and if not if it would be possible to change this.

@Paillat-dev Paillat-dev added the enhancement New feature or request label Jun 19, 2024
@Paillat-dev
Copy link
Author

Ok I read a bit more some prs here, and understood how it works (using acreate_client). However, how am I supposed to import AsyncClient for type hinting?

@Paillat-dev Paillat-dev changed the title Non private async client Questions about async Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant