Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

API for sqlite3

Project description

Installation

Install from PyPI:

pip install sqlite3-api

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 test folder in the package folder

VK: AlexDev

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.4
Filename, size File type Python version Upload date Hashes
Filename, size sqlite3_api-1.0.4.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page