Nio-bot

Latest version: v1.2.0

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

Scan your dependencies

Page 3 of 4

1.1.0b1

Major Changes
You should look out for the following things when updating:

* Converters have been completely rewritten - see the [docs](https://docs.nio-bot.dev/guides/creating-custom-parsers/)
* The library has (courtesy of Matthieu-LAURENT39) had a typing rewrite, so you may notice some typing issues with some older code due to changed/added type signatures

Still no 3.12 support!
As aiohttp (and matrix-nio) do not support python 3.12 yet, neither do we. You will receive a build error trying to build from source on python3.12, and wheels are not supplied for 3.12 on PyPi.

--------

Changelog
* Added some tests to the library
* Rewrote how argument parsers work (and made them extensible, see [docs](https://docs.nio-bot.dev/guides/creating-custom-parsers/))
* Updated `matrix-nio` to `0.22.0`
* Added the ability to control whether the client's own messages are ignored - this means you can now use commands when running a self bot (running niobot under your own account instead of a dedicated bot account)
* Added support for `typing.Annotated[x, y]` argument types
* Removed `Module.log` property
* Deprecated `Module.client`

**Full Changelog**: https://github.com/nexy7574/niobot/compare/1.1.0a3...1.1.0b1

1.1.0a3

What's Changed
* Prioritise event_id over room_id for the _get_id function by ESHARK22 in https://github.com/nexy7574/niobot/pull/4
* Add Context.invoking_prefix by Matthieu-LAURENT39 in https://github.com/nexy7574/niobot/pull/8
* Type hinting and code refactoring by Matthieu-LAURENT39 in https://github.com/nexy7574/niobot/pull/6

New Contributors
* Matthieu-LAURENT39 made their first contribution in https://github.com/nexy7574/niobot/pull/8

**Full Changelog**: https://github.com/nexy7574/niobot/compare/1.1.0a2...1.1.0a3

-------

As matrix-nio 0.22.0 has been released, this will be the last 1.1.0 alpha. From now, only a few new things built on nio will be added, things tested with the new version, in following betas. Once all is tested, and python 3.12 support is released by matrix-nio (aiohttp), then 1.1.0 will be released.

As of now, neither nio-bot, nor the libraries supporting it (matrix-nio, which in turn depends on aiohttp) support python 3.12. As such, you will not find them supported on PyPi.org, and the wheels below will not work with anything above python 3.11.
Support is, as listed, python 3.9 to 3.11.

1.1.0a2

The second beta pre-release for `v1.1.0`.

Key changes:

* **Support for python 3.9 and 3.10**
* Fixed a bug where disabled commands could crash the command parser
* cleaned up a couple documentation issues
* Removed the examples on github (will be re-added later)
* Fix pypi link by ESHARK22 in https://github.com/EEKIM10/niobot/pull/2
* Replaced niobot with nio-bot for pip install guide by ESHARK22 in https://github.com/EEKIM10/niobot/pull/3

New Contributors
* ESHARK22 made their first contribution in https://github.com/EEKIM10/niobot/pull/2

**Full Changelog**: https://github.com/EEKIM10/niobot/compare/1.1.0a1...1.1.0a2

1.1.0a1

Alpha pre-release for `v1.1.0`.

Key changes:
* Changed supported matrix-nio versions to <0.22.0 (from `0.20.*`)
* Performance logging for `attachments` (will be removed in final release)
* Added documentation for events
* Added `which` function to attachments.py
* Added hacky "DM Room" support
* Added easier ways to customise the client help command
* Command arguments now properly raise the correct errors
* Added more specific error classes
* Added checks & a check framework
* Added more parsers (event_parser, room_parser)
* force_await now just awaits coroutines rather than casting them to a task

**Full Changelog**: https://github.com/EEKIM10/niobot/compare/v1.0.2...1.1.0a1

1.0.2.post1

This release simply brings the README up to date for the stable version on PyPi. There is nothing new in this release.

If you're wanting newer features, install the latest pre-release: `pip install --pre --upgrade nio-bot`.

1.0.2

* Fixed `ImageAttachment` being unable to detect image streams
* Added `get_metadata_imagemagick` to allow for fetching image metadata more reliably through `imagemagick`.
* Note that `get_metadata` has been changed to use the imagemagick function when it is installed and the file is an image - for anything else, it still uses ffprobe (including when imagemagick isn't installed, for images).
* Fixed `BaseAttachment` incorrectly setting file properties, in turn using the wrong instance of the file to fetch data
* `ImageAttachment` no longer strictly fails on an unknown format - it simply emits a warning, in line with `VideoAttachment`. __`AudioAttachment` still does not support dynamic stream selection and codec verification.__
* `niocli version` now shows the current CPU architecture, and linux distro where available.
* `niobot.attachment.*` now always imports into root `niobot`, regardless of whether dependencies are installed.
* Fixed the bug that caused the process to crash on unexpected chat input
Full changelog & diff:
https://github.com/EEKIM10/niobot/compare/v1.0.0...v1.0.2

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.