CData Python Connector for MongoDB

Build 24.0.9060

Getting Started

Connecting to MongoDB

For information on the available WHL and TAR.GZ files for supported environments, and how to install the appropriate file for your Python distribution, see Package Installation.

For information on the module to import, and how to configure the necessary connection properties in a connection string, see Establishing a Connection.

Other available connection properties can be used to configure other aspects of the connector capabilities.

Python Version Support

The CData Python Connector for MongoDB can be installed and used in various Python 3.8, 3.9, 3.10, and 3.11 distributions.

MongoDB Version Support

The connector models MongoDB instances as relational databases and supports MongoDB versions 2.6 through 7.0. The connector leverages the MongoDB API, including the MongoDB aggregation framework, to enable bidirectional SQL access to MongoDB data. See the NoSQL Database chapter for SQL-to-MongoDB query mappings and more information about accessing unstructured data in MongoDB through SQL. See the DBaaS Connections page to connect to popular services such as Atlas and ObjectRocket.

See Also

  • Using the Connector: Establish connections and query MongoDB through Python code.
  • From SQLAlchemy: Use SQLAlchemy to establish a connection with dialect URL, and interact with MongoDB data using mapped classes and Sessions.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060