Skip to main content

Read and Write Dataframes and Data to a chipmunkdb

Project description

chipmunkdb :chipmunk: python-client

Modify and save dataframes with timeseries or without to an ultra-fast ipc chipmunk database with olap features. (Powered by duckdb)

Installation

pip install chipmunkdb-python-client

Usage

import sys
sys.path.insert(0,'..')
import pandas as pd
import numpy as np

from chipmunkdb.ChipmunkDb import ChipmunkDb

db = ChipmunkDb("localhost")

#receive all collections
collections = db.collections()

# create a dataframe
df = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
                   columns=['a', 'b', 'c'])

print(df)

## save your pandas
db.save_as_pandas(df, "mydf")

## get infos abotu your dataframe
collection = db.collection_info("mydf")

# read your dataframe again
df2 = db.collection_as_pandas("mydf")

print(df2)

# call any query on your data
d = db.query("SELECT * FROM mydf WHERE a=1 LIMIT 100")

print(d)

Info

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

chipmunkdb_python_client-2.0.22-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file chipmunkdb_python_client-2.0.22-py3-none-any.whl.

File metadata

File hashes

Hashes for chipmunkdb_python_client-2.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 095633a0edd02c37e3371fdd99dc933724dca8b0dde37d463bedb0ed18440d47
MD5 0e0bbde367a39957890563507ba340e5
BLAKE2b-256 7830a3e33881a461e0477c9a35047e15f1cd9bd6584e2338c7b0416b1244b9be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page