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.0.tar.gz (23.3 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.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for square_database-3.3.0.tar.gz
Algorithm Hash digest
SHA256 2e83ec789fdcfd8169e5f9a0c49ee1d4b23af36d0b4875293e69a247a82b99b3
MD5 036f5d14acf605a99b3ed64b7e3f4b1c
BLAKE2b-256 06acb244fe712a9f0825c5d3bdc966fb710c0f03ac631609854bd4a708b10168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for square_database-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8161f0183a6148a1b698def248177679bef6ba99002971826ff52ae244b18d09
MD5 5bb0908e42bb529e1b10b7f0966f1c83
BLAKE2b-256 52286aff8c2f3cc3d69cd0a3796d5bf44ded9aec1e1a43d243ec9498e722f6fa

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