Skip to content
Proyek

Tentang

Aplikasi desktop untuk melihat dan menganalisis data tabular

Data dan analisis

Cara angka ini diukur

3,512 bintang136 Fork +2 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+2
dalam 7 hari
+12
dalam 15 hari
+14
dalam 1 bulan
+19

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Tad

This repository contains the source code for Tad, an application for viewing and analyzing tabular data sets.

The Tad desktop application lets you quickly view and explore tabular data: CSV, TSV and Parquet files, the tables of SQLite and DuckDB database files, dataset folders and globs of Parquet or CSV files, and data piped in from another command. Internally, the application is powered by an in-memory instance of DuckDB, a fast, embeddable database engine optimized for analytic queries.

The core of Tad is a React UI component that implements a hierarchical pivot table. It lets you combine pivots (down the side and across the top), filters, aggregations, sorting, calculated columns, colors by value, and the choice, order and format of the columns. Tad delegates to a SQL database for storage and analytics, and generates SQL queries to perform all analytic operations specified in the UI.

Tad can be launched from the command line like this:

$ tad movie_metadata.csv

This opens a window with a scrollable view of the whole file. A few clicks in the sidebar pivot it by country and director, sorted by gross:

Tad screenshot

Tad renders the table with its own grid, which draws only the rows and columns in view. It scrolls through the whole of a large data set (millions of rows) smoothly, and asks DuckDB only for the rows on screen. A 50-million-row CSV (5.9 GB) opens in under 3 seconds on an M-series Mac.

The Quick Start (Help › Quick Start Guide in the app) walks through opening files, the column menu, filters, pivot tables, saving and export.

Installing Tad

The easiest way to install the Tad desktop app is to use a pre-packaged binary release, for macOS (Intel and Apple silicon), and Windows and Linux (Intel and ARM). See the Tad website for the latest release and download links, or go straight to the releases page.

Tad is also in Homebrew (brew install --cask tad) and in Scoop's Extras bucket (scoop install extras/tad).

On Windows, the installer can run silently, to roll Tad out to many computers:

Tad-Setup-1.0.0.exe /S /allusers      # for every user of the computer, in Program Files (as administrator)
Tad-Setup-1.0.0.exe /S /currentuser   # for the current user only

On an ARM PC, the installer is Tad-Setup-1.0.0-arm64.exe, with the same options.

To uninstall silently: "C:\Program Files\Tad\Uninstall Tad.exe" /S /allusers. Tad checks GitHub for a new version once a day; setting the environment variable TAD_NO_UPDATE_CHECK=1 for its users turns that off.

Problems and ideas

Open an issue on GitHub, or email [email protected] if you'd rather. Email is best for anything private, such as a file you can't share publicly. To report a security problem, see SECURITY.md.

License

Tad is MIT licensed: free for personal and commercial use, with no separate EULA. See LICENSE.

History and What's Here

Tad was initially released in 2017 as a standalone desktop application for viewing and exploring CSV files.

The core of Tad is a React UI component that implements a hierarchical pivot table that allows you to specify a combination of pivot, filter, aggregate, sort, column selection, column ordering and basic column formatting operations. Tad delegates to a SQL database for storage and analytics, and generates SQL queries to perform all analytic operations specified in the UI.

This repository is a modular refactor of the original Tad source code, with several key improvements on the original code base:

  • The repository is organized as a modular monorepo using npm workspaces.
  • The code has been ported to TypeScript and the UI code has been updated to React Hooks.
  • There is support for communicating with multiple database back ends for reltab (Tad's SQL generation and query evaluation layer), in addition to the original sqlite. Current backends (in varying degrees of completeness) include DuckDB, Snowflake, Google BigQuery, and AWS Athena (Presto)
  • There is a minimal proof-of-concept web-based front-end to demonstrate how Tad can be deployed on the web.
  • The core Tad pivot table component now builds in its own module independent of any front end. This should allow embedding the Tad pivot table in other applications or contexts.

The Essential Packages

The core packages that are used to build Tad are found in the packages sub-directory. These are the packages used to build the Tad desktop application:

  • reltab - The core abstraction used in Tad for programmatically constructing and executing relational SQL queries. This also defines the driver interface implemented by specific database back-ends, and a small, transport-agnostic remoting layer to allow queries and results to be transmitted between a web browser (or electron renderer process) and a reltab backend server.
  • reltab-duckdb -- reltab driver for DuckDB
  • reltab-sqlite -- reltab driver for SQLite
  • aggtree - A library built on top of reltab for constructing pivot trees from relational queries.
  • tadviewer - The core Tad pivot table UI as a standalone, embeddable React component.
  • tad-app - The Tad desktop application, built with Electron

Experimental Packages

This repository also includes a number of proof-of-concept experimental packages, in varying states of completeness. These are provided for reference and as a starting point for further investigation and development.

Building Tad from Source

Detailed instructions on building tad from sources available in doc/building.md

Jelajahi proyek terkait

Memuat…