prasasti 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.
Files changed (33) hide show
  1. prasasti-0.1.0/Cargo.lock +569 -0
  2. prasasti-0.1.0/Cargo.toml +19 -0
  3. prasasti-0.1.0/PKG-INFO +28 -0
  4. prasasti-0.1.0/README.md +14 -0
  5. prasasti-0.1.0/crates/prasasti/Cargo.toml +21 -0
  6. prasasti-0.1.0/crates/prasasti/README.md +120 -0
  7. prasasti-0.1.0/crates/prasasti/src/lib.rs +312 -0
  8. prasasti-0.1.0/crates/prasasti-pdf/Cargo.toml +24 -0
  9. prasasti-0.1.0/crates/prasasti-pdf/README.md +120 -0
  10. prasasti-0.1.0/crates/prasasti-pdf/src/cmap.rs +314 -0
  11. prasasti-0.1.0/crates/prasasti-pdf/src/content.rs +203 -0
  12. prasasti-0.1.0/crates/prasasti-pdf/src/crypt.rs +570 -0
  13. prasasti-0.1.0/crates/prasasti-pdf/src/document.rs +919 -0
  14. prasasti-0.1.0/crates/prasasti-pdf/src/error.rs +44 -0
  15. prasasti-0.1.0/crates/prasasti-pdf/src/filters.rs +413 -0
  16. prasasti-0.1.0/crates/prasasti-pdf/src/font.rs +626 -0
  17. prasasti-0.1.0/crates/prasasti-pdf/src/layout.rs +378 -0
  18. prasasti-0.1.0/crates/prasasti-pdf/src/lex.rs +301 -0
  19. prasasti-0.1.0/crates/prasasti-pdf/src/lib.rs +183 -0
  20. prasasti-0.1.0/crates/prasasti-pdf/src/object.rs +187 -0
  21. prasasti-0.1.0/crates/prasasti-pdf/src/parser.rs +361 -0
  22. prasasti-0.1.0/crates/prasasti-pdf/src/tables.rs +7668 -0
  23. prasasti-0.1.0/crates/prasasti-pdf/src/text.rs +404 -0
  24. prasasti-0.1.0/crates/prasasti-python/Cargo.toml +16 -0
  25. prasasti-0.1.0/crates/prasasti-python/README.md +14 -0
  26. prasasti-0.1.0/crates/prasasti-python/src/lib.rs +135 -0
  27. prasasti-0.1.0/crates/prasasti-python/tests/test_basic.py +42 -0
  28. prasasti-0.1.0/crates/prasasti-txt/Cargo.toml +12 -0
  29. prasasti-0.1.0/crates/prasasti-txt/src/lib.rs +148 -0
  30. prasasti-0.1.0/pyproject.toml +26 -0
  31. prasasti-0.1.0/python/prasasti/__init__.py +5 -0
  32. prasasti-0.1.0/python/prasasti/__init__.pyi +26 -0
  33. prasasti-0.1.0/python/prasasti/py.typed +0 -0
@@ -0,0 +1,569 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "bitflags"
7
+ version = "2.13.2"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
10
+
11
+ [[package]]
12
+ name = "block-buffer"
13
+ version = "0.12.1"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
16
+ dependencies = [
17
+ "hybrid-array",
18
+ ]
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 = "const-oid"
28
+ version = "0.10.3"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a"
31
+
32
+ [[package]]
33
+ name = "convert_case"
34
+ version = "0.12.0"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "1af709f1f33454bf52eadfc8c78b3b9ef9cb26fb54d16dc9cd9a7299f899fd1b"
37
+ dependencies = [
38
+ "unicode-segmentation",
39
+ ]
40
+
41
+ [[package]]
42
+ name = "cpufeatures"
43
+ version = "0.3.1"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
46
+ dependencies = [
47
+ "libc",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "crossbeam-deque"
52
+ version = "0.8.8"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
55
+ dependencies = [
56
+ "crossbeam-epoch",
57
+ "crossbeam-utils",
58
+ ]
59
+
60
+ [[package]]
61
+ name = "crossbeam-epoch"
62
+ version = "0.9.21"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
65
+ dependencies = [
66
+ "crossbeam-utils",
67
+ ]
68
+
69
+ [[package]]
70
+ name = "crossbeam-utils"
71
+ version = "0.8.23"
72
+ source = "registry+https://github.com/rust-lang/crates.io-index"
73
+ checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
74
+
75
+ [[package]]
76
+ name = "crypto-common"
77
+ version = "0.2.2"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
80
+ dependencies = [
81
+ "hybrid-array",
82
+ ]
83
+
84
+ [[package]]
85
+ name = "ctor"
86
+ version = "1.0.14"
87
+ source = "registry+https://github.com/rust-lang/crates.io-index"
88
+ checksum = "ea691ed9f36489d087419b8b2ba3ef27d89621380b4178c73e2445a379e4e0f4"
89
+ dependencies = [
90
+ "link-section",
91
+ ]
92
+
93
+ [[package]]
94
+ name = "digest"
95
+ version = "0.11.3"
96
+ source = "registry+https://github.com/rust-lang/crates.io-index"
97
+ checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
98
+ dependencies = [
99
+ "block-buffer",
100
+ "const-oid",
101
+ "crypto-common",
102
+ ]
103
+
104
+ [[package]]
105
+ name = "either"
106
+ version = "1.19.0"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
109
+
110
+ [[package]]
111
+ name = "flate2"
112
+ version = "1.1.11"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
115
+ dependencies = [
116
+ "zlib-rs",
117
+ ]
118
+
119
+ [[package]]
120
+ name = "futures"
121
+ version = "0.3.34"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3"
124
+ dependencies = [
125
+ "futures-channel",
126
+ "futures-core",
127
+ "futures-executor",
128
+ "futures-io",
129
+ "futures-sink",
130
+ "futures-task",
131
+ "futures-util",
132
+ ]
133
+
134
+ [[package]]
135
+ name = "futures-channel"
136
+ version = "0.3.34"
137
+ source = "registry+https://github.com/rust-lang/crates.io-index"
138
+ checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
139
+ dependencies = [
140
+ "futures-core",
141
+ "futures-sink",
142
+ ]
143
+
144
+ [[package]]
145
+ name = "futures-core"
146
+ version = "0.3.34"
147
+ source = "registry+https://github.com/rust-lang/crates.io-index"
148
+ checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
149
+
150
+ [[package]]
151
+ name = "futures-executor"
152
+ version = "0.3.34"
153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
154
+ checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
155
+ dependencies = [
156
+ "futures-core",
157
+ "futures-task",
158
+ "futures-util",
159
+ ]
160
+
161
+ [[package]]
162
+ name = "futures-io"
163
+ version = "0.3.34"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
166
+
167
+ [[package]]
168
+ name = "futures-macro"
169
+ version = "0.3.34"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
172
+ dependencies = [
173
+ "proc-macro2",
174
+ "quote",
175
+ "syn",
176
+ ]
177
+
178
+ [[package]]
179
+ name = "futures-sink"
180
+ version = "0.3.34"
181
+ source = "registry+https://github.com/rust-lang/crates.io-index"
182
+ checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
183
+
184
+ [[package]]
185
+ name = "futures-task"
186
+ version = "0.3.34"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
189
+
190
+ [[package]]
191
+ name = "futures-util"
192
+ version = "0.3.34"
193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
194
+ checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
195
+ dependencies = [
196
+ "futures-channel",
197
+ "futures-core",
198
+ "futures-io",
199
+ "futures-macro",
200
+ "futures-sink",
201
+ "futures-task",
202
+ "memchr",
203
+ "pin-project-lite",
204
+ "slab",
205
+ ]
206
+
207
+ [[package]]
208
+ name = "heck"
209
+ version = "0.5.0"
210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
211
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
212
+
213
+ [[package]]
214
+ name = "hybrid-array"
215
+ version = "0.4.15"
216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
217
+ checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
218
+ dependencies = [
219
+ "typenum",
220
+ ]
221
+
222
+ [[package]]
223
+ name = "libc"
224
+ version = "0.2.191"
225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
226
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
227
+
228
+ [[package]]
229
+ name = "libloading"
230
+ version = "0.9.1"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "a1832accd5a4ca2795ace4d05d15c4039be15b62d3b950eff99746a990e3cc10"
233
+ dependencies = [
234
+ "cfg-if",
235
+ "windows-link",
236
+ ]
237
+
238
+ [[package]]
239
+ name = "link-section"
240
+ version = "0.19.4"
241
+ source = "registry+https://github.com/rust-lang/crates.io-index"
242
+ checksum = "4d9aae57673c1a235149777a74d152f3210ebd3e3b13346d2cdb6809e566bd3c"
243
+
244
+ [[package]]
245
+ name = "md-5"
246
+ version = "0.11.0"
247
+ source = "registry+https://github.com/rust-lang/crates.io-index"
248
+ checksum = "69b6441f590336821bb897fb28fc622898ccceb1d6cea3fde5ea86b090c4de98"
249
+ dependencies = [
250
+ "cfg-if",
251
+ "digest",
252
+ ]
253
+
254
+ [[package]]
255
+ name = "memchr"
256
+ version = "2.8.4"
257
+ source = "registry+https://github.com/rust-lang/crates.io-index"
258
+ checksum = "4566d79b1fa17cb1520b5ec00f8d8865b2121b8e2e27a6ebbac504f45d86eb36"
259
+
260
+ [[package]]
261
+ name = "memmap2"
262
+ version = "0.9.12"
263
+ source = "registry+https://github.com/rust-lang/crates.io-index"
264
+ checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157"
265
+ dependencies = [
266
+ "libc",
267
+ ]
268
+
269
+ [[package]]
270
+ name = "napi"
271
+ version = "3.16.3"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "3638796ff28754eaeca96cda32e0c4e2e30b83d0e53f32a4537d6a8bcf15f532"
274
+ dependencies = [
275
+ "bitflags",
276
+ "ctor",
277
+ "futures",
278
+ "libc",
279
+ "napi-build",
280
+ "napi-sys",
281
+ "nohash-hasher",
282
+ "rustc-hash",
283
+ ]
284
+
285
+ [[package]]
286
+ name = "napi-build"
287
+ version = "2.7.0"
288
+ source = "registry+https://github.com/rust-lang/crates.io-index"
289
+ checksum = "adb4c45ca811160461dba7eccc68b66702ddb5c9f30afb16007caac3c0eb6e2a"
290
+
291
+ [[package]]
292
+ name = "napi-derive"
293
+ version = "3.7.2"
294
+ source = "registry+https://github.com/rust-lang/crates.io-index"
295
+ checksum = "d3f284288c8a2a4a66519e24dcc0cbfa1b7e0abc37bdd073185c68276f08f3d3"
296
+ dependencies = [
297
+ "convert_case",
298
+ "napi-derive-backend",
299
+ "proc-macro2",
300
+ "quote",
301
+ "syn",
302
+ "unicode-ident",
303
+ ]
304
+
305
+ [[package]]
306
+ name = "napi-derive-backend"
307
+ version = "8.0.0"
308
+ source = "registry+https://github.com/rust-lang/crates.io-index"
309
+ checksum = "32477ed34450779386e6aaa3b33bcf3916035b7de0fee68b73716f65a3894003"
310
+ dependencies = [
311
+ "convert_case",
312
+ "proc-macro2",
313
+ "quote",
314
+ "semver",
315
+ "syn",
316
+ ]
317
+
318
+ [[package]]
319
+ name = "napi-sys"
320
+ version = "3.4.1"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "d153beb7d5c973f4b9395be8a83054a28968b61188f1dd1a2cc2321af22daea2"
323
+ dependencies = [
324
+ "libloading",
325
+ ]
326
+
327
+ [[package]]
328
+ name = "nohash-hasher"
329
+ version = "0.2.0"
330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
331
+ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
332
+
333
+ [[package]]
334
+ name = "once_cell"
335
+ version = "1.21.4"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
338
+
339
+ [[package]]
340
+ name = "pin-project-lite"
341
+ version = "0.2.19"
342
+ source = "registry+https://github.com/rust-lang/crates.io-index"
343
+ checksum = "f120c8d5021b34abd2f2ffd7ee96687cbcd6c54a3e68d86b6169f4a5cd480ffe"
344
+
345
+ [[package]]
346
+ name = "portable-atomic"
347
+ version = "1.15.0"
348
+ source = "registry+https://github.com/rust-lang/crates.io-index"
349
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
350
+
351
+ [[package]]
352
+ name = "prasasti"
353
+ version = "0.1.0"
354
+ dependencies = [
355
+ "prasasti-pdf",
356
+ "prasasti-txt",
357
+ ]
358
+
359
+ [[package]]
360
+ name = "prasasti-cli"
361
+ version = "0.1.0"
362
+ dependencies = [
363
+ "prasasti",
364
+ ]
365
+
366
+ [[package]]
367
+ name = "prasasti-node"
368
+ version = "0.1.0"
369
+ dependencies = [
370
+ "napi",
371
+ "napi-build",
372
+ "napi-derive",
373
+ "prasasti",
374
+ ]
375
+
376
+ [[package]]
377
+ name = "prasasti-pdf"
378
+ version = "0.1.0"
379
+ dependencies = [
380
+ "flate2",
381
+ "md-5",
382
+ "memchr",
383
+ "memmap2",
384
+ "rayon",
385
+ "sha2",
386
+ ]
387
+
388
+ [[package]]
389
+ name = "prasasti-python"
390
+ version = "0.1.0"
391
+ dependencies = [
392
+ "prasasti",
393
+ "pyo3",
394
+ ]
395
+
396
+ [[package]]
397
+ name = "prasasti-txt"
398
+ version = "0.1.0"
399
+
400
+ [[package]]
401
+ name = "proc-macro2"
402
+ version = "1.0.107"
403
+ source = "registry+https://github.com/rust-lang/crates.io-index"
404
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
405
+ dependencies = [
406
+ "unicode-ident",
407
+ ]
408
+
409
+ [[package]]
410
+ name = "pyo3"
411
+ version = "0.30.1"
412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
413
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
414
+ dependencies = [
415
+ "libc",
416
+ "once_cell",
417
+ "portable-atomic",
418
+ "pyo3-build-config",
419
+ "pyo3-ffi",
420
+ "pyo3-macros",
421
+ ]
422
+
423
+ [[package]]
424
+ name = "pyo3-build-config"
425
+ version = "0.30.1"
426
+ source = "registry+https://github.com/rust-lang/crates.io-index"
427
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
428
+ dependencies = [
429
+ "target-lexicon",
430
+ ]
431
+
432
+ [[package]]
433
+ name = "pyo3-ffi"
434
+ version = "0.30.1"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
437
+ dependencies = [
438
+ "libc",
439
+ "pyo3-build-config",
440
+ ]
441
+
442
+ [[package]]
443
+ name = "pyo3-macros"
444
+ version = "0.30.1"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
447
+ dependencies = [
448
+ "proc-macro2",
449
+ "pyo3-macros-backend",
450
+ "quote",
451
+ "syn",
452
+ ]
453
+
454
+ [[package]]
455
+ name = "pyo3-macros-backend"
456
+ version = "0.30.1"
457
+ source = "registry+https://github.com/rust-lang/crates.io-index"
458
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
459
+ dependencies = [
460
+ "heck",
461
+ "proc-macro2",
462
+ "quote",
463
+ "syn",
464
+ ]
465
+
466
+ [[package]]
467
+ name = "quote"
468
+ version = "1.0.47"
469
+ source = "registry+https://github.com/rust-lang/crates.io-index"
470
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
471
+ dependencies = [
472
+ "proc-macro2",
473
+ ]
474
+
475
+ [[package]]
476
+ name = "rayon"
477
+ version = "1.12.0"
478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
479
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
480
+ dependencies = [
481
+ "either",
482
+ "rayon-core",
483
+ ]
484
+
485
+ [[package]]
486
+ name = "rayon-core"
487
+ version = "1.13.0"
488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
489
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
490
+ dependencies = [
491
+ "crossbeam-deque",
492
+ "crossbeam-utils",
493
+ ]
494
+
495
+ [[package]]
496
+ name = "rustc-hash"
497
+ version = "2.1.4"
498
+ source = "registry+https://github.com/rust-lang/crates.io-index"
499
+ checksum = "ca420ddf5554e546a707e0ecb8bd311d505ee00b40982a7064b8bdc48aa59336"
500
+
501
+ [[package]]
502
+ name = "semver"
503
+ version = "1.0.28"
504
+ source = "registry+https://github.com/rust-lang/crates.io-index"
505
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
506
+
507
+ [[package]]
508
+ name = "sha2"
509
+ version = "0.11.3"
510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
511
+ checksum = "820083d430c52864bf834423fc988cbcf61685d6f9d22a765a64e3f6cfe3521c"
512
+ dependencies = [
513
+ "cfg-if",
514
+ "cpufeatures",
515
+ "digest",
516
+ ]
517
+
518
+ [[package]]
519
+ name = "slab"
520
+ version = "0.4.12"
521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
522
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
523
+
524
+ [[package]]
525
+ name = "syn"
526
+ version = "3.0.10"
527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
528
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
529
+ dependencies = [
530
+ "proc-macro2",
531
+ "quote",
532
+ "unicode-ident",
533
+ ]
534
+
535
+ [[package]]
536
+ name = "target-lexicon"
537
+ version = "0.13.6"
538
+ source = "registry+https://github.com/rust-lang/crates.io-index"
539
+ checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
540
+
541
+ [[package]]
542
+ name = "typenum"
543
+ version = "1.20.1"
544
+ source = "registry+https://github.com/rust-lang/crates.io-index"
545
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
546
+
547
+ [[package]]
548
+ name = "unicode-ident"
549
+ version = "1.0.27"
550
+ source = "registry+https://github.com/rust-lang/crates.io-index"
551
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
552
+
553
+ [[package]]
554
+ name = "unicode-segmentation"
555
+ version = "1.13.3"
556
+ source = "registry+https://github.com/rust-lang/crates.io-index"
557
+ checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
558
+
559
+ [[package]]
560
+ name = "windows-link"
561
+ version = "0.2.1"
562
+ source = "registry+https://github.com/rust-lang/crates.io-index"
563
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
564
+
565
+ [[package]]
566
+ name = "zlib-rs"
567
+ version = "0.6.9"
568
+ source = "registry+https://github.com/rust-lang/crates.io-index"
569
+ checksum = "aa76918995d776d9dd34d371030be228d021137449771493d56e29f77e4148ac"
@@ -0,0 +1,19 @@
1
+ [workspace]
2
+ resolver = "2"
3
+ members = ["crates/prasasti", "crates/prasasti-pdf", "crates/prasasti-txt", "crates/prasasti-python"]
4
+
5
+ [workspace.package]
6
+ version = "0.1.0"
7
+ edition = "2021"
8
+ license = "MIT OR Apache-2.0"
9
+ repository = "https://github.com/zakiego/prasasti"
10
+ rust-version = "1.85"
11
+
12
+ [profile.release]
13
+ lto = "fat"
14
+ codegen-units = 1
15
+ panic = "unwind"
16
+ debug = false
17
+
18
+ [profile.bench]
19
+ inherits = "release"
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.4
2
+ Name: prasasti
3
+ Version: 0.1.0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Topic :: Text Processing
7
+ Summary: Fast text extraction from documents (PDF, plain text) with a Rust core
8
+ Keywords: pdf,text extraction,parser,rust
9
+ License-Expression: MIT OR Apache-2.0
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
12
+ Project-URL: Repository, https://github.com/zakiego/prasasti
13
+
14
+ # prasasti for Python
15
+
16
+ Fast text extraction from documents (PDF and plain text so far) with a Rust core. PDF support covers reading order (columns, tables), RC4/AES decryption and recovery of damaged files.
17
+
18
+ ```python
19
+ import prasasti
20
+
21
+ doc = prasasti.Document("paper.pdf") # a path, bytes or bytearray
22
+ print(doc.page_count)
23
+ pages = doc.extract_text() # list[str]
24
+ text = doc.text(threads=0) # every core, pages joined by \f
25
+ ```
26
+
27
+ See https://github.com/zakiego/prasasti for benchmarks and details. MIT or Apache-2.0.
28
+
@@ -0,0 +1,14 @@
1
+ # prasasti for Python
2
+
3
+ Fast text extraction from documents (PDF and plain text so far) with a Rust core. PDF support covers reading order (columns, tables), RC4/AES decryption and recovery of damaged files.
4
+
5
+ ```python
6
+ import prasasti
7
+
8
+ doc = prasasti.Document("paper.pdf") # a path, bytes or bytearray
9
+ print(doc.page_count)
10
+ pages = doc.extract_text() # list[str]
11
+ text = doc.text(threads=0) # every core, pages joined by \f
12
+ ```
13
+
14
+ See https://github.com/zakiego/prasasti for benchmarks and details. MIT or Apache-2.0.
@@ -0,0 +1,21 @@
1
+ [package]
2
+ name = "prasasti"
3
+ description = "Fast text extraction from documents (PDF, plain text, more to come) with one API"
4
+ version.workspace = true
5
+ edition.workspace = true
6
+ license.workspace = true
7
+ repository.workspace = true
8
+ rust-version.workspace = true
9
+ readme = "README.md"
10
+ keywords = ["pdf", "text-extraction", "document", "parser"]
11
+ categories = ["parser-implementations", "text-processing"]
12
+
13
+ [features]
14
+ default = ["pdf", "txt", "parallel"]
15
+ pdf = ["dep:prasasti-pdf"]
16
+ txt = ["dep:prasasti-txt"]
17
+ parallel = ["prasasti-pdf?/parallel"]
18
+
19
+ [dependencies]
20
+ prasasti-pdf = { path = "../prasasti-pdf", version = "0.1.0", optional = true }
21
+ prasasti-txt = { path = "../prasasti-txt", version = "0.1.0", optional = true }