Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/noamt/python-mongo-sanitizer
- Owner: noamt
- License: mit
- Created: 2017-07-13T14:56:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T04:36:31.000Z (over 4 years ago)
- Last Synced: 2024-09-15T01:29:01.753Z (about 2 months ago)
- Topics: mongodb, python, security
- Language: Python
- Size: 4.88 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- License: LICENSE
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 sanitizequery = {'$bob': 'alice'}
sanitize(query)
assert '$bob' not in query
----