Cs-events

Latest version: v0.5.0

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

Scan your dependencies

Page 1 of 2

0.5.0

What's Changed
* Async Events by wise0704 in https://github.com/wise0704/python-cs-events/pull/5


**Full Changelog**: https://github.com/wise0704/python-cs-events/compare/v0.4.1...v0.5.0

0.4.1

Changed:

- `events` now treats `collection=""` the same as `collection=None`.

---

**Full Changelog**: https://github.com/wise0704/python-cs-events/compare/v0.4.0...v0.4.1

0.4.0

Breaking Changes:

- Module name `cs_events` → `events`.

Changed:

- `EventHandlerCollection` now has `__slots__`.
- Removed `final` from `Event` to allow subclasses. `events` decorator will not detect subclasses to generate fields as before.

---

**Full Changelog**: https://github.com/wise0704/python-cs-events/compare/v0.3.0...v0.4.0

0.3.0

Breaking Changes:

- `events` decorator
- Argument `prefix` is removed.
- The generated `__init__` method will always call the original or the super `__init__` method before assigning event fields.
- Accepts both `Event` and `event` annotations simultaneously and generates necessary fields/properties if any is found.

Added:

- `event_key()` can be used to use a different key when using the `events` decorator for event properties.

Changed:

- `EventHandlerCollection` is now `runtime_checkable`.
- `events` will look for an annotation of type `EventHandlerCollection` if collection attribute name is not specified.
- `event()` constructor also accepts a direct accessor tuple instead of a function returning an accessor tuple.

---

**Full Changelog**: https://github.com/wise0704/python-cs-events/compare/v0.2.2...v0.3.0

0.2.2

Fixed:
* Fix private name resolution in `events` — 3

---

**Full Changelog**: https://github.com/wise0704/python-cs-events/compare/v0.2.1...v0.2.2

0.2.1

Fixed:

* Fixed event name bug in `events` — 2

---

**Full Changelog**: https://github.com/wise0704/python-cs-events/compare/v0.2.0...v0.2.1

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.