dbplot-0.1.0
توضیحات
dbplot allows you to make calculations of plots inside databases
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dbplot-0.1.0 |
| نام | dbplot |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | ['Daniel Rodriguez'] |
| ایمیل نگهدارنده | ['df.rodriguez143@gmail.com'] |
| نویسنده | Daniel Rodriguez |
| ایمیل نویسنده | df.rodriguez143@gmail.com |
| آدرس صفحه اصلی | https://github.com/danielfrg/dbplot |
| آدرس اینترنتی | https://pypi.org/project/dbplot/ |
| مجوز | Apache-2.0 |
# dbplot
dbplot allows you to make calculations for plots inside databases.
dbplot is powered by [ibis](https://github.com/ibis-project/ibis) so its possible to target multiple databases that include:
Postgres, MySQL, Apache Impala, Apache Kudu, BigQuery [and more](https://docs.ibis-project.org/), 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.
```python
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](https://github.com/edgararuiz/dbplot).
نیازمندی
| مقدار | نام |
|---|---|
| >=0.14,<0.15 | ibis-framework |
| >=3.0,<4.0 | matplotlib |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5,<4.0 | Python |
نحوه نصب
نصب پکیج whl dbplot-0.1.0:
pip install dbplot-0.1.0.whl
نصب پکیج tar.gz dbplot-0.1.0:
pip install dbplot-0.1.0.tar.gz