Skip to content

gilesbrown/gsqlite3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gsqlite3

An experimental gevent-ification of pysqlite3, including a SQLAlchemy dialect.

The module takes a simple approach of any potentiall long running methods off to the gevent hub threadpool for execution.

This lets greenlet code perform parallel queries.

Try the demo script.

$ python demo.py
Populating 'demo.sqlite' ...
gsqlite3: 10 loops, best of 3: 105 msec per loop
sqlite3: 10 loops, best of 3: 243 msec per loop

SQLAlchemy

You can use gsqlite3 with SQLAlchemy by specifying 'sqlite+gsqlite3' as your URL scheme.

About

A wrapper for the 'sqlite3' module to make it play with 'gevent'.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages