Skip to main content

SimplySQL - The easiest way to edit SQL databases!

With SimplySQL you can edit SQL databases without having to have a great understanding of SQL queries. Creating, reading or editing a database is made possible by simple python commands without the need for many lines of code.

Overview

The following features are included:

  • Open or create databases
  • Open or create tables
  • Run through all rows or columns, create them or delete them

At this stage only the following databases are supported: SQLite.

Installation

The installation is possible in two ways: either fork this github repo or use Pypi via pip.

$ pip install simplysql

Usage

Because SimplySQL should work without queries, it is only necessary to import DataBase from SimplySQL

from simplysql import DataBase

From this moment the fun can begin. The next step is the assignment of the database. Two methods can be used for this. The first method is a direct assignment (whereby this must be closed again at the end of processing):

DB = DataBase("tests/Test.db")
...
DB.close()

Or you can choose the with-assignment:

with DataBase("tests/Test.db") as DB:
...

Grab a table and iterate over all rows:

DBtable = DB.table(0)

for row in DBTable.rows():
    print(row.as_dict())

    # first row would be like:: {'name': 'Karl', 'age': 29, 'gender': 'female'}

Each entry in a row can be reached by several ways where the assignment via a name depends on the name of the table columns:

  • row.name, row["name"], row.get("name") or row[0]

To display the all content of a row you can use this functions and methods:

  • row.attribute(), row.data, row.as_list(), row.as_dict() or row.as_tuple()

For a complete overview of all functions have a look at the manual and the examples. >>> coming soon

Metadata

Release files for simplysql 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplysql 0.1.3
File Size Uploaded Provenance Actions
simplysql-0.1.3.tar.gz 8.6 kB Without provenance Details for simplysql-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simplysql 0.1.3
File Interpreter ABI Platform Actions
simplysql-0.1.3-py3-none-any.whl Python 3 none any Details for simplysql-0.1.3-py3-none-any.whl

Total release size: 21.3 kB

Release files / simplysql-0.1.3.tar.gz

Download URL simplysql-0.1.3.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3de197aed3419b58ee3a1c9d9af97878b71b5d76a2c13eed5a52655d122fac97
BLAKE2b-256 checksum
How to use checksums
497b898e4899386b0e6139d5ced6f6e4bcdc48ae2ef724313f86abd122a9d576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

Release files / simplysql-0.1.3-py3-none-any.whl

Download URL simplysql-0.1.3-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efcd93ec509851b73d79c156a2288fbc04ee2d64d9739208b145eb12b174a45c
BLAKE2b-256 checksum
How to use checksums
904f919b89903938b08b13ff8d0a2b42118e9d3c0b6e1e758273715136dbe739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

Security for simplysql 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page