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

PyMongoArrow wheels are available for macOS and Linux on x86_64 architectures.

Documentation

Full documentation is available on Read the Docs.

Metadata

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

Built distributions (wheels)

Table of built distributions (wheels) for pymongoarrow 0.1.1
File Actions
pymongoarrow-0.1.1-cp39-cp39-manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.1.1-cp39-cp39-manylinux2014_x86_64.whl
pymongoarrow-0.1.1-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.1.1-cp39-cp39-manylinux2010_x86_64.whl
pymongoarrow-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.14+ x86-64 Details for pymongoarrow-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl
pymongoarrow-0.1.1-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.1.1-cp38-cp38-manylinux2014_x86_64.whl
pymongoarrow-0.1.1-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
pymongoarrow-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details for pymongoarrow-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl
pymongoarrow-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl
pymongoarrow-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
pymongoarrow-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 Details for pymongoarrow-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
pymongoarrow-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details for pymongoarrow-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl
pymongoarrow-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details for pymongoarrow-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
pymongoarrow-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 Details for pymongoarrow-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl

Total release size: 7.7 MB

Release files / pymongoarrow-0.1.1.tar.gz

Download URL pymongoarrow-0.1.1.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e2d210b846f2c7d381c48c1c2db8883519bd34b7423af891dbba73e1f3b97dcb
BLAKE2b-256 checksum
How to use checksums
27f57f3811d4aa691096421fa721cffa3e47cfbb500790bde4085a9f63c33f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp39-cp39-manylinux2014_x86_64.whl
Size 888.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1434c93a5af68d16f78a41d28a97c84d6071f978279dbc4f63622e816c12494a
BLAKE2b-256 checksum
How to use checksums
1eaab2600236fb8508658bb787565aebcba8a9a45a0b7cf5f9f129a532c7ce75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp39-cp39-manylinux2010_x86_64.whl
Size 851.6 kB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
4b251de97f66c005803fd4c3a042e0e9dc114ddc5ca72f380c50fec5f3180de1
BLAKE2b-256 checksum
How to use checksums
f213cd786f367bef94625cb94b06436a5ef7334c941977cb343b39a1f8b23e3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl
Size 188.3 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
9fb9cf2f9ac03961c874a02c55b7b2d40b4976056c70722ff2036299baf0535d
BLAKE2b-256 checksum
How to use checksums
bbae7abf8d38bfbe4bdf06cb2a7c2da3a3e9022558ca9ece1c8bf039ea1e17a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp38-cp38-manylinux2014_x86_64.whl
Size 897.1 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
07eacd70cd23d4ae94bc98deb2ff5432908c2c6d6515f64621a2fcfbc1d1e84c
BLAKE2b-256 checksum
How to use checksums
688a89cc994dd6a09e9063e739dd486d91b86b49ad6a5019be39a38ea992bb80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
Size 863.8 kB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
346db1405651b243a3a0be445b7328ee5a53c6a29d6f92a091b131df3c2604a9
BLAKE2b-256 checksum
How to use checksums
f4bf77c4bd9fe5f22ac73cd20b5103185c9bee553944f1d10d6afb29cb577ac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Size 187.7 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
b78c4a839796baa143a9704be45203d2c9e9abe02e9ed5dd8b8bb243ff97ff83
BLAKE2b-256 checksum
How to use checksums
76c22474a7e0c60ccb47161437e2da9cbfb66e4971830d38f51a12347b2732e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl
Size 890.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
41378dcf5cb366705e14c33bb8c8ed745b5bd5de672670c9db2927dfe8123c61
BLAKE2b-256 checksum
How to use checksums
bd7ac755685e31284ac8d9b369835ce204356f7b210591eeb6f033b74f4cf9fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
Size 837.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
8d7c435e90ea1fe55f6296d5b5cd8e376f8da6f4e2306d9061e442f3069b7442
BLAKE2b-256 checksum
How to use checksums
f222c6cce8eafe23977c89ed7b2de1f9a8a98690fa8e41d1f333b299b164c218
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

Download URL pymongoarrow-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
Size 186.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
e5673595342e7e58f509203729c2f4da53857bba152cdada2888a93f3ec1e605
BLAKE2b-256 checksum
How to use checksums
708418b41056c09d1b0431f1d87aba8c0eacddf22fc7cbf7745c5d6c53b210ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

Release files / pymongoarrow-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl

Download URL pymongoarrow-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl
Size 891.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3571df29cdd50ab247a5645539b0470c55917ef5ba1aa88e8418aa8945bb0870
BLAKE2b-256 checksum
How to use checksums
5664bd8185a13cbd663900dad3b2c1771e9589097842cc52b6e3fb02be48922d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

Release files / pymongoarrow-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl

Download URL pymongoarrow-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
Size 837.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
c0f6047b8ecf2cb309bb69aa37efb72cebacc2d1c5e173ee06f47c436c9c69d7
BLAKE2b-256 checksum
How to use checksums
d71d2988a04df5d8ad8160ff665e3aa6ecc72c06b3bd6206c7b726af475f2050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

Release files / pymongoarrow-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl

Download URL pymongoarrow-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
Size 188.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
11382b0a91d49955442aedb9bb1fc294ed4be109cfeba7eacfcdb2374d8099ab
BLAKE2b-256 checksum
How to use checksums
2c82e45c9782f70cb4fcc8959f1c32208892d2c2ac61b40714a90ff8be8b21a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

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

0.1.1 This release

13 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