djorm-ext-pool
DB-API2 connection poolling for Django.
Description
Is a simple application that uses the excellent SQLAlchemy connection pool to incorporate a it to django. All work is based on https://github.com/kennethreitz/django-postgrespool/
Note: currently only been tested with postgresql, but in theory it should work perfectly with mysql and sqlite3.
How to install
Run python setup.py install to install, or place djorm_pool on your Python path.
You can also install it with: pip install djorm-ext-pool
How use it?
Very simple, put djorm_pool in your INSTALLED_APPS settings:
# settings.py
INSTALLED_APPS = (
'djorm_pool',
...
)
You can add options to sqlalchemy connection pool adding them in the settings “DJORM_POOL_OPTIONS”.
Example:
DJORM_POOL_OPTIONS = {
"pool_size": 20,
"max_overflow": 0,
"recycle": 3600, # the default value
}
Also, can activate the pessimistic connection handling with DJORM_POOL_PESSIMISTIC:
# With this settings, every checkout of a connection from a pool
# executes an additional query for check the connection state.
DJORM_POOL_PESSIMISTIC = True
Metadata
Release files for djorm-ext-pool 0.8.2
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 |
|---|---|---|---|---|
| djorm-ext-pool-0.8.2.tar.gz | 2.9 kB | Without provenance | Details for djorm-ext-pool-0.8.2.tar.gz |
Release files / djorm-ext-pool-0.8.2.tar.gz
| Download URL | djorm-ext-pool-0.8.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c6d4df714ebfb302d9eef61203d25e2fe40a316fcfa92dec36c2599d40547a6
|
|
BLAKE2b-256 checksum How to use checksums |
8389e5a5ff8c3f1174d885946dc0f03caf0e2e76618a45ea98d2808bda879eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for djorm-ext-pool 0.8.2
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.