datashader-cli
Quick visualization of large datasets using CLI based on datashader.
Installation
Use pip
pip install datashader-cli
Use pip from Github
pip install git+https://github.com/wybert/datashader-cli.git
Quick Start
Visualize 10 million NYC taxi trip data points in Gigabytes.
Create a shaded scatter plot of points and save it to png file, set background color to black.
datashader_cli points nyc_taxi.parquet --x pickup_x --y pickup_y pickup-scatter.png --background black
Visualize the geospaital data, support Geoparquet, Shapefile, Geojson, Geopackage, etc.
datashader_cli points data.geo.parquet data.png --geo true
Use matplotlib to render the image, matplotlib will enable the colorbar, but it can't use spread function
datashader_cli points data.geo.parquet data.png --geo true --matplotlib true
Usage
datashader_cli --help
# sage: datashader_cli [OPTIONS] COMMAND [ARGS]...
# Quick visualization of large datasets using CLI based on datashader.
# Supported data format: csv, parquet, hdf, feather, geoparquet, shapefile,
# geojson, geopackage, etc.
# Options:
# --help Show this message and exit.
# Commands:
# points Visualize points data.
Quick visualization of large point datasets using CLI based on datashader.
datashader_cli points --help
# Usage: datashader_cli points [OPTIONS] DATA_PATH OUTPUT_APTH
# Visualize points data.
# Options:
# --x TEXT Name of the x column, if geo=True, x is optional
# --y TEXT Name of the y column, if geo=True, y is optional
# --w INTEGER How many pixels wide to make the image
# --h INTEGER How many pixels high to make the image
# --x_range TEXT Range of the x axis, in the form of "xmin,xmax"
# --y_range TEXT Range of the y axis, in the form of "ymin,ymax"
# --agg TEXT Aggregation function, e.g. "mean", "count", "sum", see
# datashader docs
# (https://datashader.org/api.html#reductions) for more
# options
# --agg_col TEXT Column to aggregate on, e.g. "value"
# --by TEXT Column to group by, e.g. "category", see datashader
# docs (https://datashader.org/api.html#reductions) for
# more options
# --spread_px INTEGER How many pixels to spread points by, e.g. 1, see https
# ://datashader.org/api.html#datashader.transfer_functio
# ns.spread
# --how TEXT How to map values to colors, valid strings are
# ‘eq_hist’ [default], ‘cbrt’ (cube root), ‘log’
# (logarithmic), and ‘linear’. see https://datashader.or
# g/api.html#datashader.transfer_functions.set_backgroun
# d
# --cmap TEXT Name of the colormap, see https://colorcet.holoviz.org
# for more options
# --geo BOOLEAN Whether the data is geospatial, if True, x and y are
# optional, need Geopandas installed to use this option,
# supported data format: Geoparquet, shapefile, geojson,
# geopackage, etc.
# --background TEXT Background color, e.g. "black", "white", "#000000",
# "#ffffff"
# --matplotlib BOOLEAN Whether to use matplotlib to render the image, if
# True, need matplotlib installed to use this option.
# Matplotlib will enable the colorbar, but it can't use
# spread function
# --help Show this message and exit.
Credits
- Free software: MIT license
- Documentation: https://wybert.github.io/datashader-cli
Features
- point data visualization
Metadata
Release files for datashader-cli 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datashader-cli-0.0.4.tar.gz | 6.4 kB | Without provenance | Details for datashader-cli-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datashader_cli-0.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for datashader_cli-0.0.4-py2.py3-none-any.whl |
Total release size: 13.9 kB
Release files / datashader-cli-0.0.4.tar.gz
| Download URL | datashader-cli-0.0.4.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a377871bbb637bcdc961568de1e4cfdd0cf411645a3906c2860b07f621a9736
|
|
BLAKE2b-256 checksum How to use checksums |
ff37dece17529710238658075fc32fd50651e6837eb24a72f45eaa85dcef92d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / datashader_cli-0.0.4-py2.py3-none-any.whl
| Download URL | datashader_cli-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
91728935383121eb5c4669babc0e85d6c3db5069ab72c51f04dc505de6597831
|
|
BLAKE2b-256 checksum How to use checksums |
7ba437c019773f6922c3d9a1e5456d81fda97bbecc9f926d2c33e4ca2b1fb75e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for datashader-cli 0.0.4
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.