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 (with upsert option)
  • update_one (with upsert option)
  • 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.16.tar.gz (30.7 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.16-cp39-cp39-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: polodb_python-0.1.16.tar.gz
  • Upload date:
  • Size: 30.7 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.16.tar.gz
Algorithm Hash digest
SHA256 3191073df1cf9a70f30c7b4e6199b3893ee9b0d32325f7ebd2e74f64b55b7a38
MD5 df58f76e4a699df39a8168b2f3116bfe
BLAKE2b-256 02e7022fd65e2694b8441e20edec8c68d4002f374dfa5fec0aeb271641e7fdaf

See more details on using hashes here.

File details

Details for the file polodb_python-0.1.16-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polodb_python-0.1.16-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb3993b2092228151c86608a4b41dae37f9a14faed049ee85f9320a8a9b50f97
MD5 e02a0a9c00e4fa60c3f1e6c569d4243e
BLAKE2b-256 1392866369d309aecf6c81cf49dcd3f5fbd79a5d33766223dc83e44bb36d416b

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