Skip to main content

SQL Abstraction layer written in Python 3.2 for use in lower level applications, such as tkinter.

Project description

  1. All SQL modules written in python follows a standard DB-API 2.0.

  2. Thus all connections attributes and methods can be used for different SQL engines.

  3. An abstract class, “Database” was created in order for sub classes that inherit this class to re-implement the __init__ method in order to set a connection.

  4. Since connections is loaded differently for each SQL engine.

  5. Attribute Connection was made private in order not to change it from a different layer and to keep the connection consistent.

  6. Python 3.2 required

  7. Example:

    from Databases.SQLite import SQLiteDatabase

    db = SQLiteDatabase(None, ‘test.db’)

    results = db.select(‘table_name’, [‘name’, ‘id’])

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

python-sql-abstraction.tar.bz2 (1.1 kB view hashes)

Uploaded Source

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