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.

Source Distribution

sqlalchemy_gevent-0.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file sqlalchemy_gevent-0.2.tar.gz.

File metadata

File hashes

Hashes for sqlalchemy_gevent-0.2.tar.gz
Algorithm Hash digest
SHA256 bcfde76669484b0952bfd377a45664ed73f97473903fed10630a79ae24daf88d
MD5 9b4009b0aac58b6bcd86689f7f2029d3
BLAKE2b-256 1c8b2ab59509eeec57aae4d8c3750221dc41f540479f25df9dda8ca82bd24793

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page