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

Uploaded Source

Built Distributions

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

polodb_python-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (9.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

polodb_python-0.1.5-cp39-cp39-macosx_11_0_arm64.whl (3.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for polodb_python-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b74a3c8712adfe3b6d688cd13236585b2c9771fc75fb3cb292d4ecd7a2e76404
MD5 bfdb59fafac24fe169898b864737bcb1
BLAKE2b-256 4f2a773c47c67b704639b822c106e8d2e07842f75343e3fd9248ef7e2187ceef

See more details on using hashes here.

File details

Details for the file polodb_python-0.1.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polodb_python-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67254ecc375f732a036b3d6d18bdf2c3383b7e52f2d1f91ad110e519b69d8146
MD5 eab9f79874ef21fc6fa9d1aa9f5d0acf
BLAKE2b-256 e1b25a481d59472f9795d76a5e394060fe2af726c1ffb1219a036002f405aa9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polodb_python-0.1.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4dafb5a41e8e59159c949dc294964f72cee2cc1f8e3193d738023b91eb74db73
MD5 a0376f66989ab66e635eb219a42bb847
BLAKE2b-256 96779f97ba7a5e3bd5c051bbba5fd43910a264050aa21110d88a901a10be36a0

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