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.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817cabcdc55668aea11455c0795692698153deac34bef6724ed74bf61546cbd4 |
|
MD5 | 322d968ac93e27ea5551269d82a9a3a3 |
|
BLAKE2b-256 | e3e70ed644b3d0310156de72775645674cb8bd9bdad1bcfb554ec72a28a487a3 |
Hashes for devart_mongodb_connector-1.1.1-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a055315bf1eb847cdb3d6ebad832857179cf03b2b399abf09e6df1b181b30e |
|
MD5 | 851961a250b722da32e5ce60d7201d98 |
|
BLAKE2b-256 | 30f8085636a29e658817ca7c3ed9e42c666b8d582c22cb9441377144b492bcb2 |
Hashes for devart_mongodb_connector-1.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe2456c96e9f149febf8ef036d658c52f4b9462847c2247d62d59f0b6101473e |
|
MD5 | 9160246da0e3149f93afd7fee48ad5aa |
|
BLAKE2b-256 | 9faa869b22b82d1f7eb54fd1e61a1d2e0a926fcd4e47c4ef2bb94ef69a9aecab |
Hashes for devart_mongodb_connector-1.1.1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9127df789f3d2b68f61dbeeeea19176cc8ad2c083209eeece06502deaa55d4b9 |
|
MD5 | 61d8b3422d62f9fb3ecbe3e1ea9487a0 |
|
BLAKE2b-256 | 51e04a93981ccbd63839ae48d1b0f060458535bbf7777644a06586771b900699 |
Hashes for devart_mongodb_connector-1.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52d3aea1d85da8ab4a3195daee4c92ca45d3244dc5f34cedc2af7054be35146 |
|
MD5 | 9965337202ed58cd71ed58cb937f645d |
|
BLAKE2b-256 | 42348950fd9935d1ffa5c8fcdc633c7b52bfeb94fcaf3786e78c0e8e43a5c51d |
Hashes for devart_mongodb_connector-1.1.1-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42442f481bc9d834588f92c03a364b7599f78f7856ccbec3c7f716afa464f6ff |
|
MD5 | 4e9ff4e48d559ccfd7516c62eb4a82c5 |
|
BLAKE2b-256 | 9321a17f8969d10b95bc3ebe2abd91abc8385fdf406333fc9176f626f2e957d2 |
Hashes for devart_mongodb_connector-1.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 827746782c7186261fd005813e932403a2bc2adc741bb320067a37882f1a4b03 |
|
MD5 | f7f936f679e886fa364e5fe72c864a22 |
|
BLAKE2b-256 | b74823ad482c0e543d379669f8f0c4e8556c5e220cc41ffb4e9d4d955d4a519c |
Hashes for devart_mongodb_connector-1.1.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a543551b1499dcdcf7084867f649015f23a47e064d056837792331a61bea532 |
|
MD5 | f39fe0c98b055c46a3bc5cec3799cfd6 |
|
BLAKE2b-256 | 0bd7d0b33e506d513e8111de1ae47fe4de637ecc5defc0ba3d75f83fcd3572c0 |
Hashes for devart_mongodb_connector-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1b0d4a0261c733667822152c07fa57c10b45e5321e2e0b4c579a969e6b0e28 |
|
MD5 | 49eb75769985b172cd1afd68af1d92d7 |
|
BLAKE2b-256 | 82dd8f250cf1f0da183b932a5d0995ec52bb7cf17347d12e34d6e9e73d9e77d1 |
Hashes for devart_mongodb_connector-1.1.1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 633f5bf08a1273fd59eee899c8628ccf1be25326a6bfc19d11de543c89128ebf |
|
MD5 | f138537d97379acaba0e89a77b3ce4bd |
|
BLAKE2b-256 | f4d86c5173d8ca77f5ffa240ebda6f926fec240ff374d4eebfd11284efd64c02 |
Hashes for devart_mongodb_connector-1.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6caed1e6004134c115da500c46603fd0d07ff5c154bc9222722a297fd8bc83a3 |
|
MD5 | f9048af2d676319810641e5bcc139e47 |
|
BLAKE2b-256 | c707559c90f50766ae94ea64054171a54caceddca1b16d53e20d26cd114932e2 |
Hashes for devart_mongodb_connector-1.1.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8abd2d728dbb2978cac9db797ea0a648847b09850713cdef836a18381ef9da8 |
|
MD5 | b3a34c85a868302fdb40232571fd60db |
|
BLAKE2b-256 | bd77ef8ded137801c1ec1b1a0d6c0d9fb37b7abbb25f01a0a2360f0226be74e7 |
Hashes for devart_mongodb_connector-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda7b46e5f8afef682ce464c35e54665bcfd1d81cc2e64fb627f6083a0aa9e86 |
|
MD5 | d54b11ae1e63a917f875b339b04474cf |
|
BLAKE2b-256 | 8c8a130528ed3780810292b79b647b1c405bdcc7377f7f45d9a0bf32d3fcc100 |
Hashes for devart_mongodb_connector-1.1.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f2d92996446227a8c23050a99b73c5901759279868fd708d7dc1c2b58fd964 |
|
MD5 | d4cffbc9776207c31c7a9b15420e224e |
|
BLAKE2b-256 | f940895d5719e984d7992990dddc716cf7a51789ac22cc5d9ed758c548c9126a |
Hashes for devart_mongodb_connector-1.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b35535c4d92d6bb640185041b0bd9b1751e782a3659c0e27c01f939c77b5647 |
|
MD5 | 2974023c1fab5ed4a02c565149dbd4ce |
|
BLAKE2b-256 | 7c3f17212163e015e43110d5c9ed57470e5c2aafd71f92c0a21939b2dbaf6b4d |
Hashes for devart_mongodb_connector-1.1.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b891cda6de64c45c7235f57aec049d216313e213bfeed02df1fb8f5cef780b3b |
|
MD5 | b6f0959e7fe3de3421313c6503b46107 |
|
BLAKE2b-256 | d39c2c899df4005c601165c4148c4f78a85f7d4dd5f232f69aaf3d30d19f2d05 |
Hashes for devart_mongodb_connector-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c56e2d358b9796d3fc1c2ad2576cb48cb58de7e4d27b453855bd882ac2d03b |
|
MD5 | 225fe43abb09d498b06290589c027ee0 |
|
BLAKE2b-256 | f3878323167ac33f71b56c67a3ac3aabf6295c665dc8f38ab48d0f00ddadb3d1 |
Hashes for devart_mongodb_connector-1.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d20024276d8c975df24100c48d2a13979aa91eac1a3cbdd01d649a9a48919bb |
|
MD5 | 62b85159112e6739c0f53881c20f0a75 |
|
BLAKE2b-256 | ebe500b8399b973a3698e864c0125c2b0aadb80e124eae162e773243b61465f0 |
Hashes for devart_mongodb_connector-1.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c18b2bd343731ccfb6f3906e4acf97b179593b5adaf1e0b8acf2c424c08a3cae |
|
MD5 | 9a9e358f8f423a767f019cb7caf2e938 |
|
BLAKE2b-256 | 489c88938088a589c9765149b5fb6097259fe4528cab90f4d299bbd45bbff318 |
Hashes for devart_mongodb_connector-1.1.1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a806b378f481363e012443b2a2ece5a517c5a4206fd0c219d05a62a098d1a80f |
|
MD5 | e3f5c2aa535511413378f2a78d18512d |
|
BLAKE2b-256 | 4f0ed877ba0109489f544aa01a63f61ddae8c22a4ab76131ed1c6aa3211f6f6d |
Hashes for devart_mongodb_connector-1.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6d9e4db49dc01d3794539ae67fa787d9c4777934d06c3fb9858e92e3cc7a12 |
|
MD5 | 70f11b2db8ba73547cbbe01db60cd2bb |
|
BLAKE2b-256 | da6f48d81c1733c55e2c59f62bcb09af70145c5cc6418c19fe2a21aa1dc8c328 |
Hashes for devart_mongodb_connector-1.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6ab2cec3254e3aedc20ecaefda99b4651e30629f6f98aeedf61a9a85c92603 |
|
MD5 | 5af38c31638eff560255b9af004bc050 |
|
BLAKE2b-256 | fc1c941218b58cc9deffb87fb733428a831ea6e897b91a4966d744fbcd4ca1b2 |
Hashes for devart_mongodb_connector-1.1.1-cp37-cp37m-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e92701124cba1582dc2bb11a349b33d689c745efda9f21746fe1ce527b640da0 |
|
MD5 | 5deec69f2a8372c74ec96aac10d4ab36 |
|
BLAKE2b-256 | 6ae8c431f4aa640d8cb8bd9d5870767bd4ad2d2d1a2c557c00fae2e771f375c8 |
Hashes for devart_mongodb_connector-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43cc7c124fd2c8976f9f08179d71509efff6f0a6312f58d71229faf674150635 |
|
MD5 | 7a42fe39137f8500ab1837dc483c432a |
|
BLAKE2b-256 | eb3e22b15bba44a0032cf3c898b18b5e24cb0f05efa3a204a46825b7c21e181c |