pyramid_mongokit
A simple Pyramid extension that registers a mongokit connection as an attribute of the request object.
Expects MONGO_URI in os.environ.
If provided as environment variables, MONGO_DB_PREFIX will be used as prefix for any databases and MONGO_DB_NAME for database name.
Source code & example on https://github.com/hadrien/pyramid_mongokit
Changelog
Development
0.2
Add register decorator to register documents to mongokit and generate indexes when doing a config.scan.
Add an introspectable for each registered document.
0.1.1
Add name when registring utility to zope registry to be compatible with zope.interface==4.1.0
0.1
Use MongoReplicaSetClient when specified by mongo uri.
Mongo Session lazily opened.
Add config directives to register and index documents and to get mongo connection.
0.0.6
Read preference set to secondary preferred by default at construct time.
0.0.5
Break compatibility with 0.0.4 as register_document does not generate indexes anymore.
Add generate_index function.
Break apart Connection classes: MongoConnection is not anymore tied to a single databases and SingleDbCOnnection is tied to a single database.
Add an example used for documenting and functional testing.
0.0.4
registering document ensures index are created.
0.0.0
Initial version
Metadata
Release files for pyramid_mongokit 0.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_mongokit-0.2.tar.gz | 4.4 kB | Without provenance | Details for pyramid_mongokit-0.2.tar.gz |
Release files / pyramid_mongokit-0.2.tar.gz
| Download URL | pyramid_mongokit-0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a133dff2f63adaad2071ef6b94f5b5edb741a8262f251d9e3465b6261f5cab3
|
|
BLAKE2b-256 checksum How to use checksums |
6517e14b549dcd5f0216702da9d53075ef666c5e1d3b8242afe1868a6f3746be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_mongokit 0.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.