https://supabase.com/ logo
Join Discord
Powered by
# python
  • d

    dreinon

    11/19/2021, 1:59 AM
    Yeah, good idea!
  • j

    J0

    11/19/2021, 3:53 AM
    👍
  • d

    dreinon

    11/19/2021, 9:01 AM
    I have requested codecov and codacy
  • p

    Phil

    11/28/2021, 11:18 PM
    Has anybody tried the new StorageAPI feature in Python yet?
  • a

    anothercoder

    11/29/2021, 1:48 AM
    Did a little simple api calls using service key, works so far:
    Copy code
    storage = supabase.storage()
    file_api = storage.StorageFileAPI(bucketname)
  • a

    anand

    11/29/2021, 4:28 AM
    What's the new feature?
  • p

    Phil

    11/29/2021, 7:32 AM
    Yeah I’ve already tried that… @anothercoder but the MIME Type of the files is always wrong, although i’ve set the correct on in the ‘contentType’: ‘image/jpeg’ dict
  • a

    anothercoder

    11/29/2021, 7:37 AM
    ic, I only did listing of buckets and folders using Python and service key at my server side. For upload and download objects, I was using web client js.
  • p

    Phil

    11/29/2021, 7:39 AM
    I've opend an Issue on the Github Repo but no answer so far https://github.com/supabase-community/supabase-py/issues/78
  • a

    anothercoder

    11/29/2021, 7:41 AM
    Just wonder if u are using the latest python sdk: pip install supabase https://github.com/supabase-community/supabase-py
  • p

    Phil

    11/29/2021, 7:44 AM
    I'll try to reconfigure my Python-Environment
  • f

    fuzzybearz

    12/06/2021, 2:30 AM
    @User hey anand, just wondering if you have any upcoming updates to your python fastapi x supabase example repo https://github.com/anand2312/supa-fastapi. I'm using supabase with python fastapi now and wanted to get my structure right
  • a

    anand

    12/06/2021, 4:29 AM
    Heyo! I do have some stuff planned but I just got a little busy :( I'd first need to fix some issues in the other supabase libs (realtime-py, postgrest-py) before I integrate them all together
  • i

    isaiah

    12/06/2021, 6:15 AM
    say, is there a known bug with querying related tables?
    const { data, error } = await supabase.from('driver').select('name, car (model)')
    in Javascript returns the joined data I expect, while
    data = supabase.table('driver').select("name, car (model)").execute()
    in python returns
    {'data': {'message': 'Could not find a relationship between driver and car  in the schema cache', 'hint': 'If a new foreign key between these entities was created in the database, try reloading the schema cache.'}, 'status_code': 400}
  • a

    anand

    12/06/2021, 7:11 AM
    i think it doesn't like one of the spaces you have
  • a

    anand

    12/06/2021, 7:11 AM
    car (model)"
    somewhere here
  • a

    anand

    12/06/2021, 7:11 AM
    i say this seeing there's an extra space after the word "car" in the error, which means it's taking the space as well as the table name
  • a

    anand

    12/06/2021, 7:12 AM
    @User
  • i

    isaiah

    12/06/2021, 7:27 AM
    ah ha, that was exactly it. thanks!
  • u

    unsuitable001

    12/09/2021, 2:07 PM
    Hey, can you tell me how to use
    or
    filter in supabase-py's database? Like, I want to do something like : select * from some_table where id = some_var && (a_id = other_var || xyz contains ["abc"])
  • a

    anothercoder

    12/09/2021, 4:11 PM
    Will postgrest-py be supporting "or" filter soon similar to postgrest-js?
  • a

    anand

    12/09/2021, 6:23 PM
    It is on the todo list on the repo I believe, but it's not yet implemented (this answers your question as well @User , it's currently not supported yet)
    s
    • 2
    • 16
  • a

    anand

    12/09/2021, 6:25 PM
    Although, I have a fork of postgrest-py where I have actually implemented or/and filters, but in a completely different form of querying compared to what we have in supabase-js, because I quite hate how postgrest-js implemented the or/and filtering :p I do hope to get this implemented in postgrest-py sometime, but I've been a little busy lately
  • s

    Steve

    12/13/2021, 6:11 PM
    pgrest
  • p

    pedrodiaz

    12/14/2021, 4:04 PM
    What's the valid audience for supabase tokens?
  • p

    pedrodiaz

    12/14/2021, 4:05 PM
    done, thanks
  • j

    J0

    12/17/2021, 4:50 PM
    PSA: We will be renaming
    realtime-py
    to
    realtime
    in about 20 minutes. The old
    realtime-py
    will still link to
    realtime
    but do take note Please take note and adjust accordingly if you are using the package. After 20 minutes, please do
    pip install realtime
    to install instead! We will announce this on Twitter as well
  • p

    pedrodiaz

    12/17/2021, 6:24 PM
    are you also updating the supabase package too right?
  • j

    J0

    12/18/2021, 2:21 AM
    yeah! Can look forward to a new release soon 🙂
  • k

    ktosiek

    12/21/2021, 9:00 AM
    wow, nice package name!
1...8910...19Latest