pyarrow-sender 0.3.10rc0__py3-none-any.whl → 0.3.11__py3-none-any.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.
- pyarrow_sender/__init__.py +2 -0
- pyarrow_sender/main.py +6 -6
- {pyarrow_sender-0.3.10rc0.dist-info → pyarrow_sender-0.3.11.dist-info}/METADATA +3 -3
- pyarrow_sender-0.3.11.dist-info/RECORD +7 -0
- {pyarrow_sender-0.3.10rc0.dist-info → pyarrow_sender-0.3.11.dist-info}/WHEEL +1 -1
- pyarrow_sender-0.3.10rc0.dist-info/RECORD +0 -7
- {pyarrow_sender-0.3.10rc0.dist-info → pyarrow_sender-0.3.11.dist-info}/entry_points.txt +0 -0
- {pyarrow_sender-0.3.10rc0.dist-info → pyarrow_sender-0.3.11.dist-info}/top_level.txt +0 -0
pyarrow_sender/__init__.py
CHANGED
pyarrow_sender/main.py
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
"""TODO: Add docstring."""
|
2
|
+
|
1
3
|
import argparse
|
2
4
|
import ast
|
3
5
|
import os
|
@@ -5,11 +7,10 @@ import os
|
|
5
7
|
import pyarrow as pa
|
6
8
|
from dora import Node
|
7
9
|
|
8
|
-
RUNNER_CI = True if os.getenv("CI") == "true" else False
|
9
|
-
|
10
10
|
|
11
11
|
def main():
|
12
12
|
# Handle dynamic nodes, ask for the name of the node in the dataflow, and the same values as the ENV variables.
|
13
|
+
"""TODO: Add docstring."""
|
13
14
|
parser = argparse.ArgumentParser(description="Simple arrow sender")
|
14
15
|
|
15
16
|
parser.add_argument(
|
@@ -41,11 +42,10 @@ def main():
|
|
41
42
|
)
|
42
43
|
try:
|
43
44
|
data = ast.literal_eval(data)
|
44
|
-
except
|
45
|
+
except Exception: # noqa
|
45
46
|
print("Passing input as string")
|
46
|
-
|
47
|
-
|
48
|
-
elif isinstance(data, str) or isinstance(data, int) or isinstance(data, float):
|
47
|
+
|
48
|
+
if isinstance(data, (str, int, float)):
|
49
49
|
data = pa.array([data])
|
50
50
|
else:
|
51
51
|
data = pa.array(data) # initialize pyarrow array
|
@@ -1,12 +1,12 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: pyarrow-sender
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.11
|
4
4
|
Summary: Dora pyarrow Sender
|
5
5
|
Author-email: Haixuan Xavier Tao <tao.xavier@outlook.com>, Enzo Le Van <dev@enzo-le-van.fr>
|
6
6
|
License: MIT
|
7
7
|
Requires-Python: >=3.8
|
8
8
|
Description-Content-Type: text/markdown
|
9
|
-
Requires-Dist: dora-rs>=0.3.
|
9
|
+
Requires-Dist: dora-rs>=0.3.9
|
10
10
|
Requires-Dist: numpy<2.0.0
|
11
11
|
Requires-Dist: pyarrow>=5.0.0
|
12
12
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
pyarrow_sender/__init__.py,sha256=tF7WHhHiDweUUzyHsbmFe_ktphE08aA5j33E4ja1udA,381
|
2
|
+
pyarrow_sender/main.py,sha256=CKVzQTrhT8KhrK6tIbF-7tn_cdABvNyPJA5YMwp4bLo,1348
|
3
|
+
pyarrow_sender-0.3.11.dist-info/METADATA,sha256=o2SabtKJQ7axQeVIHJ1VQbIDdS2Oue10AJniGP1u2F8,543
|
4
|
+
pyarrow_sender-0.3.11.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
5
|
+
pyarrow_sender-0.3.11.dist-info/entry_points.txt,sha256=shagIvIXl6hEDDqWQPUtp3k-hl7q5dQV_0ChMo9-a7s,60
|
6
|
+
pyarrow_sender-0.3.11.dist-info/top_level.txt,sha256=oiFNG2ycuyw6e36z47mIJ6x21yl9pnzr8PQVj0GeCAI,15
|
7
|
+
pyarrow_sender-0.3.11.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
pyarrow_sender/__init__.py,sha256=HuSK3dnyI9Pb5QAuaKFwQQ3J5SIZnLcKHPJO0norGzc,353
|
2
|
-
pyarrow_sender/main.py,sha256=UP2VQztlbGQOaUhFdbVRT7o2c0Nba9O4j01tShc3qxY,1468
|
3
|
-
pyarrow_sender-0.3.10rc0.dist-info/METADATA,sha256=ZVbsP6jIOhphlEtpaCJFq3xNik3ryW3nj7Ne471wM0Q,546
|
4
|
-
pyarrow_sender-0.3.10rc0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
-
pyarrow_sender-0.3.10rc0.dist-info/entry_points.txt,sha256=shagIvIXl6hEDDqWQPUtp3k-hl7q5dQV_0ChMo9-a7s,60
|
6
|
-
pyarrow_sender-0.3.10rc0.dist-info/top_level.txt,sha256=oiFNG2ycuyw6e36z47mIJ6x21yl9pnzr8PQVj0GeCAI,15
|
7
|
-
pyarrow_sender-0.3.10rc0.dist-info/RECORD,,
|
File without changes
|
File without changes
|