Skip to main content

mongo_emb

install

 pip install mongo_emb

embed mongodb implemented by rust with python api

from mongo_emb import PyMongoEmb

db = PyMongoEmb("db23")
col = db['test']
data = [{"foo": "ba", "titi": "kpkp"}]
col.insert_one(data[0])
print(col.len())
col.update_one({"_id": '68f73fe7790a4a5d60d08dba'}, {"$set": {"xx": 12}}, upsert=True)
for i in col.find({}):
    print (i)
col.delete_one({'titi': 'kpkp'})

print(col.len())

Current methods supported for collection

  • delete_one
  • delete_many
  • find
  • find_one
  • insert_many
  • insert_one
  • len
  • name
  • update_many (with upsert option)
  • update_one (with upsert option)
  • aggregate

embed kv store implemented by rust redb with python api

from mongo_emb import PyRedb

db = PyRedb("./test.rdb", "test")
db.write("foo", "xxx")
db.read("foo")
db.keys()
db.delete("foo")

Release files for mongo-emb 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongo-emb 1.0.4
File Size Uploaded
mongo_emb-1.0.4.tar.gz 16.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mongo-emb 1.0.4
File Interpreter ABI Platform
mongo_emb-1.0.4-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
mongo_emb-1.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details

Total release size: 8.5 MB

Release files / mongo_emb-1.0.4.tar.gz

Download URL mongo_emb-1.0.4.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
970ab253a1f881e34dd4253347d350c4a84d1ac197f7494a88e27b957c1bee52
BLAKE2b-256 checksum
How to use checksums
c9cac6d403a330177d2a26ba77febea3ac307c1d432e14e35b0f8c4521aa45bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / mongo_emb-1.0.4-cp38-abi3-win_amd64.whl

Download URL mongo_emb-1.0.4-cp38-abi3-win_amd64.whl
Size 4.0 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2298697cc7c2875c2ae4fae3546f76eb4f4b1667ac5ce22ea8a7dae64fd6109e
BLAKE2b-256 checksum
How to use checksums
b6297d09b7ea5d20b9bfeef2037b67210e506bb5e96a40230e2ca30c92f05871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / mongo_emb-1.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL mongo_emb-1.0.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.5 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f29d42da7f753184357332ccfebe68c92b598d532e2c2811d15d61dd6aa574c0
BLAKE2b-256 checksum
How to use checksums
d3e7b4d0ea6fe085711a33f073657e0095af51a44f6356dba859e4e9e0a46207
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

1.0.4 This release

3 release files

1.0.2

3 release files

1.0.0

3 release files

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