ktosiek
12/22/2021, 6:18 PMdreinon
12/25/2021, 12:39 PMdreinon
12/25/2021, 12:40 PMpip install supabase
ktosiek
12/25/2021, 1:09 PMdreinon
12/25/2021, 1:10 PMktosiek
12/25/2021, 2:38 PM.signIn({refreshToken: ...})
ktosiek
12/25/2021, 2:46 PMsupabase.auth._call_refresh_token(...)
should work for now ^_^dreinon
12/25/2021, 2:46 PMdreinon
12/25/2021, 2:47 PMktosiek
12/25/2021, 2:54 PMdreinon
12/25/2021, 2:55 PMleynier
12/25/2021, 3:11 PMsign_in(refresh_token=...)
works, which requires a gotrue-py update to be released soon. Meanwhile you can directly use the library from GitHub.ktosiek
12/25/2021, 3:29 PMktosiek
12/25/2021, 3:30 PMaUnicornDev
12/26/2021, 9:30 AMsupabase.table('TABLE_NAME').select('*').eq('COLUMN_1',VARIABLE).order('COLUMN_2').execute()
in python supabase client
.. But got an error
"QueryParams are immutable since 0.18.0. "
RuntimeError: QueryParams are immutable since 0.18.0. Use `q = q.set(key, value)` to create an updated copy.
ktosiek
12/26/2021, 10:59 AMpip install git+https://github.com/supabase-community/supabase-py@develop#egg=supabase
ktosiek
12/26/2021, 11:05 AM.order()
is still broken :-Cktosiek
12/26/2021, 11:10 AMaUnicornDev
12/26/2021, 3:06 PMArjun Dave
12/27/2021, 9:00 AMberu
12/27/2021, 11:12 AMsupabase.storage
J0
12/27/2021, 4:52 PMsupabase.storage
to perform bucket/file operations. Could you give more details on what operations you would like to perform?
I'm also currently writing a custom backend so that we can integrate with django-storages: https://github.com/jschneier/django-storages/issues/1099 so that you can just pip3 install django-storages
and use Supabase as a Custom Storage backend but that will take a few more days.Arjun Dave
12/28/2021, 3:57 AMArjun Dave
12/28/2021, 3:57 AMJ0
12/28/2021, 4:50 AMArjun Dave
12/28/2021, 8:55 AMJ0
12/28/2021, 4:30 PMpython
import os
from supabase import create_client, Client
url: str = os.environ.get("SUPABASE_URL")
key: str = os.environ.get("SUPABASE_KEY")
supabase: Client = create_client(url, key)
storage = supabase.storage()
From here you can then do storage.StorageFileAPI(<your_bucket_name)
and then perform your desire operationsJ0
12/28/2021, 4:30 PMpython
storage.StorageFileAPI(<your_bucket_name).download(<path>)
to download a file you have uploaded to supabase storageJ0
12/28/2021, 4:31 PMArjun Dave
12/29/2021, 2:51 PM