Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noamt/python-mongo-sanitizer

A component that sanitizes MongoDB queries against injection attacks
https://github.com/noamt/python-mongo-sanitizer

mongodb python security

Last synced: 16 days ago
JSON representation

A component that sanitizes MongoDB queries against injection attacks

Awesome Lists containing this project

README

        

= Python Mongo Sanitizer =

== A component that sanitizes MongoDB queries against injection attacks ==

image:https://travis-ci.org/noamt/python-mongo-sanitizer.svg?branch=master["Build Status", link="https://travis-ci.org/noamt/python-mongo-sanitizer"]
image:https://badge.fury.io/py/MongoSanitizer.svg["PyPI version", link="https://badge.fury.io/py/MongoSanitizer"]

=== Installation ===

`pip install mongosanitizer`

=== Usage ===

[source,python]
----
from mongosanitizer.sanitizer import sanitize

query = {'$bob': 'alice'}
sanitize(query)
assert '$bob' not in query
----