csvtotable 3.0.0b1__py3-none-win_amd64.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.
|
Binary file
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: csvtotable
|
|
3
|
+
Version: 3.0.0b1
|
|
4
|
+
Summary: Convert CSV files into searchable and sortable HTML tables
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Project-URL: Homepage, https://github.com/vividvilla/csvtotable
|
|
8
|
+
Project-URL: Issues, https://github.com/vividvilla/csvtotable/issues
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# CSVtoTable
|
|
12
|
+
|
|
13
|
+
CSVtoTable converts CSV files into interactive HTML tables.
|
|
14
|
+
|
|
15
|
+
- Single native binary with embedded frontend assets
|
|
16
|
+
- Standalone HTML output that works offline
|
|
17
|
+
- Mobile-responsive table layout
|
|
18
|
+
- Search, sorting, pagination, and virtual scrolling
|
|
19
|
+
- Copy, CSV, JSON, and print exports
|
|
20
|
+
- User-controlled light and dark themes
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
### uvx, pipx, or pip
|
|
25
|
+
|
|
26
|
+
Run without installing:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
uvx csvtotable data.csv data.html
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Or install it:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pipx install csvtotable
|
|
36
|
+
# or, inside a virtual environment:
|
|
37
|
+
pip install csvtotable
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`uv tool install csvtotable` works too. Python is only needed to install the
|
|
41
|
+
prebuilt executable.
|
|
42
|
+
|
|
43
|
+
### npx or npm
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
npx @vividvilla/csvtotable data.csv data.html
|
|
47
|
+
# or install globally:
|
|
48
|
+
npm install --global @vividvilla/csvtotable
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
To run a particular published version:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
uvx csvtotable@X.Y.Z data.csv data.html
|
|
55
|
+
npx @vividvilla/csvtotable@X.Y.Z data.csv data.html
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Standalone binary
|
|
59
|
+
|
|
60
|
+
Download an archive from [GitHub Releases](https://github.com/vividvilla/csvtotable/releases),
|
|
61
|
+
verify it with `SHA256SUMS`, and place `csvtotable` (`csvtotable.exe` on Windows)
|
|
62
|
+
on your `PATH`.
|
|
63
|
+
|
|
64
|
+
Prebuilt binaries support Linux x86-64/ARM64, macOS 12+ x86-64/Apple Silicon,
|
|
65
|
+
and Windows 10+ x86-64.
|
|
66
|
+
|
|
67
|
+
## Usage
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
# Write a standalone page
|
|
71
|
+
csvtotable data.csv data.html
|
|
72
|
+
|
|
73
|
+
# Open a temporary page in the default browser
|
|
74
|
+
csvtotable data.csv --serve
|
|
75
|
+
|
|
76
|
+
# Add a title and generate headers for headerless data
|
|
77
|
+
csvtotable data.csv data.html --title "Sales" --no-header
|
|
78
|
+
|
|
79
|
+
# Read stdin and write stdout
|
|
80
|
+
curl -L https://example.com/data.csv | csvtotable - - > data.html
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
BOM-marked UTF-8 and UTF-16 input is detected automatically. Use `--encoding`
|
|
84
|
+
for other encodings, and `--delimiter` or `--quotechar` for custom CSV formats.
|
|
85
|
+
|
|
86
|
+
Run `csvtotable --help` for all table, pagination, scrolling, and export options.
|
|
87
|
+
For compatibility with version 2, `--pagination` and `--export` disable those
|
|
88
|
+
features.
|
|
89
|
+
|
|
90
|
+
## Development
|
|
91
|
+
|
|
92
|
+
Building requires Go 1.24+ and Bun. Distribution packaging also requires Python
|
|
93
|
+
and npm. `table/dist` is generated before the Go build and embedded in the final
|
|
94
|
+
binary.
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
nix develop # optional development environment
|
|
98
|
+
make build # frontend and build/csvtotable
|
|
99
|
+
make test # frontend, formatting, vet, and tests
|
|
100
|
+
make dist # binary and host-platform packages under dist/
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
./build/csvtotable sample/goog.csv /tmp/goog.html
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## License
|
|
108
|
+
|
|
109
|
+
MIT
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
csvtotable-3.0.0b1.data/scripts/csvtotable.exe,sha256=_p7BkZp5-6DRqo-VzFSbclJ0wJfhkkio5dd_tyNcTeM,5320704
|
|
2
|
+
csvtotable-3.0.0b1.dist-info/METADATA,sha256=v3YjWd0N-PoLoU2Mi-lRM9KsxAPgmRKkjxmyoszag3U,2761
|
|
3
|
+
csvtotable-3.0.0b1.dist-info/WHEEL,sha256=qz3jSYXb7OnM4PLXLv_nww4tZs9dYAMfqwIWj33yXBs,88
|
|
4
|
+
csvtotable-3.0.0b1.dist-info/licenses/LICENSE,sha256=Yp7Jf5vJq8UpUTuY0ghL1tiWv1Oj3duE7QGQhlUXWQA,1073
|
|
5
|
+
csvtotable-3.0.0b1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Vivek R
|
|
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.
|