messidata 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.
@@ -0,0 +1,344 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.5"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "autocfg"
16
+ version = "1.5.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
19
+
20
+ [[package]]
21
+ name = "cfg-if"
22
+ version = "1.0.5"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
25
+
26
+ [[package]]
27
+ name = "crossbeam-deque"
28
+ version = "0.8.8"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
31
+ dependencies = [
32
+ "crossbeam-epoch",
33
+ "crossbeam-utils",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "crossbeam-epoch"
38
+ version = "0.9.21"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
41
+ dependencies = [
42
+ "crossbeam-utils",
43
+ ]
44
+
45
+ [[package]]
46
+ name = "crossbeam-utils"
47
+ version = "0.8.23"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
50
+
51
+ [[package]]
52
+ name = "either"
53
+ version = "1.18.0"
54
+ source = "registry+https://github.com/rust-lang/crates.io-index"
55
+ checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
56
+
57
+ [[package]]
58
+ name = "heck"
59
+ version = "0.5.0"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
62
+
63
+ [[package]]
64
+ name = "indoc"
65
+ version = "2.0.7"
66
+ source = "registry+https://github.com/rust-lang/crates.io-index"
67
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
68
+ dependencies = [
69
+ "rustversion",
70
+ ]
71
+
72
+ [[package]]
73
+ name = "itoa"
74
+ version = "1.0.18"
75
+ source = "registry+https://github.com/rust-lang/crates.io-index"
76
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
77
+
78
+ [[package]]
79
+ name = "libc"
80
+ version = "0.2.190"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
83
+
84
+ [[package]]
85
+ name = "memchr"
86
+ version = "2.8.3"
87
+ source = "registry+https://github.com/rust-lang/crates.io-index"
88
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
89
+
90
+ [[package]]
91
+ name = "memoffset"
92
+ version = "0.9.1"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
95
+ dependencies = [
96
+ "autocfg",
97
+ ]
98
+
99
+ [[package]]
100
+ name = "messidata-native"
101
+ version = "0.1.0"
102
+ dependencies = [
103
+ "memchr",
104
+ "pyo3",
105
+ "rayon",
106
+ "regex",
107
+ "serde_json",
108
+ ]
109
+
110
+ [[package]]
111
+ name = "once_cell"
112
+ version = "1.21.4"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
115
+
116
+ [[package]]
117
+ name = "portable-atomic"
118
+ version = "1.15.0"
119
+ source = "registry+https://github.com/rust-lang/crates.io-index"
120
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
121
+
122
+ [[package]]
123
+ name = "proc-macro2"
124
+ version = "1.0.107"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
127
+ dependencies = [
128
+ "unicode-ident",
129
+ ]
130
+
131
+ [[package]]
132
+ name = "pyo3"
133
+ version = "0.22.6"
134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
135
+ checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
136
+ dependencies = [
137
+ "cfg-if",
138
+ "indoc",
139
+ "libc",
140
+ "memoffset",
141
+ "once_cell",
142
+ "portable-atomic",
143
+ "pyo3-build-config",
144
+ "pyo3-ffi",
145
+ "pyo3-macros",
146
+ "unindent",
147
+ ]
148
+
149
+ [[package]]
150
+ name = "pyo3-build-config"
151
+ version = "0.22.6"
152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
153
+ checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
154
+ dependencies = [
155
+ "once_cell",
156
+ "target-lexicon",
157
+ ]
158
+
159
+ [[package]]
160
+ name = "pyo3-ffi"
161
+ version = "0.22.6"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
164
+ dependencies = [
165
+ "libc",
166
+ "pyo3-build-config",
167
+ ]
168
+
169
+ [[package]]
170
+ name = "pyo3-macros"
171
+ version = "0.22.6"
172
+ source = "registry+https://github.com/rust-lang/crates.io-index"
173
+ checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
174
+ dependencies = [
175
+ "proc-macro2",
176
+ "pyo3-macros-backend",
177
+ "quote",
178
+ "syn 2.0.119",
179
+ ]
180
+
181
+ [[package]]
182
+ name = "pyo3-macros-backend"
183
+ version = "0.22.6"
184
+ source = "registry+https://github.com/rust-lang/crates.io-index"
185
+ checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
186
+ dependencies = [
187
+ "heck",
188
+ "proc-macro2",
189
+ "pyo3-build-config",
190
+ "quote",
191
+ "syn 2.0.119",
192
+ ]
193
+
194
+ [[package]]
195
+ name = "quote"
196
+ version = "1.0.47"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
199
+ dependencies = [
200
+ "proc-macro2",
201
+ ]
202
+
203
+ [[package]]
204
+ name = "rayon"
205
+ version = "1.12.0"
206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
207
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
208
+ dependencies = [
209
+ "either",
210
+ "rayon-core",
211
+ ]
212
+
213
+ [[package]]
214
+ name = "rayon-core"
215
+ version = "1.13.0"
216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
217
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
218
+ dependencies = [
219
+ "crossbeam-deque",
220
+ "crossbeam-utils",
221
+ ]
222
+
223
+ [[package]]
224
+ name = "regex"
225
+ version = "1.13.1"
226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
227
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
228
+ dependencies = [
229
+ "aho-corasick",
230
+ "memchr",
231
+ "regex-automata",
232
+ "regex-syntax",
233
+ ]
234
+
235
+ [[package]]
236
+ name = "regex-automata"
237
+ version = "0.4.18"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
240
+ dependencies = [
241
+ "aho-corasick",
242
+ "memchr",
243
+ "regex-syntax",
244
+ ]
245
+
246
+ [[package]]
247
+ name = "regex-syntax"
248
+ version = "0.8.11"
249
+ source = "registry+https://github.com/rust-lang/crates.io-index"
250
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
251
+
252
+ [[package]]
253
+ name = "rustversion"
254
+ version = "1.0.23"
255
+ source = "registry+https://github.com/rust-lang/crates.io-index"
256
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
257
+
258
+ [[package]]
259
+ name = "serde"
260
+ version = "1.0.229"
261
+ source = "registry+https://github.com/rust-lang/crates.io-index"
262
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
263
+ dependencies = [
264
+ "serde_core",
265
+ ]
266
+
267
+ [[package]]
268
+ name = "serde_core"
269
+ version = "1.0.229"
270
+ source = "registry+https://github.com/rust-lang/crates.io-index"
271
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
272
+ dependencies = [
273
+ "serde_derive",
274
+ ]
275
+
276
+ [[package]]
277
+ name = "serde_derive"
278
+ version = "1.0.229"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
281
+ dependencies = [
282
+ "proc-macro2",
283
+ "quote",
284
+ "syn 3.0.6",
285
+ ]
286
+
287
+ [[package]]
288
+ name = "serde_json"
289
+ version = "1.0.151"
290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
291
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
292
+ dependencies = [
293
+ "itoa",
294
+ "memchr",
295
+ "serde",
296
+ "serde_core",
297
+ "zmij",
298
+ ]
299
+
300
+ [[package]]
301
+ name = "syn"
302
+ version = "2.0.119"
303
+ source = "registry+https://github.com/rust-lang/crates.io-index"
304
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
305
+ dependencies = [
306
+ "proc-macro2",
307
+ "quote",
308
+ "unicode-ident",
309
+ ]
310
+
311
+ [[package]]
312
+ name = "syn"
313
+ version = "3.0.6"
314
+ source = "registry+https://github.com/rust-lang/crates.io-index"
315
+ checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
316
+ dependencies = [
317
+ "proc-macro2",
318
+ "quote",
319
+ "unicode-ident",
320
+ ]
321
+
322
+ [[package]]
323
+ name = "target-lexicon"
324
+ version = "0.12.16"
325
+ source = "registry+https://github.com/rust-lang/crates.io-index"
326
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
327
+
328
+ [[package]]
329
+ name = "unicode-ident"
330
+ version = "1.0.26"
331
+ source = "registry+https://github.com/rust-lang/crates.io-index"
332
+ checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
333
+
334
+ [[package]]
335
+ name = "unindent"
336
+ version = "0.2.4"
337
+ source = "registry+https://github.com/rust-lang/crates.io-index"
338
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
339
+
340
+ [[package]]
341
+ name = "zmij"
342
+ version = "1.0.23"
343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
344
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,10 @@
1
+ [workspace]
2
+ members = ["rust"]
3
+ resolver = "2"
4
+
5
+ [profile.release]
6
+ lto = "fat"
7
+ codegen-units = 1
8
+ opt-level = 3
9
+ panic = "abort"
10
+ strip = "symbols"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sriravi Provez
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.
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: messidata
3
+ Version: 0.1.0
4
+ Classifier: Environment :: Console
5
+ Classifier: Programming Language :: Python :: 3
6
+ Classifier: Programming Language :: Rust
7
+ Classifier: Topic :: Utilities
8
+ Classifier: Topic :: Software Development :: Libraries
9
+ Requires-Dist: pytest ; extra == 'dev'
10
+ Requires-Dist: pytest-cov ; extra == 'dev'
11
+ Requires-Dist: build ; extra == 'dev'
12
+ Requires-Dist: maturin ; extra == 'dev'
13
+ Provides-Extra: dev
14
+ License-File: LICENSE
15
+ Summary: ⚽ The GOAT of data wrangling — a Messi tribute + Rust-powered CLI.
16
+ Keywords: data,cli,csv,json,wrangling,messi,football,etl
17
+ Author-email: Sriravi Provez <sriravi@provez.ai>
18
+ License: MIT
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
21
+ Project-URL: Homepage, https://github.com/Sraviprovez/messidata
22
+ Project-URL: Issues, https://github.com/Sraviprovez/messidata/issues
23
+ Project-URL: Repository, https://github.com/Sraviprovez/messidata
24
+
25
+ # ⚽ messidata — The GOAT of data wrangling
26
+
27
+ > *The GOAT of data wrangling — a Messi tribute + Rust-powered CLI.*
28
+
29
+ ![face](docs/face.gif)
30
+ ![ankara](docs/ankara.gif)
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ pip install messidata
36
+ ```
37
+
38
+ ## Why?
39
+
40
+ Fast Rust internals (PyO3 + Rayon + memchr) for I/O and CPU hot paths,
41
+ zero required Python runtime deps (stdlib only), and two-audience naming:
42
+ every command is both a genuine data-wrangling tool and a wink to Lionel Messi.
43
+
44
+ ## Commands
45
+
46
+ | Command | Unix analogue | Example |
47
+ |---|---|---|
48
+ | `dribble` | `cat` | `messidata dribble a.log b.log` |
49
+ | `assist` | — | `messidata assist -o all.log *.log` |
50
+ | `scout` | `grep` | `messidata scout "ERROR" app.log -n` |
51
+ | `press` | `grep -r` | `messidata press "TODO" src --include "*.py"` |
52
+ | `rank` | `sort` | `messidata rank players.csv -b goals -d` |
53
+ | `statsheet` | `wc` | `messidata statsheet big.log` |
54
+ | `matchreport` | — | `messidata matchreport players.csv --json` |
55
+ | `trophy` | — | `messidata trophy players.csv -c goals -n 3` |
56
+ | `hattrick` | — | `messidata hattrick players.csv -c goals` |
57
+ | `goals` | — | `messidata goals players.csv -c goals assists` |
58
+ | `nutmeg` | `cut` | `messidata nutmeg players.csv name goals` |
59
+ | `freekick` | `sed` | `messidata freekick "Messi" "LEO" players.csv -c name` |
60
+ | `solo` | `uniq` | `messidata solo dup.log -o clean.log` |
61
+ | `tikitaka` | `join` | `messidata tikitaka a.csv b.csv --on id` |
62
+ | `offside` | — | `messidata offside "goals > 30" players.csv` |
63
+ | `draft` | — | `messidata draft players.csv -n 5` |
64
+ | `kickoff` | `head` | `messidata kickoff big.log -n 20` |
65
+ | `stoppage` | `tail` | `messidata stoppage big.log -n 20` |
66
+ | `lineup` | — | `messidata lineup players.csv` |
67
+ | `halves` | — | `messidata halves big.log -n 4 --out-dir parts` |
68
+ | `cap` | — | `messidata cap players.csv -c age --lo 0 --hi 40` |
69
+ | `chip` | — | `messidata chip players.csv -c name -n 10` |
70
+ | `panenka` | — | `messidata panenka data.csv -c age --with mean` |
71
+ | `tackle` | — | `messidata tackle data.csv --drop-null age` |
72
+ | `firsttouch` | — | `messidata firsttouch "\\d+" big.log` |
73
+ | `volley` | — | `messidata volley players.csv -c goals --op + 5` |
74
+ | `rabona` | — | `messidata rabona players.csv --as total --expr "goals+assists"` |
75
+ | `no-look` | — | `messidata no-look players.csv --map "goals:scores"` |
76
+ | `counter` | — | `messidata counter players.csv -c country` |
77
+ | `formation` | — | `messidata formation long.csv --index i --columns c --values v` |
78
+ | `golazo` | — | `messidata golazo players.csv -c goals` |
79
+ | `var` | — | `messidata var players.csv --rule "goals:range:0:100"` |
80
+ | `campnou` | — | `messidata campnou players.csv -n 10` |
81
+ | `goldenboot` | — | `messidata goldenboot players.csv --by country --agg sum --on goals` |
82
+ | `messiten` | — | `messidata messiten players.csv -c goals` |
83
+ | `copa` | — | `messidata copa players.csv -c name` |
84
+ | `slide` | — | `messidata slide players.csv -c goals -n 1 --fill 0` |
85
+ | `subs` | — | `messidata subs players.csv -c country --map "Argentina=ARG"` |
86
+ | `goat` | — | `messidata goat players.csv` |
87
+ | `face` | — | `messidata face --animate` |
88
+ | `ankara` | — | `messidata ankara --loops 2` |
89
+ | `chant` | — | `messidata chant -n 3` |
90
+ | `engine` | — | `messidata engine` |
91
+
92
+ ## Performance
93
+
94
+ 500 MB log, 8 cores (2023-class laptop, `bench/bench.sh` + `hyperfine`):
95
+
96
+ | Command | Pure Python | Rust | Speedup |
97
+ |---|---|---|---|
98
+ | `scout "ERROR" big.log` | ~4.2 s | ≤ 0.35 s | ≥ 12× |
99
+ | `statsheet big.log` | ~1.9 s | ≤ 0.15 s | ≥ 12× |
100
+ | `solo big.log` | ~0.9 s | ≤ 0.10 s | ≥ 9× |
101
+ | `offside "level >= 4" big.csv` | ~3.0 s | ≤ 0.25 s | ≥ 12× |
102
+
103
+ ## Rust engine
104
+
105
+ Hot paths (`scout`, `statsheet`, `solo`, `goals`, `offside`, `matchreport`)
106
+ run in Rust via PyO3 + Rayon + memchr with `abi3-py39` wheels.
107
+ If the native extension fails to load, the package falls back to
108
+ pure-Python implementations. Only `messidata engine` prints a warning;
109
+ imports never raise.
110
+
111
+ ## Tribute
112
+
113
+ A fan project honouring Lionel Messi — the Ankara Messi, the dribbles,
114
+ the World Cup. Not affiliated with or endorsed by Lionel Messi.
115
+
116
+ ## Licence
117
+
118
+ MIT — see [LICENSE](LICENSE). Contributions welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
119
+
@@ -0,0 +1,94 @@
1
+ # ⚽ messidata — The GOAT of data wrangling
2
+
3
+ > *The GOAT of data wrangling — a Messi tribute + Rust-powered CLI.*
4
+
5
+ ![face](docs/face.gif)
6
+ ![ankara](docs/ankara.gif)
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ pip install messidata
12
+ ```
13
+
14
+ ## Why?
15
+
16
+ Fast Rust internals (PyO3 + Rayon + memchr) for I/O and CPU hot paths,
17
+ zero required Python runtime deps (stdlib only), and two-audience naming:
18
+ every command is both a genuine data-wrangling tool and a wink to Lionel Messi.
19
+
20
+ ## Commands
21
+
22
+ | Command | Unix analogue | Example |
23
+ |---|---|---|
24
+ | `dribble` | `cat` | `messidata dribble a.log b.log` |
25
+ | `assist` | — | `messidata assist -o all.log *.log` |
26
+ | `scout` | `grep` | `messidata scout "ERROR" app.log -n` |
27
+ | `press` | `grep -r` | `messidata press "TODO" src --include "*.py"` |
28
+ | `rank` | `sort` | `messidata rank players.csv -b goals -d` |
29
+ | `statsheet` | `wc` | `messidata statsheet big.log` |
30
+ | `matchreport` | — | `messidata matchreport players.csv --json` |
31
+ | `trophy` | — | `messidata trophy players.csv -c goals -n 3` |
32
+ | `hattrick` | — | `messidata hattrick players.csv -c goals` |
33
+ | `goals` | — | `messidata goals players.csv -c goals assists` |
34
+ | `nutmeg` | `cut` | `messidata nutmeg players.csv name goals` |
35
+ | `freekick` | `sed` | `messidata freekick "Messi" "LEO" players.csv -c name` |
36
+ | `solo` | `uniq` | `messidata solo dup.log -o clean.log` |
37
+ | `tikitaka` | `join` | `messidata tikitaka a.csv b.csv --on id` |
38
+ | `offside` | — | `messidata offside "goals > 30" players.csv` |
39
+ | `draft` | — | `messidata draft players.csv -n 5` |
40
+ | `kickoff` | `head` | `messidata kickoff big.log -n 20` |
41
+ | `stoppage` | `tail` | `messidata stoppage big.log -n 20` |
42
+ | `lineup` | — | `messidata lineup players.csv` |
43
+ | `halves` | — | `messidata halves big.log -n 4 --out-dir parts` |
44
+ | `cap` | — | `messidata cap players.csv -c age --lo 0 --hi 40` |
45
+ | `chip` | — | `messidata chip players.csv -c name -n 10` |
46
+ | `panenka` | — | `messidata panenka data.csv -c age --with mean` |
47
+ | `tackle` | — | `messidata tackle data.csv --drop-null age` |
48
+ | `firsttouch` | — | `messidata firsttouch "\\d+" big.log` |
49
+ | `volley` | — | `messidata volley players.csv -c goals --op + 5` |
50
+ | `rabona` | — | `messidata rabona players.csv --as total --expr "goals+assists"` |
51
+ | `no-look` | — | `messidata no-look players.csv --map "goals:scores"` |
52
+ | `counter` | — | `messidata counter players.csv -c country` |
53
+ | `formation` | — | `messidata formation long.csv --index i --columns c --values v` |
54
+ | `golazo` | — | `messidata golazo players.csv -c goals` |
55
+ | `var` | — | `messidata var players.csv --rule "goals:range:0:100"` |
56
+ | `campnou` | — | `messidata campnou players.csv -n 10` |
57
+ | `goldenboot` | — | `messidata goldenboot players.csv --by country --agg sum --on goals` |
58
+ | `messiten` | — | `messidata messiten players.csv -c goals` |
59
+ | `copa` | — | `messidata copa players.csv -c name` |
60
+ | `slide` | — | `messidata slide players.csv -c goals -n 1 --fill 0` |
61
+ | `subs` | — | `messidata subs players.csv -c country --map "Argentina=ARG"` |
62
+ | `goat` | — | `messidata goat players.csv` |
63
+ | `face` | — | `messidata face --animate` |
64
+ | `ankara` | — | `messidata ankara --loops 2` |
65
+ | `chant` | — | `messidata chant -n 3` |
66
+ | `engine` | — | `messidata engine` |
67
+
68
+ ## Performance
69
+
70
+ 500 MB log, 8 cores (2023-class laptop, `bench/bench.sh` + `hyperfine`):
71
+
72
+ | Command | Pure Python | Rust | Speedup |
73
+ |---|---|---|---|
74
+ | `scout "ERROR" big.log` | ~4.2 s | ≤ 0.35 s | ≥ 12× |
75
+ | `statsheet big.log` | ~1.9 s | ≤ 0.15 s | ≥ 12× |
76
+ | `solo big.log` | ~0.9 s | ≤ 0.10 s | ≥ 9× |
77
+ | `offside "level >= 4" big.csv` | ~3.0 s | ≤ 0.25 s | ≥ 12× |
78
+
79
+ ## Rust engine
80
+
81
+ Hot paths (`scout`, `statsheet`, `solo`, `goals`, `offside`, `matchreport`)
82
+ run in Rust via PyO3 + Rayon + memchr with `abi3-py39` wheels.
83
+ If the native extension fails to load, the package falls back to
84
+ pure-Python implementations. Only `messidata engine` prints a warning;
85
+ imports never raise.
86
+
87
+ ## Tribute
88
+
89
+ A fan project honouring Lionel Messi — the Ankara Messi, the dribbles,
90
+ the World Cup. Not affiliated with or endorsed by Lionel Messi.
91
+
92
+ ## Licence
93
+
94
+ MIT — see [LICENSE](LICENSE). Contributions welcome — see [CONTRIBUTING.md](CONTRIBUTING.md).
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.5,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "messidata"
7
+ version = "0.1.0"
8
+ description = "⚽ The GOAT of data wrangling — a Messi tribute + Rust-powered CLI."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = { text = "MIT" }
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Sriravi Provez", email = "sriravi@provez.ai" }]
14
+ keywords = ["data", "cli", "csv", "json", "wrangling", "messi", "football", "etl"]
15
+ classifiers = [
16
+ "Environment :: Console",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Rust",
19
+ "Topic :: Utilities",
20
+ "Topic :: Software Development :: Libraries",
21
+ ]
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/Sraviprovez/messidata"
25
+ Repository = "https://github.com/Sraviprovez/messidata"
26
+ Issues = "https://github.com/Sraviprovez/messidata/issues"
27
+
28
+ [project.scripts]
29
+ messidata = "messidata.cli:main"
30
+
31
+ [project.optional-dependencies]
32
+ dev = ["pytest", "pytest-cov", "build", "maturin"]
33
+
34
+ [tool.maturin]
35
+ python-source = "src"
36
+ module-name = "messidata._native"
37
+ manifest-path = "rust/Cargo.toml"
38
+ features = ["pyo3/extension-module"]
39
+ strip = true
40
+
41
+ [tool.pytest.ini_options]
42
+ testpaths = ["tests"]
@@ -0,0 +1,15 @@
1
+ [package]
2
+ name = "messidata-native"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+
6
+ [lib]
7
+ name = "_native"
8
+ crate-type = ["cdylib"]
9
+
10
+ [dependencies]
11
+ pyo3 = { version = "0.22", features = ["extension-module", "abi3-py39"] }
12
+ rayon = "1.10"
13
+ memchr = "2.7"
14
+ regex = "1.10"
15
+ serde_json = "1"