Skip to main content

Gets stuff from a Redis queue and inserts it in Mongo

Project description

https://travis-ci.org/stoneworksolutions/redongo.svg?branch=v0.3.6

Synopsis

redongo is a utility written in Python that allows us to enqueue bulk saves to mongo through redis, it offers serialization for django objects and multiple Mongo connection and collections simultaneous usage. It’s also horizontally scalable.

Code Example

Server:

$ python server.py --redis dev-redis --redisdb 2 --redisqueue TEST

Client

import redongo_client
redongo_client.set_application_settings(application_name, mongo_host, mongo_port, mongo_collection, mongo_user, mongo_password)
redongo_client.save_to_mongo(application_name, objects_to_save)

Motivation

Needed a solution that allows to enqueue bulk saves to mongo

Installation

Using PIP

$ pip install redongo

Downloading tar

$ python setup.py install

API Reference

WIP

Tests

$ py.test -v

Contributors

Stonework Solutions

License

Copyright (c) 2015 StoneWork Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

redongo-0.3.6.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

redongo-0.3.6-py2.7.egg (28.0 kB view details)

Uploaded Source

File details

Details for the file redongo-0.3.6.tar.gz.

File metadata

  • Download URL: redongo-0.3.6.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for redongo-0.3.6.tar.gz
Algorithm Hash digest
SHA256 1b4ffb409c454b4c9e940de14959215d642adc6300be3b3ff93ff37b8548b9e7
MD5 1bfed8e8074a1291f0fb307187aca411
BLAKE2b-256 b209fb944f6fb168936a8cd1c0babdbbde787841d5eef5d013231b1381c35d63

See more details on using hashes here.

File details

Details for the file redongo-0.3.6-py2.7.egg.

File metadata

  • Download URL: redongo-0.3.6-py2.7.egg
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for redongo-0.3.6-py2.7.egg
Algorithm Hash digest
SHA256 675b99cffe0102f73c320af8e2b29b40f378f57974a5755444f767c002e2a81a
MD5 051e5c3a519dc4092e9eaeedb8c388b6
BLAKE2b-256 b76b11fb75cfd52693c2bb0b41cf1e9f318dce3dcd455b57ee6407f7bb745148

See more details on using hashes here.

Supported by

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