Pybela

Latest version: v2.0.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0.0

Removed `nest_asyncio` dependency from library, now only used in jupyter notebook. Now Watcher class creates its own event loop and all library coroutines run in it. `nest_asyncio` is still necessary to run in jupyter notebooks. Rewrote most methods to remove `asyncio.run`, they're now replaced by `self.loop.run_until_complete` or `self.loop.create_task`. Implemented `.wait(time)` to replace `asyncio.run(asyncio.sleep(time))` and `.cleanup()` method for closing websockets, ssh and cancelling all tasks. Also upgraded websockets. + Many minor fixes


**Full Changelog**: https://github.com/BelaPlatform/pybela/compare/v1.0.2...v2.0.0

1.0.2

Fixes version mismatch between bokeh, jupyter-bokeh and panel

**Full Changelog**: https://github.com/BelaPlatform/pybela/compare/v1.0.1...v1.0.2

1.0.1

Fixes websocket error `'ClientConnection' object has no attribute 'open'`, caused by accidental upgrade of websockets to 14.0.
This version (v1.0.1) now fixes all dependencies to avoid mismatching between local environment (built using pipenv) and environment generated when packaging the library. Also added test routine to test the generated dist before pushing it to pypi.
**Full Changelog**: https://github.com/BelaPlatform/pybela/compare/v1.0.0...v1.0.1

1.0.0

– Added `on_buffer_callback` and `on_block_callback` to the streaming mode which allows passing a function to be called every time a buffer / block of buffers is received.
– Added `send_buffer()` method for sending data buffers from python to Bela (and its test in `test-send`). If called inside of the `on_buffer_callback` or `on_block_callback`, this allows for processing sensor data in python in real-time
– Updated tutorials and added `3_Streamer-python-to-Bela.ipynb`
– Added autogenerated documentation website [belaplatform.github.io/pybela](https://belaplatform.github.io/pybela)
– In the Watcher, received messages and data to send are now processed in asyncio queues (`asyncio.Queue()`) and the processing of received messages and the sending of messages are now "workers". This removes the need for the `list_response` and `log_response` asyncio events (`asyncio.Event`)
– Simplified the `readme.md` by removing advanced installation options.
– Added autogenerated (in a git hook) `requirements.txt` to remove the need of using `pipenv` for building the library.
– Updated testing commits

**Full Changelog**: https://github.com/BelaPlatform/pybela/compare/v0.1.0...v1.0.0

0.1.1

- updated notebook title
- fix inference executable path

0.1.0

- Added Controller class
- Updated watcher commit
- Minor updates to `readme.md`
- Minor fixes

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.