feldera 0.27.0__py3-none-any.whl → 0.29.0__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.

Potentially problematic release.


This version of feldera might be problematic. Click here for more details.

feldera/rest/sql_view.py CHANGED
@@ -3,7 +3,13 @@ class SQLView:
3
3
  Represents a SQL view in Feldera
4
4
  """
5
5
 
6
- def __init__(self, name: str, fields: list[dict], case_sensitive: bool = False, materialized: bool = False):
6
+ def __init__(
7
+ self,
8
+ name: str,
9
+ fields: list[dict],
10
+ case_sensitive: bool = False,
11
+ materialized: bool = False,
12
+ ):
7
13
  self.name = name
8
14
  self.case_sensitive = case_sensitive
9
15
  self.materialized = materialized
@@ -11,7 +17,7 @@ class SQLView:
11
17
 
12
18
  @classmethod
13
19
  def from_dict(self, view_dict: dict):
14
- tbl = SQLView(name=view_dict['name'], fields=view_dict['fields'])
15
- tbl.case_sensitive = view_dict['case_sensitive']
16
- tbl.materialized = view_dict['materialized']
20
+ tbl = SQLView(name=view_dict["name"], fields=view_dict["fields"])
21
+ tbl.case_sensitive = view_dict["case_sensitive"]
22
+ tbl.materialized = view_dict["materialized"]
17
23
  return tbl
feldera/runtime_config.py CHANGED
@@ -25,7 +25,6 @@ class Resources:
25
25
  storage_class: Optional[str] = None,
26
26
  storage_mb_max: Optional[int] = None,
27
27
  ):
28
-
29
28
  config = config or {}
30
29
 
31
30
  self.cpu_cores_max = cpu_cores_max
@@ -44,17 +43,17 @@ class RuntimeConfig:
44
43
  """
45
44
 
46
45
  def __init__(
47
- self,
48
- workers: Optional[int] = None,
49
- storage: Optional[bool] = False,
50
- tracing: Optional[bool] = False,
51
- tracing_endpoint_jaeger: Optional[str] = "",
52
- cpu_profiler: bool = True,
53
- max_buffering_delay_usecs: int = 0,
54
- min_batch_size_records: int = 0,
55
- min_storage_bytes: Optional[int] = None,
56
- clock_resolution_usecs: Optional[int] = None,
57
- resources: Optional[Resources] = None,
46
+ self,
47
+ workers: Optional[int] = None,
48
+ storage: Optional[bool] = False,
49
+ tracing: Optional[bool] = False,
50
+ tracing_endpoint_jaeger: Optional[str] = "",
51
+ cpu_profiler: bool = True,
52
+ max_buffering_delay_usecs: int = 0,
53
+ min_batch_size_records: int = 0,
54
+ min_storage_bytes: Optional[int] = None,
55
+ clock_resolution_usecs: Optional[int] = None,
56
+ resources: Optional[Resources] = None,
58
57
  ):
59
58
  self.workers = workers
60
59
  self.storage = storage
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: feldera
3
- Version: 0.27.0
3
+ Version: 0.29.0
4
4
  Summary: The feldera python client
5
5
  Author-email: Abhinav <abhinav.gyawali@feldera.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://www.feldera.com
8
- Project-URL: Documentation, https://docs.feldera.com
8
+ Project-URL: Documentation, https://docs.feldera.com/python
9
9
  Project-URL: Repository, https://github.com/feldera/feldera
10
10
  Project-URL: Issues, https://github.com/feldera/feldera/issues
11
11
  Keywords: feldera,python
@@ -19,6 +19,8 @@ Requires-Dist: requests
19
19
  Requires-Dist: pandas
20
20
  Requires-Dist: typing-extensions
21
21
  Requires-Dist: numpy<2
22
+ Requires-Dist: pretty-errors
23
+ Requires-Dist: ruff>=0.6.9
22
24
 
23
25
  # Feldera Python SDK
24
26
 
@@ -44,6 +46,15 @@ $ pip install git+https://github.com/feldera/feldera@{BRANCH_NAME}#subdirectory=
44
46
 
45
47
  Replace `{BRANCH_NAME}` with the name of the branch you want to install from.
46
48
 
49
+ ### Installing from Local Directory
50
+
51
+ If you have cloned the Feldera repo, you can install the python SDK as follows:
52
+
53
+ ```bash
54
+ # the Feldera Python SDK is present inside the python/ directory
55
+ pip install python/
56
+ ```
57
+
47
58
  Checkout the docs [here](./feldera/__init__.py) for an example on how to use the SDK.
48
59
 
49
60
  ## Documentation
@@ -90,5 +101,5 @@ To run the aggregate tests use:
90
101
 
91
102
  ```bash
92
103
  cd python
93
- PYTHONPATH=`pwd` python3 ./tests/aggregate_tests/test_base.py
104
+ PYTHONPATH=`pwd` python3 ./tests/aggregate_tests/main.py
94
105
  ```
@@ -0,0 +1,20 @@
1
+ feldera/__init__.py,sha256=PxkgCtEAuFwo4u8NGEDio-bF3M-GnbeV45tAQVoBbqE,297
2
+ feldera/_callback_runner.py,sha256=Tdf6BXN4zppyoy8t_y-Ooa3B0wEfvyezMHU9jxY2ZhA,4713
3
+ feldera/_helpers.py,sha256=TuaJPQdAnRV9K5bG7-DCAr45b2JxsZyrwkZBJf1806M,2684
4
+ feldera/enums.py,sha256=ZPQa-RE2G2qb9YsDSQOOyo87yisQ0SsOv7yyFh9cGzU,6061
5
+ feldera/output_handler.py,sha256=64J3ljhOaKIhxdjOKYi-BUz_HnMwROfmN8eE-btYygU,1930
6
+ feldera/pipeline.py,sha256=jwgpF4zNwNU0ca7TluFfALq19Z495LuM9tTujapuG_A,15940
7
+ feldera/pipeline_builder.py,sha256=FzpoBlMGPmN76uxLQ768ISI6f3N5jkGriune8jZMkJA,3688
8
+ feldera/runtime_config.py,sha256=PfYXsrLrs5Duty-7x3dGDf2uvp5hwp3Yb5n3bRQtLVk,2898
9
+ feldera/rest/__init__.py,sha256=Eg-EKUU3RSTDcdxTR_7wNDnCly8VpXEzsZCQUmf-y2M,308
10
+ feldera/rest/_httprequests.py,sha256=y3RxFn4BCTKbUztO1LN2CWXgGA93dIIV5VLdyiWQWuQ,6181
11
+ feldera/rest/config.py,sha256=84Lj2QX6SYNZJdBfrCHPMh29Nj4MY7nRB-uddytx_ok,795
12
+ feldera/rest/errors.py,sha256=b4i2JjrbSmej7jdko_FL8UeXklLKenSipwMT80jowaM,1720
13
+ feldera/rest/feldera_client.py,sha256=wQLcRDo0thPx90_9T2vNzMEhx_gixwwLLIjkSEhnP9w,16629
14
+ feldera/rest/pipeline.py,sha256=W5Oo_bwVduae-alF3g69RyDwQcuSUsWh-rL6cfvvunQ,2786
15
+ feldera/rest/sql_table.py,sha256=qrw-YwMzx5T81zDefNO1KOx7EyypFz1vPwGBzSUB7kc,652
16
+ feldera/rest/sql_view.py,sha256=hN12mPM0mvwLCIPYywpb12s9Hd2Ws31IlTMXPriMisw,644
17
+ feldera-0.29.0.dist-info/METADATA,sha256=iBu_kQP7PNHDaXrhPH9MDj1eXXTnytqhPAUX6l9E3sY,2582
18
+ feldera-0.29.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
19
+ feldera-0.29.0.dist-info/top_level.txt,sha256=fB6yTqrQiO6RCbY1xP2T_mpPoTjDFtJvkJJodiee7d0,8
20
+ feldera-0.29.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,20 +0,0 @@
1
- feldera/__init__.py,sha256=PDcz0kdx2zGLj5NRR7Gm_7Wvccjrm2tnwgUKw4-ZAH4,145
2
- feldera/_callback_runner.py,sha256=kVNQAz0p7oebOkN1-nX8TwoVchNxpbhtKUnFsFslZsA,4672
3
- feldera/_helpers.py,sha256=Jvmlzu3dF69V2UNhtf_z-tMHHFoB_L-vizTzHZfvvjw,2572
4
- feldera/enums.py,sha256=M4N1HwBh_vC2FCsFUFmUkIXk9HLxybPJc7mSHf7ITl4,6060
5
- feldera/output_handler.py,sha256=g2KPB3ns5N-QK-4nW_sctx4QkN6DCyhAJox4mE64X4s,1862
6
- feldera/pipeline.py,sha256=hXps3TElBPkwCMcTWJEBdG5XeTJiZT3BRRnf38qOJYM,13161
7
- feldera/pipeline_builder.py,sha256=dxPBw9hLjgodxEOhRdAvrgAKmSHorvW5V7qB-x1mKgU,3266
8
- feldera/runtime_config.py,sha256=NjmLCCSqbm0xPh4_mEy4bh5Wx2SbW9jjivji8U13eag,2943
9
- feldera/rest/__init__.py,sha256=iN_9bybXGoHras_snq1yjBPVltAYofqEJZ-UHvYjBPE,291
10
- feldera/rest/_httprequests.py,sha256=pPfAaPqBqJLItWQAZ7Qzc4-uMPa7sEkm4orYYF601GI,5903
11
- feldera/rest/config.py,sha256=EJ90ROlt_-_4tLJZ-NrkTRcHHF91n0fO52CQPGy2VhA,815
12
- feldera/rest/errors.py,sha256=OzsDmSolY9kRd0H1VEJMcYiI7Jxw-XU046z0tI9tPio,1696
13
- feldera/rest/feldera_client.py,sha256=ZATJOCSbyZ2NqTn95DexFEBfnTq33JwFLqReEIec2mc,12570
14
- feldera/rest/pipeline.py,sha256=RLxdCffN5u3bqA1i39LLYs26ILgKauwVuVUKb6qPaUA,2523
15
- feldera/rest/sql_table.py,sha256=Ml3RCCrtEZE8Ycwl2-PY2twuPt1KNRQYWcP_aZFK3Rc,605
16
- feldera/rest/sql_view.py,sha256=ADWn4f7A-6eYf2ik4PZJY8sN7l0DEgppP9KE-OlYNNo,597
17
- feldera-0.27.0.dist-info/METADATA,sha256=mqVh2O5HjhG8WLaqhj6Qmqw3EIOeg_F02dy_MSUwuIA,2308
18
- feldera-0.27.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
19
- feldera-0.27.0.dist-info/top_level.txt,sha256=fB6yTqrQiO6RCbY1xP2T_mpPoTjDFtJvkJJodiee7d0,8
20
- feldera-0.27.0.dist-info/RECORD,,