Skip to main content

PieData is a database based on separate files.

Project description

PieData is an ORM-wrapped file database that supports SQL-like commands via WebSocket server. Each table is stored as a folder, each record as an XML file. The ORM layer allows you to work with Python models, and the server handles client commands via WebSocket.

Usage example

models.py

from PieData import IntegerField, StringField, DatetimeField, FloatField, PieModel

class User(PieModel):
    name = StringField(max_length=255)
    age = IntegerField(min_value=0, max_value=100)

main.py

from PieData import PieData
from models import User

db = PieData()

db.create_table(User)

user = User(name="Alice", age=30)
db.insert(user)

users = db.select(User, as_model=True)

db.update(User, {"age": 31}, "name = 'Alice'")

db.delete(User, "age = 31")

Async usage

async def main():
    async with PieData() as db:
        await db.create_table_async(User)
        await db.insert_async(User(name="Bob", age=25))
        users = await db.select_async(User, as_model=True)

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

piedata-0.0.9.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

piedata-0.0.9-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file piedata-0.0.9.tar.gz.

File metadata

  • Download URL: piedata-0.0.9.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for piedata-0.0.9.tar.gz
Algorithm Hash digest
SHA256 40c027e61cd0b96cc7c93ecdbc624a4ecfde88322c3b3e40d9769b68e0c866db
MD5 2c0622c2c6b08dc9daff618f0b49a63c
BLAKE2b-256 da757e3798dafa67af8607f3005fc5c7f17ccb712f19c0110efddb0db46ffdbc

See more details on using hashes here.

File details

Details for the file piedata-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: piedata-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for piedata-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9fe06279f05ae77cd032d3f8d627fd9de6fecea6e19a8d3540e1845aa6441f0e
MD5 1000645ac4b4442651d07c968ef9aa2f
BLAKE2b-256 b1a8312ad0f7b228a4eda42e909b5f7a76f73aaaf2bed077d76607f52dee77e3

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