Skip to main content

dbplot

dbplot allows you to make calculations for plots inside databases.

dbplot is powered by ibis so its possible to target multiple databases that include: Postgres, MySQL, Apache Impala, Apache Kudu, BigQuery and more, also everything that ibis will support in the future such as Apache Spark.

Install

pip install dbplot

Development version:

pip install git+git://github.com/danielfrg/dbplot.git

Usage

See notebooks for examples.

import os
import ibis
import dbplot

# Connect to DB
host = os.environ.get("DBPLOT_TEST_POSTGRES_HOST", "localhost")
user = os.environ.get("DBPLOT_TEST_POSTGRES_USER", "postgres")
password = os.environ.get("DBPLOT_TEST_POSTGRES_PASSWORD")
database = os.environ.get("DBPLOT_TEST_POSTGRES_DATABASE", "nycflights13")
con = ibis.postgres.connect(host=host, database=database, user=user, password=password)

# Get a table
flights = con.table("flights")

# Plot stuff
dbplot.hist(flights, flights.dep_time, nbins=20)

Roadmap

  • Automated tests
  • More plots such as raster plots, line charts and more :)

Notes

Based on dbplot for R.

Metadata

Release files for dbplot 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbplot 0.1.0
File Size Uploaded Provenance Actions
dbplot-0.1.0.tar.gz 11.0 kB Without provenance Details for dbplot-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dbplot 0.1.0
File Interpreter ABI Platform Actions
dbplot-0.1.0-py3-none-any.whl Python 3 none any Details for dbplot-0.1.0-py3-none-any.whl

Total release size: 42.5 kB

Release files / dbplot-0.1.0.tar.gz

Download URL dbplot-0.1.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22a79fdafe6ea0b65917fe53ed3abd3662b5c546d7317a37aa9041e51c8548aa
BLAKE2b-256 checksum
How to use checksums
1d7cd7c8617cb11b6e56129f4a7f226aaaecdbde2389c11c6403bda1ae79e647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.11 CPython/3.7.1 Darwin/18.2.0

Release files / dbplot-0.1.0-py3-none-any.whl

Download URL dbplot-0.1.0-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c5a7b141b7fdd2f16cd81cfb454faf8a3cd87b0dc9d7e51f1f9007dd203e1ba
BLAKE2b-256 checksum
How to use checksums
fcadec0eac4b9066421e2aff507962ce858959896892dc2acb3347ccc86b2c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.11 CPython/3.7.1 Darwin/18.2.0

Security for dbplot 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page