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

Built distributions (wheels)

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

Total release size: 13.7 MB

Release files / pymongoarrow-1.0.0.tar.gz

Download URL pymongoarrow-1.0.0.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1e5451b4b4dfc376e321a2ae10dbc2bf595344baa3977824eca3cda6b45d0036
BLAKE2b-256 checksum
How to use checksums
66bd86b1c5de24ff235e8295ab38bcd7318aca7eed5eb2055d6808518b3f2ea2
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.0-cp311-cp311-win_amd64.whl

Download URL pymongoarrow-1.0.0-cp311-cp311-win_amd64.whl
Size 205.2 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1f9cb5e19263b5e99fadcac8e8bf5a7b84ee3e21c7897c3970748c0e2fdfc312
BLAKE2b-256 checksum
How to use checksums
a4b226b6edefa3b819188e1cf5cb5ee38faea06c234d50fc6bf470a0daa3b255
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.0-cp311-cp311-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.0-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
76f805efd828314a9b55721db734f2049a01b3444438293f88c175cf12a14932
BLAKE2b-256 checksum
How to use checksums
72a3f9902caa7763f5b5986dfc10ba67330eebee0e48af118aac1d0564e19392
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.0-cp311-cp311-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.0.0-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
a0e0f6e0119364a2bb197e5a59b3d5bb545ee4a8eda1a894911b38a58bba2653
BLAKE2b-256 checksum
How to use checksums
94c477047d597622509b57be186ad81b1ad21727accbf96e79dc912ebcb1647d
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.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL pymongoarrow-1.0.0-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
b6cdc2421ff9eb8312479f3c759cab2b20f23a964a90085c8bee25171098b28c
BLAKE2b-256 checksum
How to use checksums
97175683f50d70513cdcb5154fb002e369226417d2e735bbd8454203df49e835
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.0-cp311-cp311-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.0.0-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
286a2a01b2d60e04d7f429f7975a43959c6c4906acfd97a97d31ad29f2846645
BLAKE2b-256 checksum
How to use checksums
552d4ce58e0259e233e10e390c73ca302049c18976b86db21f392b34a7b81ca8
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.0-cp310-cp310-win_amd64.whl

Download URL pymongoarrow-1.0.0-cp310-cp310-win_amd64.whl
Size 205.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
4eda4595cf9b0419b27460b4ab11a4602f337d4a948edfb69c480c5092e15bcb
BLAKE2b-256 checksum
How to use checksums
756b64c5d9bd12d011dac111a6840d66f897e46285cabd76c6a78b4fca51798c
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.0-cp310-cp310-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.0-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
bd8f24ed35c1f8970efd401c15b87c964af8bbcc0ba33a48de1a5e42bc310a6f
BLAKE2b-256 checksum
How to use checksums
ea4e9f4617c53c5ebe7fb60ddadfd88865bffb9843a0db504d13847fcb18fa18
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.0-cp310-cp310-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.0.0-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
236aea4eb203bf7ba7014ec416f0bb2fb7775424f47b82842d36718450091e99
BLAKE2b-256 checksum
How to use checksums
a6d98309c8b306fb5f31f3649b29d1df901562ba2661bb0e72b850a692cb46dc
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.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL pymongoarrow-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Size 240.4 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b3aaba976f26726c3f82a6f3f023ec86a59b69df96a1265286f922802677d8e2
BLAKE2b-256 checksum
How to use checksums
e8bf029642efac58dbcf750309b72e504c721a308059a34e6210f21a5fc499cb
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.0-cp310-cp310-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.0.0-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
5a192dc9a1067a763bda55a5a856909ea1318a770e15262a462ddb79a83e6bcc
BLAKE2b-256 checksum
How to use checksums
5f5886abf3bee6233bfdcd84966085f06da6039750458f069103ffa968151120
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.0-cp39-cp39-win_amd64.whl

Download URL pymongoarrow-1.0.0-cp39-cp39-win_amd64.whl
Size 206.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
df68b9ca581982edee7e8bd3b8d9ea8f4b02d121f55fa66f15ccf3b0c30384f2
BLAKE2b-256 checksum
How to use checksums
dd24ebc63d18d9141835849cf5593b22f0ba208970f66d0d02270719861819ed
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.0-cp39-cp39-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.0-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
14e9f19f2089aa3259af39c2ef8a40729eb755fe617595636ef246d60dc82885
BLAKE2b-256 checksum
How to use checksums
8c8e4ca4e8088ac2ad2e32d5853e28aac43f3f21ee81f11a2373e4f560143be1
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.0-cp39-cp39-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.0.0-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
c57552703efacb1a6781a7dc340483fb7beef42cc4533381260fa8bd1d68c920
BLAKE2b-256 checksum
How to use checksums
056cd2be3e2ff638131714d0e1aac408aa88b64245f770badc7ef5ff02b4d1f4
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.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL pymongoarrow-1.0.0-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
42a486a5eec900cd3c552abb39cf0f26bf26747b4cb0be1d731d0b1259f88011
BLAKE2b-256 checksum
How to use checksums
ea5caa0bcc1005e4bc4653b3dd7c66be37fbc08109235434546a38f2610be614
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.0-cp39-cp39-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.0.0-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
7a4dbdd1215d418dd1598dcc3b90f94b5034c4950817e90fd8de16d59ad3a9db
BLAKE2b-256 checksum
How to use checksums
1705cbf285a0aa621f150916473d2232121d66750ec59dfd117a820048203df5
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.0-cp38-cp38-win_amd64.whl

Download URL pymongoarrow-1.0.0-cp38-cp38-win_amd64.whl
Size 206.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
6d229eeab1adba8024abab09407da70042087c4a87f98e3179e5814614f5c39a
BLAKE2b-256 checksum
How to use checksums
bc14cae4451cf988ea88dbbfc0b42a55a77cf5b86a4127fb5f88a613c9850673
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.0-cp38-cp38-manylinux2014_x86_64.whl

Download URL pymongoarrow-1.0.0-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
4675118197c562c24ff7241d3a49d7356d2688a81a0af710cbf033cc94491260
BLAKE2b-256 checksum
How to use checksums
478f50d6272ac944c07a190393ee5ba3bbebf359e0d119334298337780acd5d2
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.0-cp38-cp38-manylinux2014_aarch64.whl

Download URL pymongoarrow-1.0.0-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
81c65fc5a656668bf5ee8f2ca60edfc18466e03db8256b29cbe98cae347e70fe
BLAKE2b-256 checksum
How to use checksums
d5641e1d6f67bd6eabed7f2dec105af4a3bf2080336ddb54f1dedb8c02095a71
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.0-cp38-cp38-macosx_10_14_x86_64.whl

Download URL pymongoarrow-1.0.0-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
419b7125c02a8773853e99abeb7d3d3c7ab744af5472c62690fb4b883bdc65fe
BLAKE2b-256 checksum
How to use checksums
9f0098567b765b0292d550a6934725b94e966a22d66563bab2270d03a8d81f8a
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.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.0.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