No project description provided
Project description
Muffin-Mongo – MongoDB support for Muffin framework.
Requirements
python >= 3.3
Installation
Muffin-Mongo should be installed using pip:
pip install muffin-mongo
Usage
Add muffin_mongo to PLUGINS in your Muffin Application configuration.
Or install it manually like this:
mongo = muffin_mongo.Plugin(**{'options': 'here'}) app = muffin.Application('test') app.install(mongo)
Appllication configuration options
MONGO_HOST – Connection IP address (127.0.0.1) MONGO_PORT – Connection port (27017) MONGO_DB – Connection database (None) MONGO_USERNAME – Connection username (None) MONGO_PASSWORD – Connection password (None) MONGO_POOL – Connection pool size (1)
Queries
@app.register def view(request): foo = app.mongo.foo # foo database test = foo.test # test collection # fetch some documents docs = yield from test.find(limit=10) return list(docs)
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/muffin-mongo/issues
Contributing
Development of Muffin-Mongo happens at: https://github.com/klen/muffin-mongo
Contributors
klen (Kirill Klenov)
License
Licensed under a MIT license.
If you wish to express your appreciation for the project, you are welcome to send a postcard to:
Kirill Klenov pos. Severny 8-3 MO, Istra, 143500 Russia
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file muffin-mongo-0.1.0.tar.gz
.
File metadata
- Download URL: muffin-mongo-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f85e071c44bba4fdb771ededfe5d5565d90ba0a273737902abe31e9ad9b404 |
|
MD5 | c188a08d00bbd05e3a3230f224ec9edf |
|
BLAKE2b-256 | dfda7728a2e9269bbd9161fda3ec330b95d59e9745ba04963cf26b5b362f6088 |
File details
Details for the file muffin_mongo-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: muffin_mongo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bab526037e0e2e2347807ae90deb6ae03fe09be79993170df508bee95d1e434 |
|
MD5 | e9f04be349487e92fb9390c1d9aff047 |
|
BLAKE2b-256 | 53440f882b863df0705df0f2ed10f29984068695f85e42a1907a230184dbffc4 |