Skip to main content

toolsql makes it easy to read and write from sql databases

Project description

toolsql

toolsql makes it simple to work with db schemas and queries

the goal is to create an opinionated lightweight wrapper around SqlAlchemy that lowers boilerlpace and cognitive overhead without resorting to magic

Features

  • define schemas, queries, and migrations using JSON
  • compatible with postgresql and sqlite
  • uses sqlalchemy under the hood

Contents

  1. Installation
  2. Usage
  3. Reference

Installation

Usage

Log In To Database

Inspect Current Database Schema

Define CLI

Insert, Select, Update, and Delete Rows

Reference

  1. Module Reference
  2. CLI Reference
  3. Schema Reference
  4. Function Reference

Module Reference

  • toolsql.cli defines command line interface for toolsql
  • toolsql.crud_utils functions for inserting, selecting, updating, and deleting rows
  • toolsql.migrate_utils functions for migrations
  • toolsql.sqlalchemy functions for interfacing with sqlalchemy
  • toolsql.admin_utils
  • toolsql.summary_utils

CLI Reference

Schema Reference

  • SQLDBSchema describes a database, including its tables
  • SQLTableSpec describes a table, including its columns, indices, and constraints
  • SQLColumn describes a column, including its datatype and constraints
  • see spec.py for specific structure of each schema

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

toolsql-0.3.11.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

toolsql-0.3.11-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file toolsql-0.3.11.tar.gz.

File metadata

  • Download URL: toolsql-0.3.11.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for toolsql-0.3.11.tar.gz
Algorithm Hash digest
SHA256 4435379259c12b3bfff26770942801e338d4d9e56da0ab39d0be80432886f274
MD5 d471242ccdbed1a00647713c53a853f5
BLAKE2b-256 778edb0cebf14f8acccf1984eaa5a64b23add119fb4849cd3221e908db94c0ec

See more details on using hashes here.

File details

Details for the file toolsql-0.3.11-py3-none-any.whl.

File metadata

  • Download URL: toolsql-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for toolsql-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1c0f868f7bf25756e7ad239e8234ce038396c653db804f0c340d3221e458d81e
MD5 3660194a5a647a74e84e16ed2b429a77
BLAKE2b-256 1c91e2f085cc78edf043a08ccbabb9138fff34ede38d90dc591b0b288752aea3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page