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.4.0.tar.gz (7.6 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.4.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: square_database-3.4.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for square_database-3.4.0.tar.gz
Algorithm Hash digest
SHA256 c915afb90909b1dd3e88169228018b43dc606623dd0cf17902f0eb9a389292e9
MD5 26a917126ffb4ecf129017725ed68a69
BLAKE2b-256 4c862c3491662f444b1fc8408ac8e093bd3cfc1e9c2ca393a024e379660d3749

See more details on using hashes here.

File details

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

File metadata

  • Download URL: square_database-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for square_database-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d64bebf91b7a903f2d4be2445f0c9ea96dca4e5a925735f1be1a932040da618
MD5 08bdd134ca5384f355be826e34670383
BLAKE2b-256 7691a649ae280b29d1c49904e39ecc82de0462b4aa3d2e70856d18f0beeba211

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