ptars 0.0.3__cp310-abi3-win32.whl → 0.0.5__cp310-abi3-win32.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.
- ptars/_lib.pyd +0 -0
- ptars/internal.py +0 -1
- {ptars-0.0.3.dist-info → ptars-0.0.5.dist-info}/METADATA +38 -6
- ptars-0.0.5.dist-info/RECORD +7 -0
- {ptars-0.0.3.dist-info → ptars-0.0.5.dist-info}/WHEEL +1 -1
- ptars-0.0.3.dist-info/RECORD +0 -7
- {ptars-0.0.3.dist-info → ptars-0.0.5.dist-info}/licenses/LICENSE +0 -0
ptars/_lib.pyd
CHANGED
Binary file
|
ptars/internal.py
CHANGED
@@ -1,26 +1,28 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: ptars
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.5
|
4
4
|
Classifier: Programming Language :: Rust
|
5
5
|
Classifier: Operating System :: POSIX :: Linux
|
6
6
|
Classifier: Natural Language :: English
|
7
7
|
Classifier: Programming Language :: Python :: 3.10
|
8
8
|
Classifier: Programming Language :: Python :: 3.11
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
10
|
-
|
11
|
-
Requires-Dist:
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
11
|
+
Requires-Dist: protobuf>3
|
12
|
+
Requires-Dist: pyarrow>15
|
12
13
|
License-File: LICENSE
|
13
14
|
Summary: Fast python conversion from protobuf to arrow using rust
|
14
15
|
Home-Page: https://github.com/0x26res/ptars
|
15
16
|
Author: 0x26res <0x26res@gmail.net>
|
16
17
|
Author-email: 0x26res <0x26res@gmail.net>
|
17
18
|
License: Apache-2.0
|
18
|
-
Requires-Python: >=3.
|
19
|
+
Requires-Python: >=3.10
|
19
20
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
20
21
|
Project-URL: Source Code, https://github.com/0x26res/ptars
|
21
22
|
|
22
23
|
# ptars
|
23
24
|
|
25
|
+
[![Ruff][ruff-image]][ruff-url]
|
24
26
|
[![PyPI Version][pypi-image]][pypi-url]
|
25
27
|
[![Python Version][versions-image]][versions-url]
|
26
28
|
[![Github Stars][stars-image]][stars-url]
|
@@ -31,6 +33,7 @@ Project-URL: Source Code, https://github.com/0x26res/ptars
|
|
31
33
|
[![Downloads][downloads-month-image]][downloads-month-url]
|
32
34
|
[![Code style: black][codestyle-image]][codestyle-url]
|
33
35
|
[![snyk][snyk-image]][snyk-url]
|
36
|
+
![Size][repo-size-url]
|
34
37
|
|
35
38
|
Protobuf to Arrow, using Rust
|
36
39
|
|
@@ -85,6 +88,32 @@ messages_back: list[SearchRequest] = [
|
|
85
88
|
]
|
86
89
|
```
|
87
90
|
|
91
|
+
## Benchmark against protarrow
|
92
|
+
|
93
|
+
[Ptars](https://github.com/0x26res/ptars) is a rust implementation of
|
94
|
+
[protarrow](https://github.com/tradewelltech/protarrow),
|
95
|
+
which is implemented in plain python.
|
96
|
+
It is:
|
97
|
+
|
98
|
+
- marginally faster when converting from proto to arrow.
|
99
|
+
- About 3 times faster when converting from arrow to proto.
|
100
|
+
|
101
|
+
```benchmark
|
102
|
+
---- benchmark 'to_arrow': 2 tests ----
|
103
|
+
Name (time in ms) Mean
|
104
|
+
---------------------------------------
|
105
|
+
protarrow_to_arrow 8.6582 (1.18)
|
106
|
+
ptars_to_arrow 7.3336 (1.0)
|
107
|
+
---------------------------------------
|
108
|
+
|
109
|
+
---- benchmark 'to_proto': 2 tests -----
|
110
|
+
Name (time in ms) Mean
|
111
|
+
----------------------------------------
|
112
|
+
ptars_to_proto 6.4088 (1.0)
|
113
|
+
protarrow_to_proto 21.5594 (3.36)
|
114
|
+
----------------------------------------
|
115
|
+
```
|
116
|
+
|
88
117
|
[pypi-image]: https://img.shields.io/pypi/v/ptars
|
89
118
|
[pypi-url]: https://pypi.org/project/ptars/
|
90
119
|
[build-image]: https://github.com/0x26res/ptars/actions/workflows/ci.yaml/badge.svg
|
@@ -102,7 +131,10 @@ messages_back: list[SearchRequest] = [
|
|
102
131
|
[downloads-month-image]: https://pepy.tech/badge/ptars/month
|
103
132
|
[downloads-month-url]: https://static.pepy.tech/badge/ptars/month
|
104
133
|
[codestyle-image]: https://img.shields.io/badge/code%20style-black-000000.svg
|
105
|
-
[codestyle-url]: https://github.com/
|
134
|
+
[codestyle-url]: https://github.com/astral-sh/ruff
|
106
135
|
[snyk-image]: https://snyk.io/advisor/python/ptars/badge.svg
|
107
136
|
[snyk-url]: https://snyk.io/advisor/python/ptars
|
137
|
+
[ruff-image]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
138
|
+
[ruff-url]: https://github.com/astral-sh/ruff
|
139
|
+
[repo-size-url]: https://img.shields.io/github/repo-size/0x26res/ptars
|
108
140
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
ptars-0.0.5.dist-info/METADATA,sha256=4sAlUOoxfDax6Xs75iuHPvRc2QOd1Xf9Amjf5rCAAwc,4971
|
2
|
+
ptars-0.0.5.dist-info/WHEEL,sha256=me6T2ZMaAwONVEV7KMKX7998LwEPu603s3SBwARs34A,91
|
3
|
+
ptars-0.0.5.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
4
|
+
ptars/internal.py,sha256=g_XWe9qjnvW4dENwMhIMAUkHUj60MkivDjdO6bSQUjU,2396
|
5
|
+
ptars/__init__.py,sha256=UjPOUn5TIGiA8Biu3AYjmjthZPdzTn72OIRvZYms5m0,69
|
6
|
+
ptars/_lib.pyd,sha256=0nm3ddAc6DxsQxVY35ssh_7kuBxpNpJmx-TBXze0YfI,7432192
|
7
|
+
ptars-0.0.5.dist-info/RECORD,,
|
ptars-0.0.3.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
ptars-0.0.3.dist-info/METADATA,sha256=ZYevEaGnrUTW1oERmAWyyte_fQsjZisKCrJINebO2s8,3761
|
2
|
-
ptars-0.0.3.dist-info/WHEEL,sha256=TTGCaseKOTymQ9VJPdfmU51eq4CzzRLou_xukrKq-5s,91
|
3
|
-
ptars-0.0.3.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
4
|
-
ptars/internal.py,sha256=u7ejNMNplBF3OsfqVyQ6wbAUor8fADnNt7avBJ44M6Q,2398
|
5
|
-
ptars/__init__.py,sha256=UjPOUn5TIGiA8Biu3AYjmjthZPdzTn72OIRvZYms5m0,69
|
6
|
-
ptars/_lib.pyd,sha256=BJIHxzOs9zKWpJ4Rf50jt_BnMfW00T-OuKitKhep0Bk,7178752
|
7
|
-
ptars-0.0.3.dist-info/RECORD,,
|
File without changes
|