Happyly

Latest version: v0.9.0

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

Scan your dependencies

Page 2 of 2

0.3.1

Improvements
* Added `happyly.DUMMY_HANDLER` which returns back given message
([identity function](https://en.wikipedia.org/wiki/Identity_function))
* Dummy handler is default handler of all Executors

So you can simply provide message attributes to `run()`:

GoogleSimpleSender(
output_schema=MySchema(),
to_topic='happyly_testing',
project=os.environ['PROJECT'],
).run(
{'request_id': 'spam', 'label': 'eggs'}
)

0.3.0

Added
* `happyly.Schema` is now recommended instead of `marshmallow.Schema`. Define schema the same way as before by inheriting `happyly.Schema` and instantiate it simply with

my_schema = MySchema()

this will be strict by default and validating for unknown attributes automatically.
* Imports are now easier! Try `from happyly import Executor, Handler, Cacher` and more!

Incompatible changes
* `happyly.google_pubsub.GoogleCachedReceiveAndReply` and `happyly.google_pubsub.GoogleCachedReceiver` now require `from_topic` as obligatory argument. Obviously, this will make resending of cached messages a lot easier.

0.2.0

Added
* Caching: abstract and Redis-based.
* New high-level components for Google Pub/Sub with Redis caching out-of-the-box.

Changed
* All callbacks in Executor and Listener base classes are empty.

0.1.1

Documentation and type hints fixes

0.1.0

First release

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.