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)
| File | Size | Uploaded | |
|---|---|---|---|
| mongo_emb-1.0.4.tar.gz | 16.0 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|