Add your description here
Project description
Py-PoloDB Python Bindings
Overview
This repository contains the Python bindings for the PoloDB project. These bindings allow Python code to interface seamlessly with the PoloDB core functionalities written in Rust.
Installation
python3.9 -m pip install polodb-python
Usage :
>>> from polodb import PoloDB
>>> db = PoloDB("db")
>>> db
<polodb.core.PoloDB object at 0x1001d6a00>
>>> col = db.collection('my-collection')
>>> col
<polodb.core.Collection object at 0x100244d00>
>>> data = [{"foo":"bar", "titi":"kpkp"}, {"lol":"out", "foo":"bar"}]
>>> col.insert_many(data)
{0: '6725102e0c6d6f91b9df53bd', 1: '6725102e0c6d6f91b9df53be'}
>>> col.len()
2
>>> col.find({"lol":"out"})
[{'lol': 'out', 'foo': 'bar', '_id': '6725102e0c6d6f91b9df53be'}]
Current methods supported for collection
- delete_one
- delete_many
- find
- find_one
- insert_many
- insert_one
- len
- name
- update_many
- update_one
- aggregate
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
polodb_python-0.1.9.tar.gz
(32.8 kB
view details)
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 polodb_python-0.1.9.tar.gz.
File metadata
- Download URL: polodb_python-0.1.9.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e0b9f0ef02528e13ef08ca7481ba12de34acab9c062f99a1c31816d17132601
|
|
| MD5 |
ea089af34a5132a1cfd6fa20bb72c0bd
|
|
| BLAKE2b-256 |
bcf5680ae3078473ecc43ab236c3b5a32b7e28aa834e0b6ea65dedf4734e0055
|
File details
Details for the file polodb_python-0.1.9-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: polodb_python-0.1.9-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 9.4 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88353600196da7e5665a7c711dfa01dce5cff694b83e0c1fc028e40ffb3b776
|
|
| MD5 |
5cedcd076b696e75d1bd762875e7e636
|
|
| BLAKE2b-256 |
3516a7333c811282ec908a7e8481cfe5f88e02faf8c1ad30964076f73b51f376
|