MongoDB table helpers on entei-core — PyMongo only, no pydantable-native
Project description
Entie
MongoDB helpers on entei-core — PyMongo plus column materialization. This package does not use pydantable-native or the pydantable Rust executor.
Install
pip install entie
From the monorepo (install core first, then entie):
pip install -e ./packages/entei-core
pip install -e ./packages/entie
Quick start
from entie import EnteiDataFrame, connect
db = connect("mongodb://localhost:27017", database="app")
coll = db.collection("items")
coll.insert_many([{"x": 1}, {"x": 2}])
df = EnteiDataFrame.from_collection(coll)
assert df.collect(as_lists=True)["x"] == [1, 2]
filtered = df.filter_rows(lambda r: r.get("x", 0) > 1).select("x")
assert filtered.collect(as_lists=True) == {"x": [2]}
Connection string can be omitted if ENTIE_URI is set (similar to MOLTRES_DSN for moltres).
What this package provides
connect—EntieMongoClient/EntieDatabasewrappersEnteiDataFrame— lazy view;collect,filter_rows,select(pure Python)- Re-exports
MongoRootand materialization helpers from entei-core col,lit,column— lightweight helpers
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entie-0.1.0.tar.gz.
File metadata
- Download URL: entie-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b645f42e094abb2fbfa186af3231aeefbb212f2a4d3e7cda6c960c7a4c39ce0
|
|
| MD5 |
43a0b4379179516bf90bd77f3eb6a369
|
|
| BLAKE2b-256 |
7945e7ba3d26acf34aac40fd95484440648ba95b6173e8696e44265186c29d92
|
File details
Details for the file entie-0.1.0-py3-none-any.whl.
File metadata
- Download URL: entie-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a49bf9912b2808ed1edebd41e67bf5515b7911d0f26485b3f399167cf6609e6c
|
|
| MD5 |
e4d420287ea943fe429675643fdddf07
|
|
| BLAKE2b-256 |
26d3fe8cd99e6cf43b2eafd0ba769f0fe452adca1f091edf5b9808c05edd9bcc
|