Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.4.0.dev0

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.4.0.dev0
File Size Uploaded Provenance Actions
pymongoarrow-0.4.0.dev0.tar.gz 30.3 kB Without provenance Details for pymongoarrow-0.4.0.dev0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pymongoarrow 0.4.0.dev0
File Actions
pymongoarrow-0.4.0.dev0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pymongoarrow-0.4.0.dev0-cp310-cp310-win_amd64.whl
pymongoarrow-0.4.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_15_x86_64.whl
pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_13_universal2.whl CPython 3.10 CPython 3.10 macOS 10.13+ universal2 (ARM64, x86-64) Details for pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_13_universal2.whl
pymongoarrow-0.4.0.dev0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for pymongoarrow-0.4.0.dev0-cp39-cp39-win_amd64.whl
pymongoarrow-0.4.0.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_15_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.15+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_15_x86_64.whl
pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_13_universal2.whl CPython 3.9 CPython 3.9 macOS 10.13+ universal2 (ARM64, x86-64) Details for pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_13_universal2.whl
pymongoarrow-0.4.0.dev0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for pymongoarrow-0.4.0.dev0-cp38-cp38-win_amd64.whl
pymongoarrow-0.4.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymongoarrow-0.4.0.dev0-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp38-cp38-macosx_10_15_x86_64.whl
pymongoarrow-0.4.0.dev0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for pymongoarrow-0.4.0.dev0-cp37-cp37m-win_amd64.whl
pymongoarrow-0.4.0.dev0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pymongoarrow-0.4.0.dev0-cp37-cp37m-macosx_10_15_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64 Details for pymongoarrow-0.4.0.dev0-cp37-cp37m-macosx_10_15_x86_64.whl

Total release size: 158.5 MB

Release files / pymongoarrow-0.4.0.dev0.tar.gz

Download URL pymongoarrow-0.4.0.dev0.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
37a003c1e17d439e324d135af66dc74b1d01189d24a40c450d7e65c05111abe4
BLAKE2b-256 checksum
How to use checksums
44802ceebe8cadbfa59cc1ac2bdac2caa16daca379b6119793d164d8ee3e137b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp310-cp310-win_amd64.whl

Download URL pymongoarrow-0.4.0.dev0-cp310-cp310-win_amd64.whl
Size 7.6 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
bc285199a26c61108edc9776561a695e662f0824f6cadef4a5e4fa7872d265b6
BLAKE2b-256 checksum
How to use checksums
030284492ac38125dbdc41050afc4caf629a4bff9c9df3c41cefabadd1e7821b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-cp310-cp310-manylinux_2_17_x86_64.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
c18818411fbfb2ddb4b5cde3c2dc2691e1f0d506de41d2a1521333dc72de8922
BLAKE2b-256 checksum
How to use checksums
697ee141207f3645cc83e279d3831f80c51a635980dba7e05505c5b9de03a73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_15_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-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
2a38f58baa6e2de8494c75fc4cd58ea6835055fadd49557238c47ad181a8343b
BLAKE2b-256 checksum
How to use checksums
c64fce55e1d7220e68c625443eab81ec96c60a762427815187eb26282f48fc5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_13_universal2.whl

Download URL pymongoarrow-0.4.0.dev0-cp310-cp310-macosx_10_13_universal2.whl
Size 10.9 MB
Tags CPython 3.10 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
3c394af4387c21d0dbf28777c3d4d682652b283e3933ca1768d944875162bd2e
BLAKE2b-256 checksum
How to use checksums
a9276f88722130cbad5f8511496e9a3bcccad826521fea7473df671eb2a4d578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp39-cp39-win_amd64.whl

Download URL pymongoarrow-0.4.0.dev0-cp39-cp39-win_amd64.whl
Size 7.6 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
4d729e50922462a65b7b6113b7aaa7e1bf04200191f49cdfd891711b31af4fb8
BLAKE2b-256 checksum
How to use checksums
02bb710214b9f360f2b33d1582c02043b99cc0366a967620ec54ae6bd28483f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-cp39-cp39-manylinux_2_17_x86_64.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
b7d46d19ec2b03d4d3a2faae413df4690a148a0ffccfbabe2bff46df7277fa6d
BLAKE2b-256 checksum
How to use checksums
e6f3916e528e60147e9a17062e234c4a844f94343684a1865a8f8e0733c1dd4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_15_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-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
f0a8f9f340b68ad64679cc48da3c892524c5fd9dc0406544e2e10fa749ceb0a7
BLAKE2b-256 checksum
How to use checksums
b81fb215efd5a1b9c0dec7d9bae750192fe264b4f796fff1d6a28307623ce91c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_13_universal2.whl

Download URL pymongoarrow-0.4.0.dev0-cp39-cp39-macosx_10_13_universal2.whl
Size 10.9 MB
Tags CPython 3.9 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
bc20e15cdb26b1f44310bcf833c9097ac9e8ba31cbd57d57d21bc4c103e7be45
BLAKE2b-256 checksum
How to use checksums
ee74907cde27c3968f5657bfccc4c6c935adb458d984005f03e0c354577b74b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp38-cp38-win_amd64.whl

Download URL pymongoarrow-0.4.0.dev0-cp38-cp38-win_amd64.whl
Size 7.6 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
30276bd0aef857898e1caf68e89b59042e6a7649958d3bac35cc9ec4a5ca20d7
BLAKE2b-256 checksum
How to use checksums
df90c83035f1f2f70bd88e63a008f34876ab98f83dd09efff689319d398324fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-cp38-cp38-manylinux_2_17_x86_64.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
e87381f07365ca05fecead1696aceacdadf54ee9fc4c518746943b423734f842
BLAKE2b-256 checksum
How to use checksums
85995e95ef1a8d9893c90fbaa98aa104459f63bff64edea1790c7041f8f62719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp38-cp38-macosx_10_15_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-cp38-cp38-macosx_10_15_x86_64.whl
Size 10.7 MB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
7e4f0e80895c7d231e39e7d563acf62e505846cdf34a6a411f043dd06d172404
BLAKE2b-256 checksum
How to use checksums
b3d1f4a98a879966ae84f8b64684824937603c5d6e4a4a475b4eeafedb661545
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp37-cp37m-win_amd64.whl

Download URL pymongoarrow-0.4.0.dev0-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
908f3699ddf0975df975cec711539829651ede1d7a9fa69e4d97e2c35fafc4a8
BLAKE2b-256 checksum
How to use checksums
4361538360a36f8c111757c3de4733a0b9feff03331d2d1a53bd107a0ade921e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-cp37-cp37m-manylinux_2_17_x86_64.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
b04dd9af00aebe9ed8a36eb253ae91e2a730803f2b43ecf0e5e16e91092cee61
BLAKE2b-256 checksum
How to use checksums
e8c9dc0db9c2dd5d4d5a57bb1f75ff6c42b5f2642e5ccb45d8637b53bf09b7f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / pymongoarrow-0.4.0.dev0-cp37-cp37m-macosx_10_15_x86_64.whl

Download URL pymongoarrow-0.4.0.dev0-cp37-cp37m-macosx_10_15_x86_64.whl
Size 10.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e3d67a774b7e5944d87401b9cf0e0c449450a10170cb81cc911ebe1cf682267c
BLAKE2b-256 checksum
How to use checksums
16710bbb66725b8dea63663be3bc09285bbb55a455d2af67787a3836408d13ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Security for pymongoarrow 0.4.0.dev0

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