Skip to main content

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


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.10.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

polodb_python-0.1.10-cp310-cp310-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file polodb_python-0.1.10.tar.gz.

File metadata

  • Download URL: polodb_python-0.1.10.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for polodb_python-0.1.10.tar.gz
Algorithm Hash digest
SHA256 edd81c0bf44ccb515dddade0bb6d88c48c750fe9fe286b8cfd63039592c44af9
MD5 9ec9ac9257a0d2b5f10f6d6ad3e4b6bf
BLAKE2b-256 8d4499666847cbf284b13142d3c5fb2cdc79971229574fd73e438963ca1677d6

See more details on using hashes here.

File details

Details for the file polodb_python-0.1.10-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polodb_python-0.1.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b47390d8d7d6ee5ef360178e092dd40a298cf2d30452202357b7a6028ad71137
MD5 60d0bdde969f7a9f9fb72d5e8b269d34
BLAKE2b-256 d568997b6658b5d894e08d09c4c4f2a0bfac8e0e3246d4752a7cb2f406ed80c7

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