Skip to main content

database layer for my personal server.

Project description

square_database

📌 versioning: see CHANGELOG.md.

about

a database layer for my personal server. this service exposes database operations as a fastapi application, powered by pluggable orm models (by default from square_database_structure, but you can swap in your own).

goals

  • centralized database api
  • pluggable orm models
  • simple crud operations
  • stored procedure support
  • realtime via websockets

installation

pip install square_database[all]

usage

configuration

update the settings in config.ini and config.testing.ini to match your environment (database url, logging, etc).

models

this service requires orm models from a pluggable module. the default is square_database_structure, but you can provide your own module if needed.

running the service

python square_database/main.py

env

  • python>=3.12.0

feedback is appreciated. thank you!

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

square_database-3.3.2.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

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

square_database-3.3.2-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file square_database-3.3.2.tar.gz.

File metadata

  • Download URL: square_database-3.3.2.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for square_database-3.3.2.tar.gz
Algorithm Hash digest
SHA256 089d3fa5391439f2e2ca99c9e1ca80e28c104a848e62bee2018c0e253d3f4f06
MD5 882930794d76d42f6face0883ebd5fad
BLAKE2b-256 9d7e65ca887c414a7ca763d348f109979c02ba4f13fe3c0539d526ec7482c9d2

See more details on using hashes here.

File details

Details for the file square_database-3.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for square_database-3.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17033582bb792511787f69e3528da159be1cc8aa673127d8408777b4270a7973
MD5 a4a9536515f3766c1ff5367b47e6e3b6
BLAKE2b-256 01a23c97803c078bf8ca0b24fee0a452ebb85fd97ad82e05d2d98127aa8d8b1f

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