Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

API for sqlite3

Project description

Installation

Install from PyPI:

pip install sqlite3-api

Install from GitHub:

git clone https://github.com/AlexDev-py/sqlite3_api.git

Create table classes

In file my_tables.py in the package folder, there is an instruction to create classes(in Russian language)

Using

Import file with tables:

import my_tables

Import package:

import sqlite3_api

Initiate the database:

sql = sqlite3_api.API(my_tables, 'file_name.db')

Create tables:

sql.create_db()

Getting data:

table_name = 'test_table'
data = sql.filter(table_name)

Sorting data:

table_name = 'test_table'
data = sql.filter(table_name, field_name='value')

More information in the example folder in the package folder

VK: AlexDev

Mail: aleks.filiov@yandex.ru

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sqlite3-api, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size sqlite3_api-1.0.7.tar.gz (8.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page