zcsv 0.1.0__tar.gz
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.
- zcsv-0.1.0/.cargo/config.toml +2 -0
- zcsv-0.1.0/.gitignore +37 -0
- zcsv-0.1.0/Cargo.lock +553 -0
- zcsv-0.1.0/Cargo.toml +25 -0
- zcsv-0.1.0/LICENSE +21 -0
- zcsv-0.1.0/PKG-INFO +17 -0
- zcsv-0.1.0/README.md +220 -0
- zcsv-0.1.0/assets/zcsv-benchmarks.svg +145 -0
- zcsv-0.1.0/pyproject.toml +27 -0
- zcsv-0.1.0/python/zcsv/__init__.py +284 -0
- zcsv-0.1.0/python/zcsv/compat.py +129 -0
- zcsv-0.1.0/src/fast_pyobjects.rs +88 -0
- zcsv-0.1.0/src/lib.rs +177 -0
- zcsv-0.1.0/src/parallel.rs +245 -0
- zcsv-0.1.0/src/reader.rs +329 -0
- zcsv-0.1.0/src/row.rs +218 -0
- zcsv-0.1.0/src/schema.rs +119 -0
- zcsv-0.1.0/src/sniffer.rs +127 -0
- zcsv-0.1.0/src/types.rs +41 -0
- zcsv-0.1.0/src/validator.rs +34 -0
- zcsv-0.1.0/src/writer.rs +373 -0
- zcsv-0.1.0/tests/test_compat.py +178 -0
- zcsv-0.1.0/tests/test_read.py +107 -0
- zcsv-0.1.0/tests/test_sniffer.py +81 -0
- zcsv-0.1.0/tests/test_write.py +118 -0
zcsv-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
/target/
|
|
3
|
+
Cargo.lock
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.pyc
|
|
8
|
+
*.pyo
|
|
9
|
+
*.egg-info/
|
|
10
|
+
dist/
|
|
11
|
+
build/
|
|
12
|
+
.venv/
|
|
13
|
+
*.so
|
|
14
|
+
*.dylib
|
|
15
|
+
*.pyd
|
|
16
|
+
|
|
17
|
+
# IDE
|
|
18
|
+
.idea/
|
|
19
|
+
.vscode/
|
|
20
|
+
*.swp
|
|
21
|
+
*.swo
|
|
22
|
+
|
|
23
|
+
# OS
|
|
24
|
+
.DS_Store
|
|
25
|
+
Thumbs.db
|
|
26
|
+
|
|
27
|
+
# Test artifacts
|
|
28
|
+
.pytest_cache/
|
|
29
|
+
|
|
30
|
+
# Build artifacts
|
|
31
|
+
*.dSYM
|
|
32
|
+
*.dylib
|
|
33
|
+
*.so
|
|
34
|
+
*.abi3.so
|
|
35
|
+
|
|
36
|
+
# Claude
|
|
37
|
+
.claude/
|
zcsv-0.1.0/Cargo.lock
ADDED
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "android_system_properties"
|
|
7
|
+
version = "0.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"libc",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "autocfg"
|
|
16
|
+
version = "1.5.0"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "bumpalo"
|
|
22
|
+
version = "3.20.2"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "cc"
|
|
28
|
+
version = "1.2.59"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "b7a4d3ec6524d28a329fc53654bbadc9bdd7b0431f5d65f1a56ffb28a1ee5283"
|
|
31
|
+
dependencies = [
|
|
32
|
+
"find-msvc-tools",
|
|
33
|
+
"shlex",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "cfg-if"
|
|
38
|
+
version = "1.0.4"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "chrono"
|
|
44
|
+
version = "0.4.44"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
|
|
47
|
+
dependencies = [
|
|
48
|
+
"iana-time-zone",
|
|
49
|
+
"js-sys",
|
|
50
|
+
"num-traits",
|
|
51
|
+
"wasm-bindgen",
|
|
52
|
+
"windows-link",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "core-foundation-sys"
|
|
57
|
+
version = "0.8.7"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "crossbeam-deque"
|
|
63
|
+
version = "0.8.6"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
|
|
66
|
+
dependencies = [
|
|
67
|
+
"crossbeam-epoch",
|
|
68
|
+
"crossbeam-utils",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "crossbeam-epoch"
|
|
73
|
+
version = "0.9.18"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
|
76
|
+
dependencies = [
|
|
77
|
+
"crossbeam-utils",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "crossbeam-utils"
|
|
82
|
+
version = "0.8.21"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "csv"
|
|
88
|
+
version = "1.4.0"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938"
|
|
91
|
+
dependencies = [
|
|
92
|
+
"csv-core",
|
|
93
|
+
"itoa",
|
|
94
|
+
"ryu",
|
|
95
|
+
"serde_core",
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "csv-core"
|
|
100
|
+
version = "0.1.13"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782"
|
|
103
|
+
dependencies = [
|
|
104
|
+
"memchr",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "either"
|
|
109
|
+
version = "1.15.0"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
112
|
+
|
|
113
|
+
[[package]]
|
|
114
|
+
name = "encoding_rs"
|
|
115
|
+
version = "0.8.35"
|
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
+
checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
|
|
118
|
+
dependencies = [
|
|
119
|
+
"cfg-if",
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "encoding_rs_io"
|
|
124
|
+
version = "0.1.7"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "1cc3c5651fb62ab8aa3103998dade57efdd028544bd300516baa31840c252a83"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"encoding_rs",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "find-msvc-tools"
|
|
133
|
+
version = "0.1.9"
|
|
134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
|
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
136
|
+
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "heck"
|
|
139
|
+
version = "0.5.0"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "iana-time-zone"
|
|
145
|
+
version = "0.1.65"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
|
|
148
|
+
dependencies = [
|
|
149
|
+
"android_system_properties",
|
|
150
|
+
"core-foundation-sys",
|
|
151
|
+
"iana-time-zone-haiku",
|
|
152
|
+
"js-sys",
|
|
153
|
+
"log",
|
|
154
|
+
"wasm-bindgen",
|
|
155
|
+
"windows-core",
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "iana-time-zone-haiku"
|
|
160
|
+
version = "0.1.2"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
|
163
|
+
dependencies = [
|
|
164
|
+
"cc",
|
|
165
|
+
]
|
|
166
|
+
|
|
167
|
+
[[package]]
|
|
168
|
+
name = "indoc"
|
|
169
|
+
version = "2.0.7"
|
|
170
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
171
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
172
|
+
dependencies = [
|
|
173
|
+
"rustversion",
|
|
174
|
+
]
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "itoa"
|
|
178
|
+
version = "1.0.18"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "js-sys"
|
|
184
|
+
version = "0.3.94"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "2e04e2ef80ce82e13552136fabeef8a5ed1f985a96805761cbb9a2c34e7664d9"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"once_cell",
|
|
189
|
+
"wasm-bindgen",
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "libc"
|
|
194
|
+
version = "0.2.184"
|
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
196
|
+
checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af"
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "log"
|
|
200
|
+
version = "0.4.29"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "memchr"
|
|
206
|
+
version = "2.8.0"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "memmap2"
|
|
212
|
+
version = "0.9.10"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "714098028fe011992e1c3962653c96b2d578c4b4bce9036e15ff220319b1e0e3"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"libc",
|
|
217
|
+
]
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "memoffset"
|
|
221
|
+
version = "0.9.1"
|
|
222
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
224
|
+
dependencies = [
|
|
225
|
+
"autocfg",
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
[[package]]
|
|
229
|
+
name = "num-traits"
|
|
230
|
+
version = "0.2.19"
|
|
231
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
233
|
+
dependencies = [
|
|
234
|
+
"autocfg",
|
|
235
|
+
]
|
|
236
|
+
|
|
237
|
+
[[package]]
|
|
238
|
+
name = "once_cell"
|
|
239
|
+
version = "1.21.4"
|
|
240
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
242
|
+
|
|
243
|
+
[[package]]
|
|
244
|
+
name = "portable-atomic"
|
|
245
|
+
version = "1.13.1"
|
|
246
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
247
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
248
|
+
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "proc-macro2"
|
|
251
|
+
version = "1.0.106"
|
|
252
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
254
|
+
dependencies = [
|
|
255
|
+
"unicode-ident",
|
|
256
|
+
]
|
|
257
|
+
|
|
258
|
+
[[package]]
|
|
259
|
+
name = "pyo3"
|
|
260
|
+
version = "0.24.2"
|
|
261
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
+
checksum = "e5203598f366b11a02b13aa20cab591229ff0a89fd121a308a5df751d5fc9219"
|
|
263
|
+
dependencies = [
|
|
264
|
+
"cfg-if",
|
|
265
|
+
"indoc",
|
|
266
|
+
"libc",
|
|
267
|
+
"memoffset",
|
|
268
|
+
"once_cell",
|
|
269
|
+
"portable-atomic",
|
|
270
|
+
"pyo3-build-config",
|
|
271
|
+
"pyo3-ffi",
|
|
272
|
+
"pyo3-macros",
|
|
273
|
+
"unindent",
|
|
274
|
+
]
|
|
275
|
+
|
|
276
|
+
[[package]]
|
|
277
|
+
name = "pyo3-build-config"
|
|
278
|
+
version = "0.24.2"
|
|
279
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
280
|
+
checksum = "99636d423fa2ca130fa5acde3059308006d46f98caac629418e53f7ebb1e9999"
|
|
281
|
+
dependencies = [
|
|
282
|
+
"once_cell",
|
|
283
|
+
"target-lexicon",
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "pyo3-ffi"
|
|
288
|
+
version = "0.24.2"
|
|
289
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
+
checksum = "78f9cf92ba9c409279bc3305b5409d90db2d2c22392d443a87df3a1adad59e33"
|
|
291
|
+
dependencies = [
|
|
292
|
+
"libc",
|
|
293
|
+
"pyo3-build-config",
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
[[package]]
|
|
297
|
+
name = "pyo3-macros"
|
|
298
|
+
version = "0.24.2"
|
|
299
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
+
checksum = "0b999cb1a6ce21f9a6b147dcf1be9ffedf02e0043aec74dc390f3007047cecd9"
|
|
301
|
+
dependencies = [
|
|
302
|
+
"proc-macro2",
|
|
303
|
+
"pyo3-macros-backend",
|
|
304
|
+
"quote",
|
|
305
|
+
"syn",
|
|
306
|
+
]
|
|
307
|
+
|
|
308
|
+
[[package]]
|
|
309
|
+
name = "pyo3-macros-backend"
|
|
310
|
+
version = "0.24.2"
|
|
311
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
312
|
+
checksum = "822ece1c7e1012745607d5cf0bcb2874769f0f7cb34c4cde03b9358eb9ef911a"
|
|
313
|
+
dependencies = [
|
|
314
|
+
"heck",
|
|
315
|
+
"proc-macro2",
|
|
316
|
+
"pyo3-build-config",
|
|
317
|
+
"quote",
|
|
318
|
+
"syn",
|
|
319
|
+
]
|
|
320
|
+
|
|
321
|
+
[[package]]
|
|
322
|
+
name = "quote"
|
|
323
|
+
version = "1.0.45"
|
|
324
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
325
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
326
|
+
dependencies = [
|
|
327
|
+
"proc-macro2",
|
|
328
|
+
]
|
|
329
|
+
|
|
330
|
+
[[package]]
|
|
331
|
+
name = "rayon"
|
|
332
|
+
version = "1.11.0"
|
|
333
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
334
|
+
checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
|
|
335
|
+
dependencies = [
|
|
336
|
+
"either",
|
|
337
|
+
"rayon-core",
|
|
338
|
+
]
|
|
339
|
+
|
|
340
|
+
[[package]]
|
|
341
|
+
name = "rayon-core"
|
|
342
|
+
version = "1.13.0"
|
|
343
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
344
|
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
|
345
|
+
dependencies = [
|
|
346
|
+
"crossbeam-deque",
|
|
347
|
+
"crossbeam-utils",
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
[[package]]
|
|
351
|
+
name = "rustversion"
|
|
352
|
+
version = "1.0.22"
|
|
353
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
354
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
355
|
+
|
|
356
|
+
[[package]]
|
|
357
|
+
name = "ryu"
|
|
358
|
+
version = "1.0.23"
|
|
359
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
360
|
+
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
|
361
|
+
|
|
362
|
+
[[package]]
|
|
363
|
+
name = "serde"
|
|
364
|
+
version = "1.0.228"
|
|
365
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
366
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
367
|
+
dependencies = [
|
|
368
|
+
"serde_core",
|
|
369
|
+
"serde_derive",
|
|
370
|
+
]
|
|
371
|
+
|
|
372
|
+
[[package]]
|
|
373
|
+
name = "serde_core"
|
|
374
|
+
version = "1.0.228"
|
|
375
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
376
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
377
|
+
dependencies = [
|
|
378
|
+
"serde_derive",
|
|
379
|
+
]
|
|
380
|
+
|
|
381
|
+
[[package]]
|
|
382
|
+
name = "serde_derive"
|
|
383
|
+
version = "1.0.228"
|
|
384
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
385
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
386
|
+
dependencies = [
|
|
387
|
+
"proc-macro2",
|
|
388
|
+
"quote",
|
|
389
|
+
"syn",
|
|
390
|
+
]
|
|
391
|
+
|
|
392
|
+
[[package]]
|
|
393
|
+
name = "shlex"
|
|
394
|
+
version = "1.3.0"
|
|
395
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
397
|
+
|
|
398
|
+
[[package]]
|
|
399
|
+
name = "simd-csv"
|
|
400
|
+
version = "0.11.1"
|
|
401
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
+
checksum = "10444c089d92e2c651c8f0abe22e399662577d688fb7055a8a4dd5ba396e6dbe"
|
|
403
|
+
dependencies = [
|
|
404
|
+
"memchr",
|
|
405
|
+
]
|
|
406
|
+
|
|
407
|
+
[[package]]
|
|
408
|
+
name = "syn"
|
|
409
|
+
version = "2.0.117"
|
|
410
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
411
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
412
|
+
dependencies = [
|
|
413
|
+
"proc-macro2",
|
|
414
|
+
"quote",
|
|
415
|
+
"unicode-ident",
|
|
416
|
+
]
|
|
417
|
+
|
|
418
|
+
[[package]]
|
|
419
|
+
name = "target-lexicon"
|
|
420
|
+
version = "0.13.5"
|
|
421
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
422
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
423
|
+
|
|
424
|
+
[[package]]
|
|
425
|
+
name = "unicode-ident"
|
|
426
|
+
version = "1.0.24"
|
|
427
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
429
|
+
|
|
430
|
+
[[package]]
|
|
431
|
+
name = "unindent"
|
|
432
|
+
version = "0.2.4"
|
|
433
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
434
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
435
|
+
|
|
436
|
+
[[package]]
|
|
437
|
+
name = "wasm-bindgen"
|
|
438
|
+
version = "0.2.117"
|
|
439
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
440
|
+
checksum = "0551fc1bb415591e3372d0bc4780db7e587d84e2a7e79da121051c5c4b89d0b0"
|
|
441
|
+
dependencies = [
|
|
442
|
+
"cfg-if",
|
|
443
|
+
"once_cell",
|
|
444
|
+
"rustversion",
|
|
445
|
+
"wasm-bindgen-macro",
|
|
446
|
+
"wasm-bindgen-shared",
|
|
447
|
+
]
|
|
448
|
+
|
|
449
|
+
[[package]]
|
|
450
|
+
name = "wasm-bindgen-macro"
|
|
451
|
+
version = "0.2.117"
|
|
452
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
453
|
+
checksum = "7fbdf9a35adf44786aecd5ff89b4563a90325f9da0923236f6104e603c7e86be"
|
|
454
|
+
dependencies = [
|
|
455
|
+
"quote",
|
|
456
|
+
"wasm-bindgen-macro-support",
|
|
457
|
+
]
|
|
458
|
+
|
|
459
|
+
[[package]]
|
|
460
|
+
name = "wasm-bindgen-macro-support"
|
|
461
|
+
version = "0.2.117"
|
|
462
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
463
|
+
checksum = "dca9693ef2bab6d4e6707234500350d8dad079eb508dca05530c85dc3a529ff2"
|
|
464
|
+
dependencies = [
|
|
465
|
+
"bumpalo",
|
|
466
|
+
"proc-macro2",
|
|
467
|
+
"quote",
|
|
468
|
+
"syn",
|
|
469
|
+
"wasm-bindgen-shared",
|
|
470
|
+
]
|
|
471
|
+
|
|
472
|
+
[[package]]
|
|
473
|
+
name = "wasm-bindgen-shared"
|
|
474
|
+
version = "0.2.117"
|
|
475
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
476
|
+
checksum = "39129a682a6d2d841b6c429d0c51e5cb0ed1a03829d8b3d1e69a011e62cb3d3b"
|
|
477
|
+
dependencies = [
|
|
478
|
+
"unicode-ident",
|
|
479
|
+
]
|
|
480
|
+
|
|
481
|
+
[[package]]
|
|
482
|
+
name = "windows-core"
|
|
483
|
+
version = "0.62.2"
|
|
484
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
485
|
+
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
|
|
486
|
+
dependencies = [
|
|
487
|
+
"windows-implement",
|
|
488
|
+
"windows-interface",
|
|
489
|
+
"windows-link",
|
|
490
|
+
"windows-result",
|
|
491
|
+
"windows-strings",
|
|
492
|
+
]
|
|
493
|
+
|
|
494
|
+
[[package]]
|
|
495
|
+
name = "windows-implement"
|
|
496
|
+
version = "0.60.2"
|
|
497
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
498
|
+
checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
|
|
499
|
+
dependencies = [
|
|
500
|
+
"proc-macro2",
|
|
501
|
+
"quote",
|
|
502
|
+
"syn",
|
|
503
|
+
]
|
|
504
|
+
|
|
505
|
+
[[package]]
|
|
506
|
+
name = "windows-interface"
|
|
507
|
+
version = "0.59.3"
|
|
508
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
509
|
+
checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
|
|
510
|
+
dependencies = [
|
|
511
|
+
"proc-macro2",
|
|
512
|
+
"quote",
|
|
513
|
+
"syn",
|
|
514
|
+
]
|
|
515
|
+
|
|
516
|
+
[[package]]
|
|
517
|
+
name = "windows-link"
|
|
518
|
+
version = "0.2.1"
|
|
519
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
520
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
521
|
+
|
|
522
|
+
[[package]]
|
|
523
|
+
name = "windows-result"
|
|
524
|
+
version = "0.4.1"
|
|
525
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
526
|
+
checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
|
|
527
|
+
dependencies = [
|
|
528
|
+
"windows-link",
|
|
529
|
+
]
|
|
530
|
+
|
|
531
|
+
[[package]]
|
|
532
|
+
name = "windows-strings"
|
|
533
|
+
version = "0.5.1"
|
|
534
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
+
checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
|
|
536
|
+
dependencies = [
|
|
537
|
+
"windows-link",
|
|
538
|
+
]
|
|
539
|
+
|
|
540
|
+
[[package]]
|
|
541
|
+
name = "zcsv"
|
|
542
|
+
version = "0.1.0"
|
|
543
|
+
dependencies = [
|
|
544
|
+
"chrono",
|
|
545
|
+
"csv",
|
|
546
|
+
"encoding_rs",
|
|
547
|
+
"encoding_rs_io",
|
|
548
|
+
"memmap2",
|
|
549
|
+
"pyo3",
|
|
550
|
+
"rayon",
|
|
551
|
+
"serde",
|
|
552
|
+
"simd-csv",
|
|
553
|
+
]
|
zcsv-0.1.0/Cargo.toml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "zcsv"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
|
|
7
|
+
[lib]
|
|
8
|
+
name = "_core"
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
pyo3 = { version = "0.24", features = ["extension-module"] }
|
|
13
|
+
simd-csv = "0.11"
|
|
14
|
+
csv = "1.3" # kept for writer (WriterBuilder)
|
|
15
|
+
serde = { version = "1.0", features = ["derive"] }
|
|
16
|
+
rayon = "1.10"
|
|
17
|
+
memmap2 = "0.9"
|
|
18
|
+
encoding_rs = "0.8"
|
|
19
|
+
encoding_rs_io = "0.1"
|
|
20
|
+
chrono = "0.4"
|
|
21
|
+
|
|
22
|
+
[profile.release]
|
|
23
|
+
lto = true
|
|
24
|
+
codegen-units = 1
|
|
25
|
+
strip = true
|
zcsv-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Seinarukiro
|
|
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.
|
zcsv-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: zcsv
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Development Status :: 3 - Alpha
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Rust
|
|
9
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
10
|
+
Requires-Dist: pytest>=7.0 ; extra == 'dev'
|
|
11
|
+
Requires-Dist: pandas>=2.0 ; extra == 'dev'
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Summary: Blazing-fast drop-in replacement for Python's csv module, powered by Rust
|
|
15
|
+
Keywords: csv,fast,rust,parser
|
|
16
|
+
License: MIT
|
|
17
|
+
Requires-Python: >=3.9
|