GlareDB is a fast SQL database for querying and analyzing distributed data.
Project description
Python bindings for GlareDB
Check out the GlareDB repo to learn more.
Use GlareDB directly in Python to query and analyzer a variety of data sources, including Polars and Pandas data frames.
import glaredb
import polars as pl
df = pl.DataFrame(
{
"A": [1, 2, 3, 4, 5],
"fruits": ["banana", "banana", "apple", "apple", "banana"],
"B": [5, 4, 3, 2, 1],
"cars": ["beetle", "audi", "beetle", "beetle", "beetle"],
}
)
con = glaredb.connect()
df = con.sql("select * from df where fruits = 'banana'").to_polars();
print(df)
# shape: (3, 4)
# ┌─────┬────────┬─────┬────────┐
# │ A ┆ fruits ┆ B ┆ cars │
# │ --- ┆ --- ┆ --- ┆ --- │
# │ i64 ┆ str ┆ i64 ┆ str │
# ╞═════╪════════╪═════╪════════╡
# │ 1 ┆ banana ┆ 5 ┆ beetle │
# │ 2 ┆ banana ┆ 4 ┆ audi │
# │ 5 ┆ banana ┆ 1 ┆ beetle │
# └─────┴────────┴─────┴────────┘
Project details
Release history Release notifications | RSS feed
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 Distributions
Close
Hashes for glaredb-0.8.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b51ba90ce7e20a25195b31856cb192e20eb4fc25d5fc6cdf20a480a53a3c6098 |
|
MD5 | 2a4067a5babfda7b412fef464b375e92 |
|
BLAKE2b-256 | 846353ee7602fbcdca7c4d517b23a8debb22f6e5d6ecc9fc1288bcf10e773444 |
Close
Hashes for glaredb-0.8.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa692adab39ab44d1b694ecb8e07584328872907acbcd196bb20bba8024af3ba |
|
MD5 | c78e82f3262646731a148d77af73cdda |
|
BLAKE2b-256 | 73463275b95ef86f1d1efaa0763302d6aa6c7cea86b32c8ca1276d14d598ced1 |
Close
Hashes for glaredb-0.8.0-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5d792ebfcc6a1d2740a7cb5f153d5f4a6257b529962ac85dba01cac57a7092 |
|
MD5 | 64d13934b2fa8d92b7fedb61de068cec |
|
BLAKE2b-256 | 78abec0b622e3eb29bdd96f6dbe656073b231c5bff55bd56b7de1be1f3920af7 |
Close
Hashes for glaredb-0.8.0-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c32d02ca84262b2105cfb92626acff82cbf6181ae75d19e9eabd526ca14014c |
|
MD5 | 447f04645ff1f77c2b9f385c130b5ffc |
|
BLAKE2b-256 | 4bf59ab01c8875e77c49a7e15449b9787f23be32afa6b58848caace52375a6a5 |