New level of functionality and performance in data access via Python
Project description
Python Connector for MongoDB
Python Connector for MongoDB is a connectivity solution for accessing MongoDB databases from Python applications. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows, macOS, and Linux.
Using the connector
To retrieve data from a database:
Import the module.
import devart.mongodb
Connect to a database using the connect()
module method and obtain a connection
object.
my_connection = devart.mongodb.connect(
Server="your_server",
Database="your_database",
Username="your_username",
Password="your_password",
ClientLibary="path_to_libmongoc",
BSONLibrary="path_to_libbson"
)
Create a cursor
object using the cursor()
connection method.
my_cursor = my_connection.cursor()
Execute the SQL statement using the execute()
cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve the result set using one of the fetch*()
cursor methods.
for row in my_cursor.fetchall():
print(row)
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/mongodb/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/mongodb/activate-a-license.htm
What's new
Python Connector for MongoDB 1.1
- Added support for MongoDB 7
- Added support for MongoDB 6
- Added the ability to connect to MongoDB with an empty database name
- Added connection pooling
- Added activation with a license key
- Added the subscription license type
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for devart_mongodb_connector-1.1.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3cf9ca3b6a668c910a6c4bf43a33ee78a04aecf433eebb3cc599f66d2293179 |
|
MD5 | 32bf8325d68729229a02b884be239823 |
|
BLAKE2b-256 | 77eb8d60f5afb6164da86e8d71574a888d08ffbdebc30dc99d74c1a2654ee1cb |
Hashes for devart_mongodb_connector-1.1.0-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 414ad1a446a5c6bcad21673add5ee1fa5f8504b429b4b845b32f7286ceaaa59c |
|
MD5 | 20a5e47ffa860151dec4927fe50b1c21 |
|
BLAKE2b-256 | 72359ad395c7bf195b9c078a376781e2f620080d917f9280f2362f335e3e9ea8 |
Hashes for devart_mongodb_connector-1.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bcedbb729d9df8ba02816c3dba50a3752e3ea10e4578bf2740e229a64503b4e |
|
MD5 | 66c36c26a5efcd931ef3fd9b9db267f4 |
|
BLAKE2b-256 | a9b29e9f75c51011434277eeb7c2383a8c31e62b1b3629556bcb386b081bd7ea |
Hashes for devart_mongodb_connector-1.1.0-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b17928a6785542fa1cfd84eebbd46782c649e2b3bbe07693d22621131585fa |
|
MD5 | e524a6a2032fd9aa4cd94e376e448fbb |
|
BLAKE2b-256 | eb318e19fe972501e00463c93a69c9eb50ce9756e785a6a7bbb44b82af8c62e7 |
Hashes for devart_mongodb_connector-1.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81196c57b13ffcbb6edba29efd11315a827d5ecc778314ee3dd241cc44e00fe6 |
|
MD5 | ea3a286ad768cb8b953468424419611c |
|
BLAKE2b-256 | c3717d3683be4c94d9cc1dd0469838beb32c132f0cd8911436e9cddb398ccc43 |
Hashes for devart_mongodb_connector-1.1.0-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b461f8617b7177a4cc19e9d3166921ebaba5a68ed3cfe77a4a8c14b35cd70f |
|
MD5 | d717274652eb3d027c10dfa83e7a4330 |
|
BLAKE2b-256 | 7acae28e230eebcb3f88f9162c5c675151877d1f21d9b7c0ee213233f00d954e |
Hashes for devart_mongodb_connector-1.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84d4428351a21a97020f352845497171bbec51ba5720116268b9fdee3436d168 |
|
MD5 | bc5f4f2d41822fa89e83f49d1c0f5cb6 |
|
BLAKE2b-256 | 558cabcecc7f5d6f5a9f338e42a554f5afeed763722626694ff986d6ba9a6f26 |
Hashes for devart_mongodb_connector-1.1.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b057582522f088a5e84a513afbd7417316a5df3e7f3837ed08dc9e722f9a30b1 |
|
MD5 | 52212dca668abd9afa7e0d9bb9bcd19e |
|
BLAKE2b-256 | e75575b1b4cdba1dee87ba4e26c9a317946e88a51da35026828f7bb4e3ef7a6e |
Hashes for devart_mongodb_connector-1.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cd84e9d5129cf32ba2fdc8db3cab7c3da544976007a258b2c035ce677a77a4a |
|
MD5 | 95792dd21744ade5d750b349bb5634f4 |
|
BLAKE2b-256 | a285117e4fa676a2687fed1f3d7a978eff716e6b0bbd7f25569b85e4b02f5e52 |
Hashes for devart_mongodb_connector-1.1.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ff5beddbc5b5b0b282136efe62f4e4c120ddbbfc5fa4902236fb67ed79f3b4 |
|
MD5 | 6f2e3a48bd15e3d2ab5b5b2b9d91d93b |
|
BLAKE2b-256 | 6c75bb394b26d5eed63559d1e97e78274cac6ec71392e9d949a7f0b7f316b787 |
Hashes for devart_mongodb_connector-1.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4ddd7d3173554c5783bbfa2b6a97ca6d93b72514ba6817c0968e396cb4ea40 |
|
MD5 | 1cc0f1c7b15552de3e73afec23ddd7bf |
|
BLAKE2b-256 | 5841fda4233c0f4a7a0c057f925c568635b5e03b90756e6028ed6fb66af445dc |
Hashes for devart_mongodb_connector-1.1.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ea1019a0d2e446ee161e996af5f9b15e31b55c10012d1189ee557e959c01719 |
|
MD5 | acd2aff0d1fbca2342f996fe0b5ff82d |
|
BLAKE2b-256 | 4ccffe559019590ace67d933c6842d0f2ecf2e39ddee1a1365252cfd4784a16c |
Hashes for devart_mongodb_connector-1.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 116667be00277fd44d516cd3b85d64b8280a7df6357e138add3525a671e9cf79 |
|
MD5 | 06a1c6c20cdadf66b19d493ec229cb17 |
|
BLAKE2b-256 | 570a3ad272d6e5a2e1a03d62f4be9c4007db343a1c02db11f0deef4f02164b59 |
Hashes for devart_mongodb_connector-1.1.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd47005e1ecdcb7ff281bffbce40e59528a2483dbe6d2b2c80051445e2b0d76 |
|
MD5 | 209bdad100ffa1953f0e4414d35f2d6f |
|
BLAKE2b-256 | a1f24c99c649acdbe33eb9bc05fb8bf1aecc9ede921012cc5ac15407a51ca542 |
Hashes for devart_mongodb_connector-1.1.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f421f8b5909f0ddcb7ada3c4ffaf2cb7adadca017de838124e69b717ef7db0 |
|
MD5 | 1d9c3d53a20642a6308949db85e88a91 |
|
BLAKE2b-256 | e047915a59bf2aedc5e98e98aa761c12f6c863fa1e8d8195f1ca496df42573cb |
Hashes for devart_mongodb_connector-1.1.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d43452ae79ab1a376c03a2a40e32fdeee09a8c30b2d387f45144ffa56e428e |
|
MD5 | ce61464fa675050c3e178b3d464035c3 |
|
BLAKE2b-256 | f86fdcb568ab24dfd88bb6b619fea181818162dafc2c0a8b4f6f9224888f9435 |
Hashes for devart_mongodb_connector-1.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28127429b94ea2ca81be4f01617a280e39ac79dbd101c6dfbb83a4ab6d7009e |
|
MD5 | b0222c9fd467aca3ddb5977c0ed9f041 |
|
BLAKE2b-256 | e132b842e0b7c842a31f7f7cbc85f157dfb5fa85b0a6f2477328ac9dee6741db |
Hashes for devart_mongodb_connector-1.1.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab27e3c2d52a7a0fe921f0ac0e9b2a8936025119a47a82a204347f2d517b48d |
|
MD5 | 8f6898a65a91764333ddb3c535127056 |
|
BLAKE2b-256 | ae21050c81198379fc872814e4eadd94853196f1ae27f37291eca8eb8426cdb6 |
Hashes for devart_mongodb_connector-1.1.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 811076e1a80a05f48eee8faa04b5b1c33a3cf4a5a7b3950221b53e712de0a845 |
|
MD5 | 3debe4bd7052a5778bb663974a56f17e |
|
BLAKE2b-256 | 95a8a3e3d6fefff9ff8f0911c2749d9ebcdc3df58e31525bd4f22f42178642c5 |
Hashes for devart_mongodb_connector-1.1.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98d0656901385662ae2ac08a45191322b9d25151837f68070f6307113202be46 |
|
MD5 | 17f3d11d1a45f428dccc6776ffa043ff |
|
BLAKE2b-256 | cace1bc7cb2b1ae5b2835916dd0d002920da9e1f2b60053885714607a7b007bd |
Hashes for devart_mongodb_connector-1.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ecdfd6f51c9d76e8f9aa43dd1bccfe13a17893c82d49964e8491dedeb636cd9 |
|
MD5 | 46f61341c96dc19a74eb99d1dece2a43 |
|
BLAKE2b-256 | 9bf3c38a71a0e27c47313e130e9dfd82b00943b7295c8397c45c73f7de426524 |
Hashes for devart_mongodb_connector-1.1.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d42aa2e26a04907ab4f135b4e783d168d7193d0412b0534d6721f1c4d8996ba |
|
MD5 | 5acd772707feebb68b0ec02a8d40e7a7 |
|
BLAKE2b-256 | 6fc1e9f9f5e836ab59fa0acc86850bd012f162b992e663446b9bb6bf77886675 |
Hashes for devart_mongodb_connector-1.1.0-cp37-cp37m-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d364a90aa791f43565db0176d0918bf52f50e5392f72591344b597708c9a74 |
|
MD5 | 716c561d888c9a4248db82c30d6b839a |
|
BLAKE2b-256 | 78a3b128d65e2a5c47b1b70de433d4d2db11b743f9c02f1953adfde5e4a614a1 |
Hashes for devart_mongodb_connector-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f5175b17a255cabe7e5f5f7211a2f740e720fcee91a9d2fa3aa0a950351f3c5 |
|
MD5 | ff482601350f9e1931913b31050e3f53 |
|
BLAKE2b-256 | 7870a643091d9bda9da72f5eab82856c4b3f375a294c555ee7d3eb301bd06d50 |