csvpeek 0.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,142 @@
1
+ Metadata-Version: 2.4
2
+ Name: csvpeek
3
+ Version: 0.9.0
4
+ Summary: A snappy CSV viewer TUI - peek at your data fast
5
+ Project-URL: Homepage, https://github.com/giantatwork/csvpeek
6
+ Project-URL: Repository, https://github.com/giantatwork/csvpeek
7
+ Project-URL: Issues, https://github.com/giantatwork/csvpeek/issues
8
+ Author-email: Giant at Work <info@giantatwork.nl>
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: csv,data,duckdb,terminal,tui,urwid,viewer
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Topic :: Terminals
22
+ Classifier: Topic :: Utilities
23
+ Requires-Python: >=3.12
24
+ Requires-Dist: duckdb>=1.1.0
25
+ Requires-Dist: pyperclip>=1.8.0
26
+ Requires-Dist: urwid>=2.1.0
27
+ Description-Content-Type: text/markdown
28
+
29
+ # csvpeek
30
+
31
+ > A fast CSV viewer in your terminal - peek at your data instantly ⚡
32
+
33
+ ![License](https://img.shields.io/badge/license-MIT-blue.svg)
34
+ ![Python](https://img.shields.io/badge/python-3.10+-blue.svg)
35
+
36
+ **Csvpeek** is a snappy, memory-efficient CSV viewer built for speed. Powered by [DuckDB](https://duckdb.org/) for fast SQL-backed querying and [Urwid](https://urwid.org/) for a lean terminal UI.
37
+
38
+ ## Features
39
+
40
+ - **Fast** - DuckDB streaming with LIMIT/OFFSET keeps startup instant, even with huge files
41
+ - **Large File Support** - Pagination handles millions of rows without breaking a sweat
42
+ - **Cell Selection** - Select and copy ranges with keyboard shortcuts
43
+ - **Column Sorting** - Sort by any column instantly
44
+ - **Keyboard-First** - Every action is a keystroke away
45
+
46
+ ## Quick Start
47
+
48
+ ### Installation
49
+
50
+ ```bash
51
+ uv tool install csvpeek
52
+ ```
53
+
54
+ Or install from source:
55
+
56
+ ```bash
57
+ git clone https://github.com/giantatwork/csvpeek.git
58
+ cd csvpeek
59
+ pip install -e .
60
+ ```
61
+
62
+ #### Windows
63
+
64
+ Install the [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) to ensure DuckDB works on Windows
65
+
66
+ ### Usage
67
+
68
+ ```bash
69
+ csvpeek your_data.csv
70
+ ```
71
+
72
+ ## Keyboard Shortcuts
73
+
74
+ | Key | Action |
75
+ |-----|--------|
76
+ | `/` | Open filter dialog |
77
+ | `r` | Reset all filters |
78
+ | `Ctrl+D` | Next page |
79
+ | `Ctrl+U` | Previous page |
80
+ | `s` | Sort current column |
81
+ | `c` | Copy selection to clipboard |
82
+ | `w` | Save selection to file |
83
+ | `Shift+Arrow` | Select cells |
84
+ | `Arrow Keys` | Navigate (clears selection) |
85
+ | `q` | Quit |
86
+
87
+ ## Usage Examples
88
+
89
+ ### Basic Viewing
90
+ Open any CSV file and start navigating immediately:
91
+ ```bash
92
+ csvpeek data.csv
93
+ ```
94
+
95
+ ### Filtering
96
+ 1. Press `/` to open the filter dialog
97
+ 2. Enter filter values for any columns
98
+ 3. Press `Enter` to apply
99
+ 4. Filter matches are highlighted in red
100
+
101
+ **Filter modes:**
102
+ - **Literal mode**: Case-insensitive substring search (e.g., `scranton` matches "Scranton")
103
+ - **Regex mode**: Start with `/` for regex patterns (e.g., `/^J` matches names starting with J)
104
+ - `/\d+` - Contains digits
105
+ - `/sales|eng` - Contains "sales" OR "eng"
106
+ - `/^test$` - Exactly "test"
107
+ - All regex patterns are case-insensitive
108
+
109
+ ### Sorting
110
+ 1. Navigate to any column
111
+ 2. Press `s` to sort by that column
112
+ 3. Press `s` again to toggle ascending/descending
113
+
114
+ ### Selection & Copy
115
+ 1. Position cursor on starting cell
116
+ 2. Hold `Shift` and use arrow keys to select a range
117
+ 3. Press `c` to copy selection as tab-separated values
118
+ 4. Paste anywhere with `Ctrl+V`
119
+
120
+
121
+
122
+ ## Requirements
123
+ - Python 3.12+
124
+ - DuckDB >= 1.1.0
125
+ - Urwid >= 2.1.0
126
+ - Pyperclip >= 1.9.0
127
+
128
+ ## License
129
+
130
+ MIT License - see LICENSE file for details
131
+
132
+ ## Acknowledgments
133
+
134
+ Built with amazing open-source tools:
135
+ - [DuckDB](https://duckdb.org/) - Embedded analytics database
136
+ - [Urwid](https://urwid.org/) - Lightweight terminal UI toolkit
137
+
138
+ ## Contact
139
+
140
+ Found a bug? Have a feature request? [Open an issue](https://github.com/giantatwork/csvpeek/issues)!
141
+
142
+
@@ -0,0 +1,13 @@
1
+ csvpeek/__init__.py,sha256=yzoqUeeOO6MqhrBCknbwXZTShDPoqaAid05zgkzhEF0,64
2
+ csvpeek/csvpeek.py,sha256=ueGXoo-EDsUkJ6z_8drn2CWyB49q29n6p13p5wk4wos,20371
3
+ csvpeek/duck.py,sha256=Ir87uoqTw_-bnBysm7e2D74IOyszbaAW1WemEbKzBdc,3079
4
+ csvpeek/filters.py,sha256=9A1S8ntEjQP38NZr_flFQAKhsRRGHXl0dJu9EpWLuWs,1340
5
+ csvpeek/main.py,sha256=xadEh3QdS6weEWoVzwINo6uBt1ZA326VanSIm0J_Xcw,1558
6
+ csvpeek/screen_buffer.py,sha256=hFc3pkWZFvI9Pj3WT5F0Oqrm2geVV1n5ZDDLig4geOw,1525
7
+ csvpeek/selection_utils.py,sha256=I31Ghv7l-QVJDbWY0a8SHHdewgUO3plKNzUPbKs71cA,4201
8
+ csvpeek/ui.py,sha256=5Ab_dM4FlQa_qH3sA59wEsaiLCoDMFeS9CDD5sRXgy4,13014
9
+ csvpeek-0.9.0.dist-info/METADATA,sha256=1Sfqg3C0xSlqH0e9vFTqarkGC42R84IcJxqdKLp5m2s,4053
10
+ csvpeek-0.9.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
11
+ csvpeek-0.9.0.dist-info/entry_points.txt,sha256=B0K-LkElbkL0EaGUJyfjBQ8Oc28Xq9Y9PS-o6hMVQIk,46
12
+ csvpeek-0.9.0.dist-info/licenses/LICENSE,sha256=OphKV48tcMv6ep-7j-8T6nycykPT0g8ZlMJ9zbGvdPs,1066
13
+ csvpeek-0.9.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ csvpeek = csvpeek.main:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Your Name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.