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

# 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)

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

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.1.tar.gz (24.8 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.1-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: freelybase-1.0.1.tar.gz
  • Upload date:
  • Size: 24.8 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.1.tar.gz
Algorithm Hash digest
SHA256 f8c1bea56b2cc3de6009c6057176911616c5a33dee05ef063bd1d22b0da4649f
MD5 80644550bf281bfa3ba7efec1881bc7e
BLAKE2b-256 25f14a38d4ed3456490bc622cdb0cc83ce46afd84640be10ffb8b730fd41cf9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freelybase-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fd55e612ed2dc3278090ff63939d767dd74ecd233030d7cf460bd6c3122b4b
MD5 1239e1f332e6604ab3b8e04c73f8733e
BLAKE2b-256 b99074640dff25cd52104f258fa7a2e1eb95cc66dbf17a89c95f43732f99e80a

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