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.0.1

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.0.1
File Size Uploaded Provenance Actions
pymongoarrow-1.0.1.tar.gz 47.8 kB Without provenance Details for pymongoarrow-1.0.1.tar.gz

Built distributions (wheels)

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

Total release size: 13.7 MB

Release files / pymongoarrow-1.0.1.tar.gz

Download URL pymongoarrow-1.0.1.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
27174da65808cc26cb1329caa384ff8927a6e25b4a2b43c7c778b951a697a735
BLAKE2b-256 checksum
How to use checksums
4b8274f7edfcd3d21472e12760ebdd53b1a40095dcc7dd37d1338e4ba6a581ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp311-cp311-win_amd64.whl
Size 205.2 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1345527614d0f77c39f50f0d207e9d24f1dfa6ff56f6550b2a797189ae25a2e8
BLAKE2b-256 checksum
How to use checksums
309de14e79dac72759b45e2fa2394542b4b2db9b1a044e28c58be03a2f5a46c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pymongoarrow-1.0.1-cp311-cp311-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.1-cp311-cp311-manylinux2014_x86_64.whl
Size 1.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cd9e858ce9a630111efa67e0f976508af024defc756457143fa6fee121fe4ecb
BLAKE2b-256 checksum
How to use checksums
7ba07f909cc5bee507ddcc06718058422fdd46ae19e43df6c9bb057719b8dd7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp311-cp311-manylinux2014_aarch64.whl
Size 1.4 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a472c628078170ba2fa6ae4ca1bb10447842357d7a022a1bbd94cc6d2ee21b67
BLAKE2b-256 checksum
How to use checksums
79924322b25379a6ee30382c51ef94949b7ccc5d75dc7a2de4865b2fc0c23b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Size 240.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
37338e44a2738c1e4e477c225afd4e4680ad46e48140bd8e6a30a430f55ae6a5
BLAKE2b-256 checksum
How to use checksums
eff4b989d829b3259e71f58d2ce54023de213a72cb56397263071ad92a822a43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp311-cp311-macosx_10_14_x86_64.whl
Size 259.0 kB
Tags CPython 3.11 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
0642ecd645e464606e6eed94b3dbdcb9477de0a26f999a335667a0614d1ff591
BLAKE2b-256 checksum
How to use checksums
62411edf4152a6c54e4de6d2bdf3803043a2ad994b752433c9ab5619cda567b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp310-cp310-win_amd64.whl
Size 205.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
7e9267687bc513d9fd2a142afbd2be99c58dc1960027abbaca01508b3220c035
BLAKE2b-256 checksum
How to use checksums
318f80a346d6d4fca025be39c7484edbc52dc6e72bd53cf06290fe77efb63563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pymongoarrow-1.0.1-cp310-cp310-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.1-cp310-cp310-manylinux2014_x86_64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
85637910575af65b7485f6e5505b616f1bd834d24956b93def422d537ff52885
BLAKE2b-256 checksum
How to use checksums
a4a8029b852b53acba0ba7a253ca77ac38ba99558a7df855522ed9d3fa539844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp310-cp310-manylinux2014_aarch64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
579a901c076d0d194a17bdec58dcdf05858f9a45b1588eb480dfb0a6e2ee75fc
BLAKE2b-256 checksum
How to use checksums
a00188a9cc0aab0ce0bf0a968927bd7415e62c3f30476837af3ca5d39bec3c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Size 240.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
03d935738972eb8b97cd6889de7eadd512b3c0c5d6ab092ec60bfb85a885a402
BLAKE2b-256 checksum
How to use checksums
3cae0dc14a637fc5e319029790601d1b31689f69e2e80140ce8625fa1ebc0943
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp310-cp310-macosx_10_14_x86_64.whl
Size 258.7 kB
Tags CPython 3.10 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
a6c78320cf05f1c0634cc8e60eed631681f4cbfd3b81808446dff835684bd708
BLAKE2b-256 checksum
How to use checksums
5a0795cb0b7ca1525cc828eff280aad50bce256bfd46f983eb5012fa643b047a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp39-cp39-win_amd64.whl
Size 206.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
b4ca43a56840f53181dc9f90f3398fb522e62f26f4740683e2a76a8e93342831
BLAKE2b-256 checksum
How to use checksums
317403328f0a41f58412fc1cb6b2141afc077f8f0251a0df39e199c42ddb8f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pymongoarrow-1.0.1-cp39-cp39-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.1-cp39-cp39-manylinux2014_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
114b9a8dacf0756968354527038207f6e6be438153dcf9bc7add93d280eb816b
BLAKE2b-256 checksum
How to use checksums
a12c82f23162b4c9ae57529cff743e321c529ea0a7a7034fb7e973a2ad0b882a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp39-cp39-manylinux2014_aarch64.whl
Size 1.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
376fce64e6512d9d1b7a4ed2b86cc02152b1449b97221e718de918e345593168
BLAKE2b-256 checksum
How to use checksums
1b303cc42d3147346831e2f6d3c9b46b2ffe395a743068787564b5f7aebed545
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp39-cp39-macosx_11_0_arm64.whl
Size 241.8 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3b8bb8e384f86cc9090de8afcd1d1460d0e7570996af0716177c74c674630a17
BLAKE2b-256 checksum
How to use checksums
8c8020a9ecae8476f882a877c56b2454d05aadb3b18e6b904e37784f044e729d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp39-cp39-macosx_10_14_x86_64.whl
Size 260.3 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
bc08c506e9a04a2016c4c89e2da222c5166b229ae132ecf57d39a90036b90deb
BLAKE2b-256 checksum
How to use checksums
052f91245f559a924f07f517dbac438f3ca278a20ab037cf000310dd6429110f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp38-cp38-win_amd64.whl
Size 206.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
55e3b30a5c48121d51f7113b5f2590d0aa3eaf1d54ba238f3532a2ed9604ae2b
BLAKE2b-256 checksum
How to use checksums
7544359b3e5934d077bde9e7b8cccaa15782381a233678bd62261f4656497c32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pymongoarrow-1.0.1-cp38-cp38-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.1-cp38-cp38-manylinux2014_x86_64.whl
Size 1.4 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2f0eb8980edf6074ddd24e00e462b226992f3f1e5a0b3cd70c335ae6c33519fe
BLAKE2b-256 checksum
How to use checksums
a0997122f313b8f0366ede484ad3a3aa517571ed2b5e3a4a6d1b5a44b3ae8aab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp38-cp38-manylinux2014_aarch64.whl
Size 1.4 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b23e091549fd5b1866499c335670c4f173974edc37c219f0115bed9e0ca9493a
BLAKE2b-256 checksum
How to use checksums
6ebd59308ec5e686016767e50b4cb0fafde0722eaddb6c532ce328a2513a9fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

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

Download URL pymongoarrow-1.0.1-cp38-cp38-macosx_10_14_x86_64.whl
Size 259.0 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
07472c13f497681a546af67c7b02c955ed3793bf74bf981bd47fe5d4b77cedb7
BLAKE2b-256 checksum
How to use checksums
7ac9a2c51d5f2ca3eaf8ffce8ae685bb120978e12c140b2b8aa20afdb6b3d2f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for pymongoarrow 1.0.1

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.0.1 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