Skip to main content

Python client for CupidDB

Project description

CupidDB Python Client

Run an instance of CupidDB

docker run --rm -p 5995:5995 cupiddb/cupiddb:latest

Installation

pip install pycupiddb

Basic Usage

from pycupiddb import CupidClient, RowFilter
import pandas as pd

df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})

cupid = CupidClient(host='localhost', port=5995)

cupid.set(key='key', value=df)

df = cupid.get_dataframe(key='key')

filters = [
    RowFilter(column='b', logic='gte', value=5, data_type='int'),
]
df = cupid.get_dataframe(
    key='key',
    columns=['a'],
    filters=filters,
)

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

pycupiddb-1.4.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

pycupiddb-1.4.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pycupiddb-1.4.1.tar.gz.

File metadata

  • Download URL: pycupiddb-1.4.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pycupiddb-1.4.1.tar.gz
Algorithm Hash digest
SHA256 e692d02d2b9a00603bbf61a3a467fc6df23de2685dac48b3c4ea0558ff350214
MD5 a3857ad88aa9865fc32e131b524f19b7
BLAKE2b-256 e824d12347459e3e1be3b8367f2693219fb1cca6ef791937f91972ad006d94aa

See more details on using hashes here.

File details

Details for the file pycupiddb-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: pycupiddb-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pycupiddb-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 482beab8738e518ef0c544f9c1ec3ea356b57502cf50a967f3ada856bd31a8d7
MD5 bc4bfab1a2e9e0b94c1574813cf7bad5
BLAKE2b-256 f98c3fa0496af62e815f69586f961e6c241afcc3ce8c11d6c8f7ee69be93b471

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