Skip to main content

viewer for text data

Project description

vviewer

text viewer to show row data vertically

How to install

from pypi

(vviewer) $ pip install vviewer

for development

(vviewer) $ python setup.py develop

How to use

(vviewer) $ vviewer -h
usage: vviewer [-h] [-c [COLUMN [COLUMN ...]]] [-d DELIMITER] [-e ENCODING]
               [--header HEADER] [--quotechar QUOTECHAR] [--quoting QUOTING]
               [--sort]
               data

positional arguments:
  data                  set path to data file

optional arguments:
  -h, --help            show this help message and exit
  -c [COLUMN [COLUMN ...]], --column [COLUMN [COLUMN ...]]
                        set column to display
  -d DELIMITER, --delimiter DELIMITER
                        set delimiter character in file
  -e ENCODING, --encoding ENCODING
                        set encoding
  --header HEADER       set path to header file
  --quotechar QUOTECHAR
                        set quote character in file
  --quoting QUOTING     set quoting
  --sort                sort row data with header column name

Show all columns

(vviewer) $ vviewer tests/fixtures/blocks.csv

##### line no: 1
------------------------------------------------------------------------
001: number           : 100
002: hash             : 0xb40a0dfde1b270d7c58c3cb505c7e773c50198b28cce3e442c4e2f33ff764582
003: parent_hash      : 0x3dd4dc843801af12c0a6dd687642467a3ce835dca09159734dec03109a1c1f1f
004: nonce            : 0x6d88b33209e0a320
005: sha3_uncles      : 0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347
006: logs_bloom       : 0x0000000000000000000000000000000000000000000000000...(snip)
007: transactions_root: 0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
008: state_root       : 0xf5f18c33ddff06efa928d22a2432fb34a11e6f62cce825cdad1c78e1068e6b7b
009: receipts_root    : 0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
010: miner            : 0xc2fa6dcef5a1fbf70028c5636e7f64cd46e7cfd4
011: difficulty       : 827755
012: total_difficulty : 85797483
013: size             : 535
014: extra_data       : 0xd783010502846765746887676f312e362e33856c696e7578
015: gas_limit        : 15217318
016: gas_used         : 0
017: timestamp        : 1479653850
018: transaction_count: 0
------------------------------------------------------------------------
Enter to next line, or q (quit):

Filter any columns

(vviewer) $ vviewer tests/fixtures/blocks.csv -c number hash nonce miner

##### line no: 1
------------------------------------------------------------------------
001: number           : 100
002: hash             : 0xb40a0dfde1b270d7c58c3cb505c7e773c50198b28cce3e442c4e2f33ff764582
004: nonce            : 0x6d88b33209e0a320
010: miner            : 0xc2fa6dcef5a1fbf70028c5636e7f64cd46e7cfd4
------------------------------------------------------------------------
Enter to next line, or q (quit):

Use header.txt when data does not have the header line

(vviewer) $ vviewer tests/fixtures/blocks_without_header.csv --header tests/fixtures/blocks_header.txt

##### line no: 1
------------------------------------------------------------------------
001: number           : 100
002: hash             : 0xb40a0dfde1b270d7c58c3cb505c7e773c50198b28cce3e442c4e2f33ff764582
003: parent_hash      : 0x3dd4dc843801af12c0a6dd687642467a3ce835dca09159734dec03109a1c1f1f
004: nonce            : 0x6d88b33209e0a320
005: sha3_uncles      : 0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347
006: logs_bloom       : 0x0000000000000000000000000000000000000000000000000...(snip)
007: transactions_root: 0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
008: state_root       : 0xf5f18c33ddff06efa928d22a2432fb34a11e6f62cce825cdad1c78e1068e6b7b
009: receipts_root    : 0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
010: miner            : 0xc2fa6dcef5a1fbf70028c5636e7f64cd46e7cfd4
011: difficulty       : 827755
012: total_difficulty : 85797483
013: size             : 535
014: extra_data       : 0xd783010502846765746887676f312e362e33856c696e7578
015: gas_limit        : 15217318
016: gas_used         : 0
017: timestamp        : 1479653850
018: transaction_count: 0
------------------------------------------------------------------------
Enter to next line, or q (quit):

Complex example including east asian characters

(vviewer-public) $ vviewer tests/fixtures/e-stat-10102.csv --quoting all --column "調査年 コード" "B1106_森林面積【ha】" "B2101_自然公園面積【ha】" "B4110_最深積雪【cm】"

##### line no: 1
------------------------------------------------------------------------
001: 調査年 コード                                 : 2016100000
011: B1106_森林面積【ha】                        : ***
023: B2101_自然公園面積【ha】                    : 5,565,967.00
047: B4110_最深積雪【cm】                        : ***
------------------------------------------------------------------------
Enter to next line, or q (quit):

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vviewer-0.1.1.tar.gz (145.6 kB view details)

Uploaded Source

Built Distribution

vviewer-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file vviewer-0.1.1.tar.gz.

File metadata

  • Download URL: vviewer-0.1.1.tar.gz
  • Upload date:
  • Size: 145.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for vviewer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 75fcb4ae08ad7d28f0675db5cfff27e16b638eb985a6f801dadbf8eb618e2e65
MD5 801a1e0eea0ff4b738803a9ee7945603
BLAKE2b-256 ed189c66b1e959887814cf4bfabd874a55b5cf4735c8d20899b59f892fc6a039

See more details on using hashes here.

File details

Details for the file vviewer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vviewer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for vviewer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87a1cdfb302f09c9022dfb39d4e57e8430c819279994894e444224c64c6d1c88
MD5 3d22105de732db8a916db7f83b4b5763
BLAKE2b-256 e561438e4d903ba66f7a0b6d51bb52f2e96fac2223d737eca6b8aefe0c10280f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page