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.5.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

toolsql-0.3.5-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolsql-0.3.5.tar.gz
Algorithm Hash digest
SHA256 d4da703de7f43210621d4c6e217183d04eae514ade972b155c7855e5f97e4ac2
MD5 20db0312fe61a58bf9ccf4f87e1e2c88
BLAKE2b-256 62635719584d4f1899bed641b3e7f00918f2ca4d783d2f1a71f4e4edb822b01e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolsql-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b3e25f1e52ab443804aaf21789b2a1b951f6b626b50f903fb8b13c080c37b4
MD5 d0656ac0e8ab693268c76c8bc816ce7f
BLAKE2b-256 11e73df83ecd82eb6ecc7fd8b3fff9bfdd18987479c42d62cc4f7b9a768a8670

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