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
- Installation
- Usage
- Reference
Installation
Usage
Log In To Database
Inspect Current Database Schema
Define CLI
Insert, Select, Update, and Delete Rows
Reference
- Module Reference
- CLI Reference
- Schema Reference
- Function Reference
Module Reference
toolsql.cli
defines command line interface for toolsqltoolsql.crud_utils
functions for inserting, selecting, updating, and deleting rowstoolsql.migrate_utils
functions for migrationstoolsql.sqlalchemy
functions for interfacing with sqlalchemytoolsql.admin_utils
toolsql.summary_utils
CLI Reference
Schema Reference
SQLDBSchema
describes a database, including its tablesSQLTableSpec
describes a table, including its columns, indices, and constraintsSQLColumn
describes a column, including its datatype and constraints- see
spec.py
for specific structure of each schema
Project details
Release history Release notifications | RSS feed
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.8.tar.gz
(22.1 kB
view details)
Built Distribution
toolsql-0.3.8-py3-none-any.whl
(35.8 kB
view details)
File details
Details for the file toolsql-0.3.8.tar.gz
.
File metadata
- Download URL: toolsql-0.3.8.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a9f118f88bf754307b940cf7e8c1e9ebd8df76d9aab8be7f3376cbc45178aca |
|
MD5 | b07ff2e986385c8da19094033cedf198 |
|
BLAKE2b-256 | 10fd6d62d885239ec34458b094cd5e96f0a0195ce6230eafa0a9ba5c24ffbdbf |
File details
Details for the file toolsql-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: toolsql-0.3.8-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b502958b4b1c73fcc32f2d0c6611ab138f9db83c232612ed7311bee576648bb |
|
MD5 | c359ef0d39a3e69d1d988959c1a96bdf |
|
BLAKE2b-256 | 2567f8a3aea7783d705dc65b69a01ea30934b2348585c6bf25408965335ddd50 |