Skip to main content

MongoDB table helpers on entei-core — PyMongo only, no pydantable-native

Project description

entie

PyPI version Python versions

MongoDB table helpers on entei-core: connect, EntieDatabase / EntieMongoClient, EnteiDataFrame, Records, and col / lit / column.

Aligned with moltres ergonomics (connect, table, Records.insert_into) for document databases — no pydantable-native.

Install

pip install entie

From the monorepo:

pip install -e ../entei-core
pip install -e .

Features

  • connect — PyMongo entrypoint; ENTIE_URI when uri is omitted (like MOLTRES_DSN).
  • EntieDatabase.table / .collection — access a collection; tables() lists names.
  • EnteiDataFrame — lazy read + filter_rows + select + collect (pure Python).
  • Records.from_list(..., database=db).insert_into("name") — bulk insert (moltres-style).
  • Re-exports MongoRoot and materialization helpers from entei-core.

Example

from entie import EnteiDataFrame, Records, connect

db = connect("mongodb://localhost:27017", database="app")

Records.from_list([{"x": 1}], database=db).insert_into("items")

df = EnteiDataFrame.from_collection(db.table("items"), fields=("x",))
df.collect(as_lists=True)  # {"x": [1]}  (+ Mongo _id if fields not fixed)

License

MIT

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

entie-0.2.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

entie-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for entie-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1ea365c0ff74ee4e4803e393056abb31e63bbcf51cede41d402f71846be3ef7f
MD5 0140093b4b82db767415f741de795565
BLAKE2b-256 f40a4d6e2834aa8861a502298c5e3bf6596986367aebf10ce3a96fa5c95a293f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for entie-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1b58c2c4644c8ff329629efacc531b1015186564cc7e72e8a2f311d2be39514
MD5 2a0f19a9a90377637ff111faf25ea5ab
BLAKE2b-256 938d17ef17e44ac4d3c580253f006b9e505747309e3dc984dc74a98bcd6e1611

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