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

Sync support #1

Merged
merged 9 commits into from
Apr 11, 2022
Merged

Sync support #1

merged 9 commits into from
Apr 11, 2022

Conversation

anand2312
Copy link
Contributor

This PR adds:

  • sync/async support with unasync and httpx, as implemented in postgrest-py
  • File API actions can now be used on Bucket objects as well
    Example:
from storage3 import create_client

client = create_client(url, headers, is_async=False)
client.from_("test").list()  # lists files in `test` bucket

bucket = client.get_bucket("test")
# an instance of SyncBucket/AsyncBucket
bucket.list()  # works just like client.from_().list()

@anand2312
Copy link
Contributor Author

anand2312 commented Apr 4, 2022

@J0 @leynier could you give this a review when you can? 😄

@anand2312 anand2312 merged commit 75c9c43 into supabase:main Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants