NoSQL wrapper
I created this to lessen the need to recreate instances of connection to NoSQL databases. Basically all python dependency per NoSQL would be handle by this library.
Version:
- Python 3
Supported:
- MongoDB
To-Do:
- Cassandra
- Redis
- Riak
- DynamoDB
For MongoDB, we are using pymongo
library
from nosql_wrapper import MongoDB
database = MongoDB(url='mongodb://<HOST>:<PORT>/')
or
from nosql_wrapper import MongoDB
database = MongoDB(port=<PORT>, host=<HOST>)
client = database.get_client()
From here you can now perform pymongo
library commands
Getting a Database
db = client.mydatabase
or
db = client["mydatabase"]
- My Release Notes for now: Changelog
- This is just an initial implementation and will be further improved in the future