Skip to main content

FreelyBase Python SDK

Project description

FreelyBase Python SDK

Python SDK for FreelyBase, aligned with the Kotlin SDK.

Installation

pip install freelybase
# with optional extras
pip install "freelybase[realtime]"   # FBLiveQuery (WebSocket)
pip install "freelybase[async]"      # AsyncFreelyBase (httpx)
pip install "freelybase[crypto]"     # EncryptedFreelyBase
pip install "freelybase[all]"        # everything

Quick Start

from freelybase import FreelyBase, FBObject, FBQuery, FBUser, FBFile, FBGeoPoint, FBAI

# Initialize
FreelyBase.initialize(app_key="your_app_id", base_url="https://your-domain.com")

# Define a model
class Post(FBObject):
    table_name = "Post"
    title: str = ""
    view_count: int = 0
    active: bool = True

# Create
post = Post(title="Hello", active=True)
post.save()

# Query
results = FBQuery(Post).equal_to("active", True).order("-created_at").limit(20).find()

# User login
user = FBUser.login("user@example.com", "password123")

# File upload
fb_file = FBFile.upload("photo.jpg")
print(fb_file.url)

# AI chat
response = FBAI.chat("Hello!")
print(response.content)

Features

Class Description
FreelyBase Global client & HTTP
FBObject Data model base class
FBQuery Query builder with geo, time, cache
FBUser Auth: register, login, third-party
FBFile File upload & URL resolution
FBGeoPoint Geo coordinates & distance
FBLiveQuery Real-time WebSocket listener
FBAI AI chat (streaming & non-streaming)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freelybase-1.0.0.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freelybase-1.0.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file freelybase-1.0.0.tar.gz.

File metadata

  • Download URL: freelybase-1.0.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for freelybase-1.0.0.tar.gz
Algorithm Hash digest
SHA256 44eb5f9fc952844511bc8ce9e5af188841f73bda4154499f538cd31224b8fc27
MD5 2c462c8b8bd73d63c4fa02496fd349a5
BLAKE2b-256 ab6f4d195dc6534113da0b300dca64a91457e9f0454cb4557bedf8153d34e4a2

See more details on using hashes here.

File details

Details for the file freelybase-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: freelybase-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for freelybase-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6969b8831a5090e33114c52d98b0459a3961f3dddddd07e3dbed4f30a212a4b6
MD5 5e532115d409f1d9f8cdbc8a2399576a
BLAKE2b-256 628a89bec0c9903c77f3c3b6f77d17f0bb022cd3bbc5ccaeef56ed4b54148e0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page