Skip to content

Python SDK

Install the Python client:

Terminal window
pip install pocketbase

Example Usage

from pocketbase import PocketBase
pb = PocketBase('https://<your-subdomain>.pocket-kit.naftalmatoya.tech')
# Authenticate as regular user or superadmin
auth_data = pb.collection('users').auth_with_password('user@example.com', 'password123')
# Query records
posts = pb.collection('posts').get_full_list(
sort='-created',
filter='active = true'
)
for post in posts:
print(post.title, post.content)