pyarrow-assert 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.
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
 
3
5
  # Define the path to the README file relative to the package directory
pyarrow_assert/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(
@@ -35,11 +36,12 @@ def main():
35
36
  args.name,
36
37
  ) # provide the name to connect to the dataflow if dynamic node
37
38
 
38
- data = ast.literal_eval(data)
39
+ try:
40
+ data = ast.literal_eval(data)
41
+ except Exception: # noqa
42
+ print("Passing input as string")
39
43
 
40
- if isinstance(data, list):
41
- data = pa.array(data) # initialize pyarrow array
42
- elif isinstance(data, str) or isinstance(data, int) or isinstance(data, float):
44
+ if isinstance(data, (str, int, float)):
43
45
  data = pa.array([data])
44
46
  else:
45
47
  data = pa.array(data) # initialize pyarrow array
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: pyarrow-assert
3
- Version: 0.3.10rc0
3
+ Version: 0.3.11
4
4
  Summary: Dora Node for plotting text and bbox on image with OpenCV
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.6
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_assert/__init__.py,sha256=tF7WHhHiDweUUzyHsbmFe_ktphE08aA5j33E4ja1udA,381
2
+ pyarrow_assert/main.py,sha256=vJOdhpX2Bu9_DAvu3pjYXjuy6qGMGp6KzgukZGGXkEA,1314
3
+ pyarrow_assert-0.3.11.dist-info/METADATA,sha256=12b342kXzdclOhW8oLTiCx0k5KWpcCgdds3bhEel_04,627
4
+ pyarrow_assert-0.3.11.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ pyarrow_assert-0.3.11.dist-info/entry_points.txt,sha256=3D-f02rZJh_OozY5R4tMigvHEgBkGZd14lOnMkuZb-0,60
6
+ pyarrow_assert-0.3.11.dist-info/top_level.txt,sha256=-kNhLn1WBqRuUNDJ2fpOpaQV0RAF1iZXW8nYyfEADaE,15
7
+ pyarrow_assert-0.3.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- pyarrow_assert/__init__.py,sha256=HuSK3dnyI9Pb5QAuaKFwQQ3J5SIZnLcKHPJO0norGzc,353
2
- pyarrow_assert/main.py,sha256=dey_W25eWNPBC8mdUvm6MM_d4P8wzQxf0kFtYhxVix8,1358
3
- pyarrow_assert-0.3.10rc0.dist-info/METADATA,sha256=9tckmTPULhsq3I7QARtp2gT9SqjtEVJABz7_FV7-qTI,630
4
- pyarrow_assert-0.3.10rc0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
- pyarrow_assert-0.3.10rc0.dist-info/entry_points.txt,sha256=3D-f02rZJh_OozY5R4tMigvHEgBkGZd14lOnMkuZb-0,60
6
- pyarrow_assert-0.3.10rc0.dist-info/top_level.txt,sha256=-kNhLn1WBqRuUNDJ2fpOpaQV0RAF1iZXW8nYyfEADaE,15
7
- pyarrow_assert-0.3.10rc0.dist-info/RECORD,,