Skip to main content

sqlalchemy dialect adaptor for gevent to work in non-blocking mode

Project description

sqlalchemy_gevent
=================

sqlalchemy dialect adaptor for gevent to work in non-blocking mode

```
import sqlalchemy
import sqlalchemy.dialects

# use case 1.
# Installing sqlalchemy_gevent via setuptools installs gevent_* schema
engine = sqlalchemy.create_engine("gevent_sqlite:///example.db")

# use case 2.
# override standard sqlite driver with gevent enabled driver explicitly.
sqlalchemy.dialects.registry.register("sqlite", "sqlalchemy_gevent", "SqliteDialect")
engine = sqlalchemy.create_engine("sqlite:///example.db")

# use case 3.
# monkey patching
import sqlalchemy_gevent
sqlalchemy_gevent.patch_all()
engine = sqlalchemy.create_engine("sqlite:///example.db")
```

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 sqlalchemy-gevent, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size sqlalchemy_gevent-0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page