Hikari-crescent

Latest version: v1.1.0

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

Scan your dependencies

Page 2 of 7

0.6.2

What's Changed
* Improve docstrings by Lunarmagpie in https://github.com/hikari-crescent/hikari-crescent/pull/299


**Full Changelog**: https://github.com/hikari-crescent/hikari-crescent/compare/v0.6.1...v0.6.2

0.6.1

Small changes, dependency updates, and bug fixes.

What's Changed
* Update context properties by novanai in https://github.com/hikari-crescent/hikari-crescent/pull/290
* ⬆️ Update pdoc requirement from ^12.1.0 to >=12.1,<14.0 by dependabot in https://github.com/hikari-crescent/hikari-crescent/pull/291
* ⬆️ Update python-dotenv requirement from ^0.21.0 to ^1.0.0 by dependabot in https://github.com/hikari-crescent/hikari-crescent/pull/292
* ⬆️ Update mypy requirement from ^0.982 to ^1.0.0 by dependabot in https://github.com/hikari-crescent/hikari-crescent/pull/293
* :bug: Add missing channel types by CircuitSacul in https://github.com/hikari-crescent/hikari-crescent/pull/296
* implement choice name localization by CircuitSacul in https://github.com/hikari-crescent/hikari-crescent/pull/298
* Update README.md in light of Discord username change by CircuitSacul in https://github.com/hikari-crescent/hikari-crescent/pull/301
* set the hikari version to ==dev120 by CircuitSacul in https://github.com/hikari-crescent/hikari-crescent/pull/300
* update a bunch of dev dependencies by CircuitSacul in https://github.com/hikari-crescent/hikari-crescent/pull/303
* ⬆️ Update pdoc requirement from >=12.1,<14.0 to >=12.1,<15.0 by dependabot in https://github.com/hikari-crescent/hikari-crescent/pull/306
* Add autocomplete example to readme by CircuitSacul in https://github.com/hikari-crescent/hikari-crescent/pull/304
* ⬆️ Update ruff requirement from ^0.0.274 to >=0.0.274,<0.0.276 by dependabot in https://github.com/hikari-crescent/hikari-crescent/pull/308

New Contributors
* novanai made their first contribution in https://github.com/hikari-crescent/hikari-crescent/pull/290

**Full Changelog**: https://github.com/hikari-crescent/hikari-crescent/compare/v0.6.0...v0.6.1

0.6.0

What's Changed
* Catch all subclasses of exceptions in error handlers by Lunarmagpie in https://github.com/hikari-crescent/hikari-crescent/pull/289


:boom: BREAKING CHANGE :boom:
Subclasses of errors are now catched in error handlers. I felt this was the more pythonic way of doing things, so I decided to make the change after it was suggested.

**Full Changelog**: https://github.com/hikari-crescent/hikari-crescent/compare/v0.5.2...v0.6.0

0.5.2

This doesn't make any changes to functionality. Just pushes the new branding to pypi.

What's Changed
* :art: Update visuals in README by Lunarmagpie in https://github.com/hikari-crescent/hikari-crescent/pull/286


**Full Changelog**: https://github.com/hikari-crescent/hikari-crescent/compare/v0.5.1...v0.5.2

0.5.1

What's Changed
* ⬆️ Update sigparse requirement from >=1.3,<3.0 to >=1.3,<4.0 by dependabot in https://github.com/hikari-crescent/hikari-crescent/pull/283


This is a release to prevent dependency issues.

**Full Changelog**: https://github.com/hikari-crescent/hikari-crescent/compare/v0.5.0...v0.5.1

0.5.0

This is quite a massive release. I have made breaking changes to crescent that make it more opinionated and more functional than object-oriented.

What's Changed
* v1.0 Client API by Lunarmagpie in https://github.com/magpie-dev/hikari-crescent/pull/267
* Remove dependency on attrs by Lunarmagpie in https://github.com/magpie-dev/hikari-crescent/pull/271
* :boom: Use floodgate for ratelimiting by Lunarmagpie in https://github.com/magpie-dev/hikari-crescent/pull/276
* Support RESTBot by CircuitSacul in https://github.com/magpie-dev/hikari-crescent/pull/278
* Support model object to store globals by Lunarmagpie in https://github.com/magpie-dev/hikari-crescent/pull/280
* Add `unload_all` function for plugin manager by Lunarmagpie in https://github.com/magpie-dev/hikari-crescent/pull/281

Breaking Changes
- You bot now should be created as follows:
python
bot = hikari.GatewayBot("TOKEN")
client = crescent.Client(bot)

- All uses of `bot.include` should replaced with `client.include`. Plugins are now loaded with `client.plugins.load()`.
- Plugins now have to be declared as `crescent.Plugin[YourBotType, ModelType]()`. These generics will be optional once mypy supports pep 696.
- The `plugin.bot` property has been renamed to `plugin.app`.
- `crescent.ext.cooldowns` now uses `datetime.timedelta` instead of floats.

Model API
Crescent now supports a global model object to store information.
python
class Model:
...

bot = hikari.GatewayBot("TOKEN")
client = crescent.Client(bot, Model())

In your plugin file
plugin = crescent.Plugin[hikari.GatewayBot, Model]()

Once the plugin is loaded you can access the model object with `plugin.model`
plugin.model

Here is an example project using the new system: https://github.com/magpie-dev/crescent-template

**Full Changelog**: https://github.com/magpie-dev/hikari-crescent/compare/v0.4.0...v0.5.0

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.