Skip to main content

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


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

glaredb-0.9.2-cp37-abi3-win_amd64.whl (46.7 MB view hashes)

Uploaded CPython 3.7+ Windows x86-64

glaredb-0.9.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (45.0 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

glaredb-0.9.2-cp37-abi3-macosx_11_0_arm64.whl (40.2 MB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

glaredb-0.9.2-cp37-abi3-macosx_10_12_x86_64.whl (42.9 MB view hashes)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

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