csvtotable 3.0.0__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,125 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: csvtotable
|
|
3
|
+
Version: 3.0.0
|
|
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
|
+
- Local files, URLs, standard input, and multi-file input
|
|
18
|
+
- Mobile-responsive table layout
|
|
19
|
+
- Search, sorting, pagination, and virtual scrolling
|
|
20
|
+
- Copy, CSV, JSON, and print exports
|
|
21
|
+
- User-controlled light and dark themes
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
# Write a standalone page
|
|
29
|
+
csvtotable sample/meteorite-landings-1.csv meteorites.html
|
|
30
|
+
|
|
31
|
+
# Combine files with the same columns
|
|
32
|
+
csvtotable sample/meteorite-landings-1.csv sample/meteorite-landings-2.csv meteorites.html
|
|
33
|
+
|
|
34
|
+
# Fetch CSV directly from a URL
|
|
35
|
+
csvtotable https://raw.githubusercontent.com/vividvilla/csvtotable/master/sample/meteorite-landings-1.csv meteorites.html
|
|
36
|
+
|
|
37
|
+
# Open a temporary page in the default browser
|
|
38
|
+
csvtotable data.csv --serve
|
|
39
|
+
|
|
40
|
+
# Add a title and generate headers for headerless data
|
|
41
|
+
csvtotable data.csv data.html --title "Sales" --no-header
|
|
42
|
+
|
|
43
|
+
# Read stdin and write stdout
|
|
44
|
+
curl -L https://example.com/data.csv | csvtotable - - > data.html
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Inputs may be local files, `http://` or `https://` URLs, or `-` for standard
|
|
48
|
+
input. When combining inputs, their headers and row widths must match. With
|
|
49
|
+
`--no-header`, generated column names are used and row widths must still match.
|
|
50
|
+
The final positional argument is the output file unless `--serve` is used.
|
|
51
|
+
|
|
52
|
+
BOM-marked UTF-8 and UTF-16 input is detected automatically. Use `--encoding`
|
|
53
|
+
for other encodings, and `--delimiter` or `--quotechar` for custom CSV formats.
|
|
54
|
+
|
|
55
|
+
Run `csvtotable --help` for all options or `csvtotable --version` for the version.
|
|
56
|
+
For compatibility with version 2, `--pagination` and `--export` disable those
|
|
57
|
+
features.
|
|
58
|
+
|
|
59
|
+
## Install
|
|
60
|
+
|
|
61
|
+
### uvx, pipx, or pip
|
|
62
|
+
|
|
63
|
+
Run without installing:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
uvx csvtotable data.csv data.html
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Or install it:
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
pipx install csvtotable
|
|
73
|
+
pip install csvtotable # or inside a virtual environment:
|
|
74
|
+
uv tool install csvtotable
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### npx or npm
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npx @vividvilla/csvtotable data.csv data.html
|
|
81
|
+
npm install --global @vividvilla/csvtotable # or install globally:
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
To run a particular published version:
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
uvx csvtotable@X.Y.Z data.csv data.html
|
|
88
|
+
npx @vividvilla/csvtotable@X.Y.Z data.csv data.html
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Homebrew
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
brew install vividvilla/tap/csvtotable
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Standalone binary
|
|
98
|
+
|
|
99
|
+
Download an archive from [GitHub Releases](https://github.com/vividvilla/csvtotable/releases),
|
|
100
|
+
verify it with `SHA256SUMS`, and place `csvtotable` (`csvtotable.exe` on Windows)
|
|
101
|
+
on your `PATH`.
|
|
102
|
+
|
|
103
|
+
Prebuilt binaries support Linux x86-64/ARM64, macOS 12+ x86-64/Apple Silicon,
|
|
104
|
+
and Windows 10+ x86-64.
|
|
105
|
+
|
|
106
|
+
## Development
|
|
107
|
+
|
|
108
|
+
Building requires Go 1.24+ and Bun. Distribution packaging also requires Python
|
|
109
|
+
and npm. `table/dist` is generated before the Go build and embedded in the final
|
|
110
|
+
binary.
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
nix develop # optional development environment
|
|
114
|
+
make build # frontend and build/csvtotable
|
|
115
|
+
make test # frontend, formatting, vet, and tests
|
|
116
|
+
make dist # binary and host-platform packages under dist/
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
./build/csvtotable sample/meteorite-landings-1.csv sample/meteorite-landings-2.csv /tmp/meteorites.html
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## License
|
|
124
|
+
|
|
125
|
+
MIT
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
csvtotable-3.0.0.data/scripts/csvtotable.exe,sha256=mJenCoijSoFXVPrHuKi1RPTqbh17q5R7T0rFW2bVv0U,9640448
|
|
2
|
+
csvtotable-3.0.0.dist-info/METADATA,sha256=ddvMC6x90hIBD0vDKg8KdRSTnSkwvzbN98exXNj1Dxo,3524
|
|
3
|
+
csvtotable-3.0.0.dist-info/WHEEL,sha256=qz3jSYXb7OnM4PLXLv_nww4tZs9dYAMfqwIWj33yXBs,88
|
|
4
|
+
csvtotable-3.0.0.dist-info/licenses/LICENSE,sha256=Yp7Jf5vJq8UpUTuY0ghL1tiWv1Oj3duE7QGQhlUXWQA,1073
|
|
5
|
+
csvtotable-3.0.0.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.
|