Skip to content
/ sqldir Public

a standard file operations patch, allowing you to read write and manipulate files from a sqlite database.

Notifications You must be signed in to change notification settings

uname-n/sqldir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqldir

sqldir patches standard file operations, allowing you to read write and manipulated files from a sqlite database.

Installation

To install sqldir, run the following command:

pip install sqldir

Quick Start

from sqldir import install_patch, cursor
install_patch()

with open("file.txt", "w") as f:
    f.write("hello")

with open("file.txt", "a") as f:
    f.write("world")

cur = cursor()
res = cur.execute("select filename, content from files").fetchone()
print(res)

About

a standard file operations patch, allowing you to read write and manipulate files from a sqlite database.

Resources

Stars

Watchers

Forks

Languages