$npx skillfedfor your agent

pymongocrypt

Python bindings for libmongocrypt

With conditionsPyPI DatabaseReleased Jun 20261.3M downloads / mopermissive licensePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — pymongocrypt-1.18.1-py3-none-macosx_11_0_universal2.whl · pymongocrypt-1.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl · pymongocrypt-1.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
v1.18.1 · released 2026-06-04 · Python >=3.9 · 4 runtime deps: cffi, cryptography, httpx, packaging

Yes, if you need client-side encryption for MongoDB. The package is production-stable, actively maintained, and has no known vulnerabilities. Install friction is moderate due to libmongocrypt dependency, but pre-built wheels eliminate most setup overhead on common platforms. Apache 2.0 licensing poses no restrictions. Verify that your platform is supported by the pre-built wheels or plan for manual libmongocrypt installation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • libmongocrypt must be installed on your system or available via PYMONGOCRYPT_LIB environment variable; wheel installations on macOS, Windows, and manylinux include an embedded build, but source installs require manual setup.
  • Medium install friction due to platform-specific wheels (macOS, Windows, manylinux) and a compiled dependency on libmongocrypt.
  • Wheels are provided for common platforms, but source installation requires manual libmongocrypt setup.

License · maintenance · safety

permissive license (permissive) — Apache License 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include a copy of the license and document any changes.

last release 2026-06-04 (71 days) · last repo commit 2026-08-14 · 109 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,284,344 downloads/mo, #4,112 on PyPI

Verify before relying

pip install pymongocrypt
import pymongocrypt
print(pymongocrypt.libmongocrypt_version())
  • Whether the package works with PyPy3.9+ as stated in the description (classifiers only list CPython and PyPy, but no specific PyPy version bounds).
  • Performance characteristics of the embedded libmongocrypt build versus a system-installed build.
Same gist for agents: .md · .json

What it is and what it does

PyMongoCrypt is a Python wrapper around libmongocrypt that implements client-side field-level encryption (CSFLE) for MongoDB. It uses cffi to bind to the native libmongocrypt library and cryptography for cryptographic operations, allowing developers to encrypt sensitive data on the client before sending it to MongoDB.

The package is designed to integrate with MongoDB drivers to provide transparent encryption at the field level. It ships pre-built wheels for macOS, Windows, and manylinux platforms that include an embedded libmongocrypt build, reducing setup friction. For source installations or older pip versions, you must manually install libmongocrypt and point PyMongoCrypt to it via the PYMONGOCRYPT_LIB environment variable. The package supports modern Python versions and is actively maintained by MongoDB.

Use it for

  • Encrypt sensitive fields in MongoDB documents before transmission to comply with data protection regulations.
  • Implement field-level encryption in MongoDB driver applications without modifying application-level encryption logic.
  • Integrate client-side encryption into PyMongo or other MongoDB drivers for automatic field encryption/decryption.
  • Protect personally identifiable information (PII) or financial data stored in MongoDB with transparent client-side encryption.
  • Build multi-tenant applications where each tenant's data is encrypted with tenant-specific keys.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need client-side encryption for MongoDB.

The package is production-stable, actively maintained, and has no known vulnerabilities. Install friction is moderate due to libmongocrypt dependency, but pre-built wheels eliminate most setup overhead on common platforms. Apache 2.0 licensing poses no restrictions. Verify that your platform is supported by the pre-built wheels or plan for manual libmongocrypt installation.

Install

pymongocrypt on PyPI

Before you install

Medium install friction due to platform-specific wheels (macOS, Windows, manylinux) and a compiled dependency on libmongocrypt. Wheels are provided for common platforms, but source installation requires manual libmongocrypt setup. Package is actively maintained with recent releases.

libmongocrypt must be installed on your system or available via PYMONGOCRYPT_LIB environment variable; wheel installations on macOS, Windows, and manylinux include an embedded build, but source installs require manual setup.

License in practice

Apache License 2.0 is permissive; you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include a copy of the license and document any changes.

Quickstart

pip install pymongocrypt
import pymongocrypt
print(pymongocrypt.libmongocrypt_version())

Verify before relying

  • Whether the package works with PyPy3.9+ as stated in the description (classifiers only list CPython and PyPy, but no specific PyPy version bounds).
  • Performance characteristics of the embedded libmongocrypt build versus a system-installed build.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependencies
4 packages
cfficryptographyhttpxpackaging
MaintenanceActively maintained 71 days since the last release
Last repo commit
First released
Downloads1,284,344 / month, #4,112 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Database

Evidence: pymongocrypt-1.18.1-py3-none-macosx_11_0_universal2.whl; pymongocrypt-1.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl; pymongocrypt-1.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; pymongocrypt-1.18.1-py3-none-win_amd64.whl

Tags

Capabilities
mongodb client-side encryptionpymongo encryption bindingslibmongocrypt python wrappermongodb csfle supportencrypted mongodb drivermongo field-level encryptionclient-side field encryption
Topics
encryptionmongodbcsfle
PyPI keywords
bsonmongomongocryptmongodbpymongopymongocrypt

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mongodb client-side encryption”

  • pymongocryptPyMongoCrypt provides Python bindings for libmongocrypt, enabling…
  • pymongoPyMongo is the official MongoDB Python driver, providing synchronous…
  • dynamodb-encryption-sdkEncrypts and decrypts DynamoDB items client-side before transmission,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also pymongo · pymongo-auth-aws · Flask-PyMongo · pymongo_inmemory · bson · mongomock · pymongoexplain · pymongo-search-utils · mongoengine · motor