Skip to main content

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

Project description

entei-core

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

For EnteiDataFrame and connection helpers, install the umbrella package entie.

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.1.0.tar.gz (3.0 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.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: entei_core-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c9e6264fbd6f1efe9ea696b17ab862e84fb69254f6b911acb591e0a48722389e
MD5 76354ea7695aeefbd0f24aa251d61dcc
BLAKE2b-256 f8c07b60c79f32ff208e420d8874353ccb7a95f5097ed8a4a5436695c2706512

See more details on using hashes here.

File details

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

File metadata

  • Download URL: entei_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b945ac4561253c526cc52fe9f4cb2b6d523fe7efcc5e0a30dea69a7f6100acdf
MD5 da0dc7274674f55a5083cc9d49ddfb3d
BLAKE2b-256 bd0ed6e6f1b071b4d15a0a1ee02852d1fcda5b3f4ea456b0eeee863025bf2bc3

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