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)
>>> 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

Development Install

See the instructions on Read the Docs.

Documentation

Full documentation is available on Read the Docs.

Metadata

Release files for pymongoarrow 0.3.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 0.3.0
File Size Uploaded Provenance Actions
pymongoarrow-0.3.0.tar.gz 18.5 kB Without provenance Details for pymongoarrow-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pymongoarrow 0.3.0
File Actions
pymongoarrow-0.3.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pymongoarrow-0.3.0-cp310-cp310-win_amd64.whl
pymongoarrow-0.3.0-cp310-cp310-manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.3.0-cp310-cp310-manylinux2014_x86_64.whl
pymongoarrow-0.3.0-cp310-cp310-manylinux2010_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.3.0-cp310-cp310-manylinux2010_x86_64.whl
pymongoarrow-0.3.0-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for pymongoarrow-0.3.0-cp310-cp310-macosx_10_15_x86_64.whl
pymongoarrow-0.3.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for pymongoarrow-0.3.0-cp39-cp39-win_amd64.whl
pymongoarrow-0.3.0-cp39-cp39-manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.3.0-cp39-cp39-manylinux2014_x86_64.whl
pymongoarrow-0.3.0-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.3.0-cp39-cp39-manylinux2010_x86_64.whl
pymongoarrow-0.3.0-cp39-cp39-macosx_10_15_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.15+ x86-64 Details for pymongoarrow-0.3.0-cp39-cp39-macosx_10_15_x86_64.whl
pymongoarrow-0.3.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for pymongoarrow-0.3.0-cp38-cp38-win_amd64.whl
pymongoarrow-0.3.0-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.3.0-cp38-cp38-manylinux2014_x86_64.whl
pymongoarrow-0.3.0-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.3.0-cp38-cp38-manylinux2010_x86_64.whl
pymongoarrow-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for pymongoarrow-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl
pymongoarrow-0.3.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for pymongoarrow-0.3.0-cp37-cp37m-win_amd64.whl
pymongoarrow-0.3.0-cp37-cp37m-manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.3.0-cp37-cp37m-manylinux2014_x86_64.whl
pymongoarrow-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl
pymongoarrow-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 Details for pymongoarrow-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl

Total release size: 196.7 MB

Release files / pymongoarrow-0.3.0.tar.gz

Download URL pymongoarrow-0.3.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
71984d181cc80aea9daae91b4c9c3791d7cc137de7fbb757cae45d37d512d4be
BLAKE2b-256 checksum
How to use checksums
63424f265539d08581119d8dc6932d62efe638595ec3280e96707fb100ac9141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp310-cp310-win_amd64.whl
Size 7.6 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
cee90fab8b4051d36418085fe96144103e0b67cbd00d5232d26c452452b29b23
BLAKE2b-256 checksum
How to use checksums
7d701e7251d3a043a65a70f1c81164aca19ca84c6957a6c47ae06592019f0de8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp310-cp310-manylinux2014_x86_64.whl
Size 15.9 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5f230a6c55dca9e5a2c6190662a72e189c3e2dc94e5627cdfa587ddd9fcba33e
BLAKE2b-256 checksum
How to use checksums
bac2015600f4ab184b5062867a811a675aed3667b110cc4ebeeb647ef45eef21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp310-cp310-manylinux2010_x86_64.whl

Download URL pymongoarrow-0.3.0-cp310-cp310-manylinux2010_x86_64.whl
Size 15.0 MB
Tags CPython 3.10 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
a04ebc004367f0fd9923b40c035ebd00e6cba18d3a2f6d41953a7a124938d34a
BLAKE2b-256 checksum
How to use checksums
29ef26390af76aa0fc44431abf6c3cd85701a657c177a27affbaa6cde9b17284
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp310-cp310-macosx_10_15_x86_64.whl

Download URL pymongoarrow-0.3.0-cp310-cp310-macosx_10_15_x86_64.whl
Size 10.7 MB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
cfcb688c568e2bd72b0bf02b27b6fb70d91133fa9dde84c40e42339b4a7cd811
BLAKE2b-256 checksum
How to use checksums
5ede81276b7bef90b719234529675faa81e515ed03d0c6a7a4f4fb48aa019299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp39-cp39-win_amd64.whl
Size 7.6 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
3d192eb997f1e9d0abca3f6497a450bc7274bdf81885328272f50580109443f9
BLAKE2b-256 checksum
How to use checksums
00aef03a3ea61e083c3d7fb084e2cf6ccbd81faefcc8c3edede202374bb29d45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp39-cp39-manylinux2014_x86_64.whl
Size 15.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3d2743a5955b845c716ac4be61ae1400b4e1d0a2fcd58a0c4e19c6a469e3375c
BLAKE2b-256 checksum
How to use checksums
ee0dfa4ea0e2b43c1483f2bf74f2dd43632535374791e9934d2df88f26b8493a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp39-cp39-manylinux2010_x86_64.whl

Download URL pymongoarrow-0.3.0-cp39-cp39-manylinux2010_x86_64.whl
Size 15.0 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
eee6a4c33dc2e8c5082f40ab4f31fba221c9f438b955a9c9ea9087b7e51f5436
BLAKE2b-256 checksum
How to use checksums
74d153ddf9110046da18a53fc694b1ac6f9536557a521a4cba1232b402a313f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp39-cp39-macosx_10_15_x86_64.whl

Download URL pymongoarrow-0.3.0-cp39-cp39-macosx_10_15_x86_64.whl
Size 10.7 MB
Tags CPython 3.9 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
46eef53fd2c151189e4ac138b55f30e0827e79dff38f0ded1173b0614fdb41eb
BLAKE2b-256 checksum
How to use checksums
cdc86c565fceea9eaa7580356c0b17dab37a48c833c956c6919fe4982ec218b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp38-cp38-win_amd64.whl
Size 7.6 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
09000e5bbb5cd59fffdf9b493065bc6b017a0b094652829fbf2cc42ee9549ffa
BLAKE2b-256 checksum
How to use checksums
c6c656361bcfad9928024ff3c9103a1f5912976f241077375ad0ec7b3c0f5382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp38-cp38-manylinux2014_x86_64.whl
Size 15.9 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
db21ebd6dcc3b044db916167d78412127c49110265159584cfe0f2d898332605
BLAKE2b-256 checksum
How to use checksums
6e8462392509a1fc556a4cda2068f0642615ad36f0d9f8dd60c36ed6c047a78c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp38-cp38-manylinux2010_x86_64.whl

Download URL pymongoarrow-0.3.0-cp38-cp38-manylinux2010_x86_64.whl
Size 15.1 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
73108c553bcd761994385f1d4d8d1da248674b49ea7560c6728ccc3489487e3a
BLAKE2b-256 checksum
How to use checksums
e538022daf91c421a71776a146239ff2461360776b39c8bbd0e285f558a3cc95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

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

Download URL pymongoarrow-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Size 10.7 MB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
8c7c96ce600c2f1a40e9ce2b6190c7da17835f94b297662d76d6713b21339bc9
BLAKE2b-256 checksum
How to use checksums
f69ab5ee456d6d0c7f355c807f8b033ccb3804b28874b4d2d6243c638cb8debe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp37-cp37m-win_amd64.whl

Download URL pymongoarrow-0.3.0-cp37-cp37m-win_amd64.whl
Size 7.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
ae0e00fa8fb82e792378ac08625e64bca8b116f832c621ce12c028e8b91058fe
BLAKE2b-256 checksum
How to use checksums
bde98267645fde9e2beea924141267d1204847484b32049ab81ba94e03888941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp37-cp37m-manylinux2014_x86_64.whl

Download URL pymongoarrow-0.3.0-cp37-cp37m-manylinux2014_x86_64.whl
Size 15.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1fe21ad2fb23b49c5a24e5151fc6513692589e420db1bfe6a06fbeebcceb1a5d
BLAKE2b-256 checksum
How to use checksums
ddc616e44270cc1594cf04fcb5c4321c640e8cfb120cf704c986cff2e8532451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl

Download URL pymongoarrow-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl
Size 15.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
d561b292d5a27b16a09ded889ba14f0a5c0050373cbbb60c7617a073d5ba862d
BLAKE2b-256 checksum
How to use checksums
4cb861971e7fe6509c243ecb907c3a9ed17e849843e084342a4723e593eca756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pymongoarrow-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl

Download URL pymongoarrow-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
Size 10.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
37b69cf59926167951b20ad5045d5bb9fdbc1a7e741480d308e00f3e6a8d6358
BLAKE2b-256 checksum
How to use checksums
536381e87f057ecd8fb85d851732767dc809d318f0c741b889e5fe430d64d3c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for pymongoarrow 0.3.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

0.3.0 This release

17 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