rapcsv 0.0.1__cp310-cp310-manylinux_2_28_aarch64.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.
rapcsv/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Streaming async CSV — no fake async, no GIL stalls."""
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
from _rapcsv import Reader, Writer
|
|
5
|
+
except ImportError:
|
|
6
|
+
try:
|
|
7
|
+
from rapcsv._rapcsv import Reader, Writer
|
|
8
|
+
except ImportError:
|
|
9
|
+
raise ImportError("Could not import _rapcsv. Make sure rapcsv is built with maturin.")
|
|
10
|
+
|
|
11
|
+
__version__ = "0.0.1"
|
|
12
|
+
__all__ = ["Reader", "Writer"]
|
|
13
|
+
|
|
Binary file
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rapcsv
|
|
3
|
+
Version: 0.0.1
|
|
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 :: Python :: 3.8
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Summary: Streaming async CSV — no fake async, no GIL stalls.
|
|
15
|
+
Keywords: async,csv,streaming,async-io
|
|
16
|
+
Author: RAP Project
|
|
17
|
+
License: MIT
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
20
|
+
|
|
21
|
+
# rapcsv
|
|
22
|
+
|
|
23
|
+
**Streaming async CSV — no fake async, no GIL stalls.**
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Why `rap*`?
|
|
28
|
+
|
|
29
|
+
Packages prefixed with **`rap`** stand for **Real Async Python**. Unlike many libraries that merely wrap blocking I/O in `async` syntax, `rap*` packages guarantee that all I/O work is executed **outside the Python GIL** using native runtimes (primarily Rust). This means event loops are never stalled by hidden thread pools, blocking syscalls, or cooperative yielding tricks. If a `rap*` API is `async`, it is *structurally non-blocking by design*, not by convention. The `rap` prefix is a contract: measurable concurrency, real parallelism, and verifiable async behavior under load.
|
|
30
|
+
|
|
31
|
+
See the [rap-manifesto](https://github.com/rap-project/rap-manifesto) for philosophy and guarantees.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## What this package provides
|
|
36
|
+
|
|
37
|
+
- True async CSV reading and writing
|
|
38
|
+
- Streaming support for large files
|
|
39
|
+
- Native Rust-backed execution (Tokio)
|
|
40
|
+
- Zero Python thread pools
|
|
41
|
+
- Event-loop-safe concurrency under load
|
|
42
|
+
- GIL-independent I/O operations
|
|
43
|
+
- Zero-copy I/O when feasible
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pip install rapcsv
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
import asyncio
|
|
59
|
+
from rapcsv import Reader, Writer
|
|
60
|
+
|
|
61
|
+
# TODO: Implement async API
|
|
62
|
+
# async def main():
|
|
63
|
+
# reader = await Reader.create("input.csv")
|
|
64
|
+
# writer = await Writer.create("output.csv")
|
|
65
|
+
#
|
|
66
|
+
# async for row in reader:
|
|
67
|
+
# await writer.write_row(row)
|
|
68
|
+
|
|
69
|
+
# asyncio.run(main())
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Benchmarks
|
|
75
|
+
|
|
76
|
+
This package passes the Fake Async Detector. Benchmarks are available in the [rap-bench](https://github.com/rap-project/rap-bench) repository.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Non-Goals
|
|
81
|
+
|
|
82
|
+
- Not a drop-in replacement for `csv` module
|
|
83
|
+
- Not compatible with all CSV dialects (yet)
|
|
84
|
+
- Not designed for synchronous use cases
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT
|
|
91
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
rapcsv/__init__.py,sha256=ysCwTuuRPSPPe3LT5FvnfbHnvdnMlmS7JdlP0vPB-U0,358
|
|
2
|
+
rapcsv/_rapcsv.cpython-310-aarch64-linux-gnu.so,sha256=Y3BvexWQoXbJd-yBAdYPKMPHfYrf6xmkmJBA4x54HVw,990384
|
|
3
|
+
rapcsv-0.0.1.dist-info/METADATA,sha256=6jGhm61AS3QdJTKEu1tpLJaFroTc7eRqdSNX9mHylMI,2511
|
|
4
|
+
rapcsv-0.0.1.dist-info/WHEEL,sha256=bq3m1Q6KT7dDeFsqudm6Vusx-kiHlHpTOdT3bc07pO4,110
|
|
5
|
+
rapcsv-0.0.1.dist-info/licenses/LICENSE,sha256=HJep0g5MVWDpap53HHco6yBw6zfRaq32OJXEUHQQeV0,1069
|
|
6
|
+
rapcsv-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 RAP Project
|
|
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.
|
|
22
|
+
|