Skip to main content

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 test 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.

Source Distribution

sqlite3_api-1.0.5.tar.gz (7.0 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