pyramid_walrus
a walrus integration for pyramid
To install:
$ pip install pyramid_walrus
In your configuration:
[app:main]
...
pyramid.includes =
pyramid_walrus
In your views:
def my_view(request):
db = request.walrus_db
db.incr('my_counter')
Backend-specific configurations
walrus can be configured to use several redis-like backends.
Redis (default)
$ pip install redis
pyramid_walrus.backend = redis pyramid_walrus.backend.redis.url = redis://@localhost:6379/0 pyramid_walrus.backend.redis.max_connections = 10
Rlite
$ pip install hirlite
pyramid_walrus.backend = rlite pyramid_walrus.backend.rlite.filename = :memory: pyramid_walrus.backend.rlite.encoding = utf-8
Vedis
$ pip install vedis
pyramid_walrus.backend = vedis pyramid_walrus.backend.vedis.filename = :memory:
LedisDB
$ pip install ledis
pyramid_walrus.backend = ledis pyramid_walrus.backend.ledis.url = ledis://@localhost:6380/0 pyramid_walrus.backend.ledis.max_connections = 10
Custom
pyramid_walrus.backend = myapp.get_walrus_backend_from_settings
and define your custom factory function:
# myapp.py
def get_walrus_backend_from_settings(settings):
def get_database_for_request(request):
...
return db
return get_database_for_request
Changes
0.1.2 (2015-06-06)
Fix COPYING.
0.1.1 (2015-06-06)
Change license to GNU Lesser General Public License v3 or later (LGPLv3+)
Fix packaging.
0.1.0 (2015-06-05)
Initial release.
Metadata
Release files for pyramid-walrus 0.1.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 |
|---|---|---|---|---|
| pyramid_walrus-0.1.2.tar.gz | 19.9 kB | Without provenance | Details for pyramid_walrus-0.1.2.tar.gz |
Release files / pyramid_walrus-0.1.2.tar.gz
| Download URL | pyramid_walrus-0.1.2.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88669192def8e55fbca72243564684761505a7958097b040789b09309c7db68c
|
|
BLAKE2b-256 checksum How to use checksums |
1d6e6084b6ab6bade07b6f484e892a59ba24e873cf97e105380e64bb3a97f9a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid-walrus 0.1.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.