feldera 0.27.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.
- feldera/__init__.py +3 -0
- feldera/_callback_runner.py +115 -0
- feldera/_helpers.py +100 -0
- feldera/enums.py +186 -0
- feldera/output_handler.py +60 -0
- feldera/pipeline.py +346 -0
- feldera/pipeline_builder.py +98 -0
- feldera/rest/__init__.py +11 -0
- feldera/rest/_httprequests.py +165 -0
- feldera/rest/config.py +26 -0
- feldera/rest/errors.py +55 -0
- feldera/rest/feldera_client.py +377 -0
- feldera/rest/pipeline.py +69 -0
- feldera/rest/sql_table.py +17 -0
- feldera/rest/sql_view.py +17 -0
- feldera/runtime_config.py +79 -0
- feldera-0.27.0.dist-info/METADATA +94 -0
- feldera-0.27.0.dist-info/RECORD +20 -0
- feldera-0.27.0.dist-info/WHEEL +5 -0
- feldera-0.27.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: feldera
|
|
3
|
+
Version: 0.27.0
|
|
4
|
+
Summary: The feldera python client
|
|
5
|
+
Author-email: Abhinav <abhinav.gyawali@feldera.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://www.feldera.com
|
|
8
|
+
Project-URL: Documentation, https://docs.feldera.com
|
|
9
|
+
Project-URL: Repository, https://github.com/feldera/feldera
|
|
10
|
+
Project-URL: Issues, https://github.com/feldera/feldera/issues
|
|
11
|
+
Keywords: feldera,python
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Requires-Dist: requests
|
|
19
|
+
Requires-Dist: pandas
|
|
20
|
+
Requires-Dist: typing-extensions
|
|
21
|
+
Requires-Dist: numpy<2
|
|
22
|
+
|
|
23
|
+
# Feldera Python SDK
|
|
24
|
+
|
|
25
|
+
Feldera Python is the Feldera SDK for Python developers.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install feldera
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Installing from Github
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install git+https://github.com/feldera/feldera#subdirectory=python
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Similarly, to install from a specific branch:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
$ pip install git+https://github.com/feldera/feldera@{BRANCH_NAME}#subdirectory=python
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Replace `{BRANCH_NAME}` with the name of the branch you want to install from.
|
|
46
|
+
|
|
47
|
+
Checkout the docs [here](./feldera/__init__.py) for an example on how to use the SDK.
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
To build the html documentation run:
|
|
52
|
+
|
|
53
|
+
Ensure that you have sphinx installed. If not, install it using `pip install sphinx`.
|
|
54
|
+
|
|
55
|
+
Then run the following commands:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
cd docs
|
|
59
|
+
sphinx-apidoc -o . ../feldera
|
|
60
|
+
make html
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
To clean the build, run `make clean`.
|
|
64
|
+
|
|
65
|
+
## Testing
|
|
66
|
+
|
|
67
|
+
To run unit tests:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
(cd python && python3 -m unittest)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The following command runs end-to-end tests. You'll need a pipeline
|
|
74
|
+
manager running at `http://localhost:8080`. For the pipeline builder
|
|
75
|
+
tests, you'll also need a broker available at `localhost:9092` and
|
|
76
|
+
(from the pipelines) `redpanda:19092`. (To change those locations,
|
|
77
|
+
set the environment variables listed in `python/tests/__init__.py`.)
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
(cd python/tests && python3 -m pytest .)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
To run tests from a specific file:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
(cd python/tests && python3 -m unittest ./tests/path-to-file.py)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
To run the aggregate tests use:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
cd python
|
|
93
|
+
PYTHONPATH=`pwd` python3 ./tests/aggregate_tests/test_base.py
|
|
94
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
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,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
feldera
|