ptars 0.0.3__cp310-abi3-macosx_10_12_x86_64.whl → 0.0.5__cp310-abi3-macosx_10_12_x86_64.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.abi3.so CHANGED
Binary file
ptars/internal.py CHANGED
@@ -4,7 +4,6 @@ import pyarrow as pa
4
4
  from google._upb._message import Message, MessageMeta
5
5
  from google.protobuf.descriptor import Descriptor, FileDescriptor
6
6
  from google.protobuf.descriptor_pb2 import FileDescriptorProto
7
-
8
7
  from ptars._lib import MessageHandler, ProtoCache
9
8
 
10
9
 
@@ -1,26 +1,28 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: ptars
3
- Version: 0.0.3
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
- Requires-Dist: protobuf >3
11
- Requires-Dist: pyarrow >15
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.8
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/ambv/black
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=AVR2HEha_jl1VoQNgLV-iOMhbVzlbgL0_ujYalQkGEE,4854
2
+ ptars-0.0.5.dist-info/WHEEL,sha256=eNkHHVQ2ZVf7_h6IXFcTf7nuT468OLJNEY9FQRJLBcc,105
3
+ ptars-0.0.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
+ ptars/internal.py,sha256=93J5cN9obShAhx0NeiirbqBD3fkx75IiEmq-Rnvh8bo,2331
5
+ ptars/__init__.py,sha256=jXZ06k5IZhcIXjEPkIbjtK-d4SBD2jnjFPD4XznB6xM,66
6
+ ptars/_lib.abi3.so,sha256=eImVYfT3WYJTBkmoGM9oKc5VwkcFWeR4nnkSfHBKGI0,9443268
7
+ ptars-0.0.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.7.4)
2
+ Generator: maturin (1.8.3)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-abi3-macosx_10_12_x86_64
@@ -1,7 +0,0 @@
1
- ptars-0.0.3.dist-info/METADATA,sha256=7DQg3OOACvVPV4L5hDRK1Mx0ahrA8ZyqVhH-Vw7HeSk,3675
2
- ptars-0.0.3.dist-info/WHEEL,sha256=-Y1xyYTN3M_8ej0ZmEausOjKRIhVhpqcBKtfhemr-pc,105
3
- ptars-0.0.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
- ptars/internal.py,sha256=XrEkzYCBgvw4byJcbBCpN8l9Bfh8UT0GNt6husC55P8,2332
5
- ptars/__init__.py,sha256=jXZ06k5IZhcIXjEPkIbjtK-d4SBD2jnjFPD4XznB6xM,66
6
- ptars/_lib.abi3.so,sha256=uEYNufLlh8ow5RLLH4CLy5OkX8bhwwBP12PavRWtGgw,9011472
7
- ptars-0.0.3.dist-info/RECORD,,