Add MongoSparkHelper native support for pyspark
I went through Mongo spark connector python documentation but the thing which I could not find in python documentation was "MongoSpark Helper" section which is available in scala and java documentation.
I was wondering if there is a way to use it in python code after adding the mongo spark connector packages.
A sample code to demonstrate what is available and what I am looking for (this code is in scala and I am looking for a similar behavior in python)
Code in use:
sparkSession.read.format("mongo").option("uri", "mongodb://dummymongo:27017")
Code looking for:
MongoSpark.builder().connector(connectorwithcustomclientfactory)
.sparkSession(sparkSession).readConfig(dummyReadConfig).build().toDF()
![](https://secure.gravatar.com/avatar/8b39933d85ffc9fe21f52950afce8d51?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)