Skip to main content

PyMongoArrow

Info:

A companion library to PyMongo that makes it easy to move data between MongoDB and Apache Arrow. See GitHub for the latest source.

Documentation:

Available at mongo-arrow.readthedocs.io.

Author:

Prashant Mital

PyMongoArrow is a companion library to PyMongo that contains tools for loading MongoDB query result sets as Apache Arrow tables, Pandas DataFrames or NumPy arrays.

>>> from pymongoarrow.monkey import patch_all
... patch_all()
... from pymongoarrow.api import Schema
... schema = Schema({"_id": int, "qty": float})
... from pymongo import MongoClient
... client = MongoClient()
... client.db.data.insert_many(
...     [{"_id": 1, "qty": 25.4}, {"_id": 2, "qty": 16.9}, {"_id": 3, "qty": 2.3}]
... )
... data_frame = client.db.test.find_pandas_all({}, schema=schema)
... data_frame
   _id   qty
0    1  25.4
1    2  16.9
2    3   2.3
... arrow_table = client.db.test.find_arrow_all({}, schema=schema)
# The schema may also be omitted
... arrow_table = client.db.test.find_arrow_all({})
... arrow_table
pyarrow.Table
_id: int64
qty: double
... ndarrays = client.db.test.find_numpy_all({}, schema=schema)
... ndarrays
{'_id': array([1, 2, 3]), 'qty': array([25.4, 16.9,  2.3])}

PyMongoArrow is the recommended way to materialize MongoDB query result sets as contiguous-in-memory, typed arrays suited for in-memory analytical processing applications.

Installing PyMongoArrow

PyMongoArrow is available on PyPI:

$ python -m pip install pymongoarrow

To use PyMongoArrow with MongoDB Atlas’ mongodb+srv:// URIs, you will need to also install PyMongo with the srv extra:

$ python -m pip install 'pymongo[srv]' pymongoarrow

To use PyMongoArrow APIs that return query result sets as pandas DataFrame instances, you will also need to have the pandas package installed:

$ python -m pip install pandas

Note: pymongoarrow is not supported or tested on big-endian systems (e.g. Linux s390x).

Development Install

See the instructions on Read the Docs.

Documentation

Full documentation is available on Read the Docs.

Metadata

Release files for pymongoarrow 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymongoarrow 1.1.0
File Size Uploaded Provenance Actions
pymongoarrow-1.1.0.tar.gz 46.8 kB Without provenance Details for pymongoarrow-1.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pymongoarrow 1.1.0
File Actions
pymongoarrow-1.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pymongoarrow-1.1.0-cp311-cp311-win_amd64.whl
pymongoarrow-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for pymongoarrow-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
pymongoarrow-1.1.0-cp311-cp311-manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for pymongoarrow-1.1.0-cp311-cp311-manylinux2014_aarch64.whl
pymongoarrow-1.1.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for pymongoarrow-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
pymongoarrow-1.1.0-cp311-cp311-macosx_10_14_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.14+ x86-64 Details for pymongoarrow-1.1.0-cp311-cp311-macosx_10_14_x86_64.whl
pymongoarrow-1.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pymongoarrow-1.1.0-cp310-cp310-win_amd64.whl
pymongoarrow-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for pymongoarrow-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
pymongoarrow-1.1.0-cp310-cp310-manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for pymongoarrow-1.1.0-cp310-cp310-manylinux2014_aarch64.whl
pymongoarrow-1.1.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for pymongoarrow-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
pymongoarrow-1.1.0-cp310-cp310-macosx_10_14_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.14+ x86-64 Details for pymongoarrow-1.1.0-cp310-cp310-macosx_10_14_x86_64.whl
pymongoarrow-1.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for pymongoarrow-1.1.0-cp39-cp39-win_amd64.whl
pymongoarrow-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details for pymongoarrow-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
pymongoarrow-1.1.0-cp39-cp39-manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details for pymongoarrow-1.1.0-cp39-cp39-manylinux2014_aarch64.whl
pymongoarrow-1.1.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for pymongoarrow-1.1.0-cp39-cp39-macosx_11_0_arm64.whl
pymongoarrow-1.1.0-cp39-cp39-macosx_10_14_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.14+ x86-64 Details for pymongoarrow-1.1.0-cp39-cp39-macosx_10_14_x86_64.whl
pymongoarrow-1.1.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for pymongoarrow-1.1.0-cp38-cp38-win_amd64.whl
pymongoarrow-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details for pymongoarrow-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
pymongoarrow-1.1.0-cp38-cp38-manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details for pymongoarrow-1.1.0-cp38-cp38-manylinux2014_aarch64.whl
pymongoarrow-1.1.0-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for pymongoarrow-1.1.0-cp38-cp38-macosx_10_14_x86_64.whl

Total release size: 14.7 MB

Release files / pymongoarrow-1.1.0.tar.gz

Download URL pymongoarrow-1.1.0.tar.gz
Size 46.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9dd8f69573fef9e8d71d589a74361bbe7c8ac4f0d5f552589eaf52071ae19640
BLAKE2b-256 checksum
How to use checksums
4471acf44b45e425125d2df4377e54be524ba9c9b6e0e6dfd8bfd4ee0ecd3b8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp311-cp311-win_amd64.whl

Download URL pymongoarrow-1.1.0-cp311-cp311-win_amd64.whl
Size 227.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8cf26f0f0c51e67e943248c57428dad7de456ee8631d1af9cf0192f7423fa830
BLAKE2b-256 checksum
How to use checksums
80ecacc3ed90f48154ce13a50500c990f1d0702e704034879dc4169d6df7f402
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pymongoarrow-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 1.5 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1a3284ea4a70e046ac09f6e1e6eed3db14b206a19d4660987b3c6fc8b0fff3a1
BLAKE2b-256 checksum
How to use checksums
1dc15299e0315bb8d08b5634e55edbeb7de68fa8eac0313e1a121a81c16b49dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp311-cp311-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.1.0-cp311-cp311-manylinux2014_aarch64.whl
Size 1.5 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4266f2f2d07cf192c22db217e02863609813d3f6a2aa6323fc9b61f868dca318
BLAKE2b-256 checksum
How to use checksums
b22baa45b11495ce7ccd31f950bf48afa4493cc53ab94835e07dc66c69ef5b03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL pymongoarrow-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Size 267.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d969f64791b8e0baebb9e5907562641d5e4913a80de8ec362703b969c964590a
BLAKE2b-256 checksum
How to use checksums
125b6e608026c88f980fe205ce1072211bc72cf2e45d83b510a4ca656e21f79d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp311-cp311-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.1.0-cp311-cp311-macosx_10_14_x86_64.whl
Size 282.3 kB
Tags CPython 3.11 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
c0c668ae2f0eaf5342dc3ed3551d3cda7f4363b76e99e96c890cea17de554ea7
BLAKE2b-256 checksum
How to use checksums
2d29ff6be5be77eccf966f24b9535be6625113678a538a440704a8a7a6211d03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp310-cp310-win_amd64.whl

Download URL pymongoarrow-1.1.0-cp310-cp310-win_amd64.whl
Size 227.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
b4f004d255fe913314af0124be1d4cde70e31ff340ef8c5e5b6027b461df9989
BLAKE2b-256 checksum
How to use checksums
329ec2850c4b4c0d4bea695f29d4d929bd816872f10ada64f363b5e373c7a3e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL pymongoarrow-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e432894bd08ba36807e2def4c4b3047d7aaa2c93e85f71211d13cc14bf1f9c12
BLAKE2b-256 checksum
How to use checksums
a016ac4653950aa490dc0f43c104c4cad08b83d324734dccec4f29ffe50ccbd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp310-cp310-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.1.0-cp310-cp310-manylinux2014_aarch64.whl
Size 1.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
af4a0751f289628a0ceaaceb9b9b6ab2d8d795374d3ecb0743d8a48553e10de9
BLAKE2b-256 checksum
How to use checksums
8a5d4c5cbe9ba8f31fdc8459c3c7e496c1af69c343eb1d8a3f49da7bde308066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL pymongoarrow-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Size 266.6 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ab1e83f47190fac1e73c93f5473fefd621b472c4e1fbb0b477bbf90bec0474e1
BLAKE2b-256 checksum
How to use checksums
ed24016ea7880a522e2575e33f141d383b5cb033bfd6f71c3eaee32d7594742a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp310-cp310-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.1.0-cp310-cp310-macosx_10_14_x86_64.whl
Size 281.3 kB
Tags CPython 3.10 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
a8523b0710627d9dcc3fd8185db1de1f7ac7081a56ac94d1dffd78c54bedbfd1
BLAKE2b-256 checksum
How to use checksums
a957d6297ef0e97267f2c36a7dd238a8ac70a37fd7948ba17cb011746b4d38de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp39-cp39-win_amd64.whl

Download URL pymongoarrow-1.1.0-cp39-cp39-win_amd64.whl
Size 227.2 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
7f86e79b24af652cd5e9f80dfb779e4ef6e3d1b9cfe05fd23af703dc48af1efd
BLAKE2b-256 checksum
How to use checksums
0d683f3feb1554abb308983826d719dc4bb5529a24f186d82fdcb45db838d5c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl

Download URL pymongoarrow-1.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
901550e175545a6f86762b06fbd5a133388299554e2448809c5043e2891c11ea
BLAKE2b-256 checksum
How to use checksums
88e20ca04421609aadf502ad28297e6439c75283158879af9ac73d91ac7bcabe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp39-cp39-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.1.0-cp39-cp39-manylinux2014_aarch64.whl
Size 1.5 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
c77162114bcadbc5b9cfd1581b62915cc622dee516edef04eef96b68a60b1085
BLAKE2b-256 checksum
How to use checksums
dcf1d2cae36431beb100ff0d6efd758f01017dffa2419c76f29ef2e93b2110a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL pymongoarrow-1.1.0-cp39-cp39-macosx_11_0_arm64.whl
Size 266.9 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
65f0410818cf13615134722b7e9f93181bb78536f3caede221fcaddb4a5547b8
BLAKE2b-256 checksum
How to use checksums
f3d45523e29b015e3b45ab71f32bdefa0f6ae51ea006f4735b9e41f31124f9fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp39-cp39-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.1.0-cp39-cp39-macosx_10_14_x86_64.whl
Size 281.7 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
92f2e163a82431f7de4952a45ca73d5bf20e4d2f3f1cbe829d89489a7be61b9a
BLAKE2b-256 checksum
How to use checksums
4546d23ea9aa7300ffea18dd89e4ebd04b4d3b0c10b004cb5216347aa7be788e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp38-cp38-win_amd64.whl

Download URL pymongoarrow-1.1.0-cp38-cp38-win_amd64.whl
Size 228.5 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
3cf87c2f047010c2fe34fca41a4daeca7bd40cbde1de01ca3a27e37ec364eb6a
BLAKE2b-256 checksum
How to use checksums
1e46d619ca5f85478dd900cf7e98f780452259ee723b0bfa163423965444cf66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL pymongoarrow-1.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
Size 1.5 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
55a725f5ea0f6402331ae248352ef6eb25ddfa6169259882ceac703a5479582f
BLAKE2b-256 checksum
How to use checksums
f92a5d4da68ffaf972ca9852b533c515748e6eaedc069467aadd7a4d2224d8a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp38-cp38-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.1.0-cp38-cp38-manylinux2014_aarch64.whl
Size 1.5 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
84eb3e35b55e3b8b8b063adc487d3177f37ade1138bf582ea9e3f957bc8bc60b
BLAKE2b-256 checksum
How to use checksums
6346040d9da5d1f4386597888e7686c931d747e9a853fed414582920609dedcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / pymongoarrow-1.1.0-cp38-cp38-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.1.0-cp38-cp38-macosx_10_14_x86_64.whl
Size 282.6 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
192981dcc9925383019ae2ba8f4d3bc6f3bf1532cdeffac319e4554c4b06bd50
BLAKE2b-256 checksum
How to use checksums
e012e250f0486aaa99696104d63f39dac0c5f9839c6b933f49081f3431a82d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for pymongoarrow 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

20 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page