vaphes / pocketbase

PocketBase client SDK for python
https://pypi.org/project/pocketbase/
MIT License
332 stars 38 forks source link

AttributeError: 'PocketBase' object has no attribute 'collection'. #25

Closed Fewtap closed 1 year ago

Fewtap commented 1 year ago
import json
import openpyxl
from openpyxl import Workbook
import datetime
from pocketbase import PocketBase
from pocketbase.client import FileUpload
import requests

client = PocketBase("#ip to pocketbaseserver")
help = client.collection("departures").get_list()

I'm trying to do a simple fetch from my database but it doesn't appear that there are any methods defined as collection in the client. Am i doing something wrong?

help = client.collection("departures").get_list()
       ^^^^^^^^^^^^^^^^^

AttributeError: 'PocketBase' object has no attribute 'collection'. Did you mean: 'collections'?