flask-pymongo icon indicating copy to clipboard operation
flask-pymongo copied to clipboard

PyMongo support for Flask applications

Results 26 flask-pymongo issues
Sort by recently updated
recently updated
newest added

Will need a custom backend: http://packages.python.org/Flask-Cache/#custom-cache-backends

Show queries, updates, commands invoked in serving a given request

I have a deployed version of my code online which is running fine but when trying to run a local version of the same code, I am facing the errors...

Is this project still maintained?

This PR will wrap the `MongoClient` creation with [`pymongo.driver_info.DriverInfo`](https://pymongo.readthedocs.io/en/stable/api/pymongo/driver_info.html#pymongo.driver_info.DriverInfo) which makes it easier to filter `mongod` logs for connections that originate from Flask-PyMongo. For example: > {"t":{"$date":"2024-06-03T16:10:26.686-04:00"},"s":"I","c":"NETWORK","id":51800,"ctx":"conn225","msg":"client metadata","attr":{"remote":"127.0.0.1:61857","client":"conn225","negotiatedCompressors":[],"doc":{"driver":{"name":"PyMongo|Flask-PyMongo","version":"3.11.4|2.3.1"},"os":{"type":"Darwin","name":"Darwin","architecture":"x86_64","version":"14.5"},"platform":"CPython 3.10.3.final.0"}}}