https://github.com/amoeba/arrow-python-js-ipc-example
Example showing how to send Arrow RecordBatches from a Python backend to a web browser.
https://github.com/amoeba/arrow-python-js-ipc-example
apache-arrow javascript python
Last synced: 7 months ago
JSON representation
Example showing how to send Arrow RecordBatches from a Python backend to a web browser.
- Host: GitHub
- URL: https://github.com/amoeba/arrow-python-js-ipc-example
- Owner: amoeba
- License: mit
- Created: 2023-01-06T00:18:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T00:18:30.000Z (over 3 years ago)
- Last Synced: 2024-12-25T05:55:34.050Z (over 1 year ago)
- Topics: apache-arrow, javascript, python
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arrow-python-js-ipc-example
Example showing how to send Arrow RecordBatches from a Python backend to a web browser.
## Server
```sh
cd server
python -m pip install -r requirements.txt
flask --app server.py run --port 3000
```
## Client
```
cd client
npm install
npm run build
npm run start
```
Visit http://localhost:5000 and you should see:
```
[ {"f0": 1, "f1": "foo", "f2": true}, {"f0": 2, "f1": "bar", "f2": null}, {"f0": 3, "f1": "baz", "f2": false}, {"f0": 4, "f1": null, "f2": true} ]
```