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.12.tar.gz (85.5 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.12-cp310-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

polodb_python-0.1.12-cp39-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9Windows x86-64

polodb_python-0.1.12-cp39-cp39-manylinux_2_35_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.35+ x86-64

polodb_python-0.1.12-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.12.tar.gz.

File metadata

  • Download URL: polodb_python-0.1.12.tar.gz
  • Upload date:
  • Size: 85.5 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.12.tar.gz
Algorithm Hash digest
SHA256 22613d6dbfa1f29b0d4b4d80d84a1f4910c64977ff3945c2f7407af65fde789c
MD5 2cbbc61a1fe538886aa0c7acdda12d50
BLAKE2b-256 97899098d917b80a2419baeeac622e7e6a76cc1a056eb399f76b17c951270de2

See more details on using hashes here.

File details

Details for the file polodb_python-0.1.12-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for polodb_python-0.1.12-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 3056c6b67a20ace8e31383b410a9db55512fc95b5c75f0835aec60e68b7c86ed
MD5 9b6eec3518cede20f9f96c0403d1d0ea
BLAKE2b-256 0b4512560781e6c96eb97aaa463bf4aee5e90647b90a7d2b102440b95abd773a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polodb_python-0.1.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46809d7fb34221024df60b9c3a1a256e42fb94e564ba15a2a727069885a2459d
MD5 1359e00f78d634b8a52fbaa5e8b386b8
BLAKE2b-256 df4c5607bd69066b9ba8f79428354e1887bba66b7e634cbd3771f05d9f7e55a4

See more details on using hashes here.

File details

Details for the file polodb_python-0.1.12-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for polodb_python-0.1.12-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 1eee813575f56ab23ed7196dfabdcc8fcdbc612012d5606f72ae43b7cd91f993
MD5 596817bf640182e24915d05a753d263a
BLAKE2b-256 41b36860fecafe74ac92b81b857ac19edfe0660874e4d26a43f4927ffc6846ee

See more details on using hashes here.

File details

Details for the file polodb_python-0.1.12-cp39-cp39-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for polodb_python-0.1.12-cp39-cp39-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 67b225465165f23a6bf53a691b8180d914b35f6e55d7cd0496a51eecb39a1bf6
MD5 4c00c849a37ae25c01ce7e4a25d15066
BLAKE2b-256 df17b405a95831e7cdc29439545a864fdfa6de4718024a32fbb60cbf4986cc4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polodb_python-0.1.12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c9f039996b29e490bab398a781281723d88e0ce3c84796b453a5383692fdd31
MD5 f1feeec5c9f2682617b0a71093ba1b83
BLAKE2b-256 9e8f66e1e4d849c3090558fc63af877d0e6e2ee997553d5f6236a136a2b581ad

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