An application insipired by PowerShell’s Out-GridView .
Implemented on Gnome using GTK
Input is passed via STDIN or via filenames in argument. Every file is assigned a window and a thread in charge of reading that file and parsing it.
Also check out my post on it: http://blog.backslasher.net/open-gridview.html
Prerequisites
Since we rely on Gtk, we need the python GTK bindings (PyGobject). Compiling it as a Python package is annoying, so it’s better to install the Distro-provided package (e.g. in Ubuntu - python-gi)
Basic usage
Either pipe input, or supply it as files.
Default parser is autosplit (re.split) with \s+ as separator
Change parser with –parser
Change separator where applicable using –separator
Column names are usually inferred from input. Use –headers to override.
Columns can be discarded by specifying an empty name, like –headers important,,also
Column types are usually inferred from first item in input. If overriding headers, follow a name with colons to force a specific type, like –headers col,othercol:int,thirdcol
Parsing
These different types of input formatting are currently supported:
- autosplit (default), which uses re.split to create different columns from every row.
Default separator is \s+ which is good for space-separated items.
Separator can contains capturing groups for interesting results
csv, with configurable column separators
line_json, where every line is considered a single JSON object (Line delimited JSON)
Items are displayed immediately when parsed
Additional features
Clipboard support. Copies as CSV to allow easy pasting in spreadsheet software
Simple text filtering
TODO
act as pipeline middle (and not just terminator), meaning that you can select items and click “OK” to make it send the items to STDOUT
Support advanced filtering (e.g. regex, specific columns)
Support hiding and re-ordering columns
show progress icon when stdin isn’t EOF yet
Metadata
Release files for opengridview 0.0.3
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 |
|---|---|---|---|---|
| opengridview-0.0.3.tar.gz | 8.1 kB | Without provenance | Details for opengridview-0.0.3.tar.gz |
Release files / opengridview-0.0.3.tar.gz
| Download URL | opengridview-0.0.3.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ed3591c5249b0cdab307d8e9c281405294ca57631941f4ec3b2429190fd3ed8
|
|
BLAKE2b-256 checksum How to use checksums |
d34d49fbfbaae3f8ab4d0cfb0895dc954371b03a82449d640c13ebd97dac2f1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for opengridview 0.0.3
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.