DBSheet
Using google spreadsheets as database.
This package helps you make use of google sheets as databases. What all it supports
- Creating Tables
- Inserting Rows
- Get all records
- Search for One Row
- Search for particular number of Rows
How to initialize
from db_sheet.db_sheet import DbSheet
from db_sheet.sheet_table import WorkingTable, CreateTable, Table
db = DbSheet(db_name = "SHEETBACKEND", api_creds = "client_secret.json", scope = ['https://spreadsheets.google.com/feeds'])
sheet = db.get_db_conn()
Sheet is like database.
Creating tables
from db_sheet.db_sheet import DbSheet
from db_sheet.sheet_table import WorkingTable, CreateTable, Table
db = DbSheet(db_name = "SHEETBACKEND", api_creds = "client_secret.json", scope = ['https://spreadsheets.google.com/feeds'])
sheet = db.get_db_conn()
table = Table({"Col1","col2"},"name_of_table")
creator = CreateTable(table, sheet)
creator.create_table()
Inserting Rows
from db_sheet.sheet_table import WorkingTable, CreateTable, Table
working_table = WorkingTable("tablename",sheet)
working_table.insert({"value1","value2"}
Get all records
from db_sheet.sheet_table import WorkingTable, CreateTable, Table
working_table = WorkingTable("tablename",sheet)
working_table.get_all()
Search for One Row
from db_sheet.sheet_table import WorkingTable, CreateTable, Table
working_table = WorkingTable("tablename",sheet)
working_table.get_one("column_name",value)
Search for particular number of Rows
from db_sheet.sheet_table import WorkingTable, CreateTable, Table
working_table = WorkingTable("tablename",sheet)
working_table.find("column_name",value,total_count_u_need)
Contribution:
You can contibute by following below simple steps.
- Make sure your build is passing
- Keep your code clean and proper commenting with pep8.
Thats it for now. Will add more since its just a begginging. Suggestions are welcome. Please create an issue if you think this is **** and you can make it better :D
@ Author: chowmean
Metadata
Release files for db-sheet 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| db_sheet-0.1.4.tar.gz | 3.5 kB | Without provenance | Details for db_sheet-0.1.4.tar.gz |
Release files / db_sheet-0.1.4.tar.gz
| Download URL | db_sheet-0.1.4.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cd56628a20ec3c91b119b9579290e9072873e07c0909635f81778ed0a038967
|
|
BLAKE2b-256 checksum How to use checksums |
00b0a87b66f0ea81e22b417b04fdadf7838f1da84dd8a50428df0c89fc29e207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
|
Security for db-sheet 0.1.4
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.