Skip to main content

MongoDB root materialization to columnar dicts (PyMongo; pydantable-protocol only).

Project description

entei-core

PyPI version

Lightweight MongoDB root helpers: MongoRoot wraps a PyMongo collection; mongo_root_to_column_dict / materialize_root_data turn it into columnar dict[str, list].

Depends on pydantable-protocol, PyMongo, and typing-extensions only (no native Rust stack).

Use case Package
Columnar materialization only, minimal deps entei-core (this package)
connect, EnteiDataFrame, Records, expressions Install entie (PyPI) — it depends on entei-core

Install

pip install entei-core

From the monorepo (editable):

pip install -e ./packages/entei-core

Quick example

import mongomock
from entei_core import MongoRoot, mongo_root_to_column_dict

client = mongomock.MongoClient()
coll = client.db.items
coll.insert_many([{"x": 1}, {"x": 2}])

cols = mongo_root_to_column_dict(MongoRoot(coll))
assert cols == {"x": [1, 2]}

Versioning

Track pydantable-protocol minor lines you test against (see pydantable’s VERSIONING docs).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entei_core-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entei_core-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file entei_core-0.2.0.tar.gz.

File metadata

  • Download URL: entei_core-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for entei_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fb8800ecd785dc89d4898ccda3a933e335c79832f07c0a2f167a649f57e6477c
MD5 dfe80d297597c39d9ebc156396b9e8d7
BLAKE2b-256 84464883607112ac1d3030c782b33a1815cebce36dde3711bdd97aac7e5bb262

See more details on using hashes here.

File details

Details for the file entei_core-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: entei_core-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for entei_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 183d534d9cb4198e8fc68aa2143bb0100911646900ebbc69fe2e239bf073bb60
MD5 9e7cfb814c3046159278255914f6cbf1
BLAKE2b-256 ece5a27440c7c4efce20a0479cc50fcbbb8496713e8600c2488d9b7ad9620a68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page