helpers for server alike projects
Project description
serverish - helpers for server alike projects
Features
- Component management
- Singletons
- Connections management and diagnostics
- NATS based Messenger
See doc
directory for more documentation.
Optional (extras) dependencies
In order to use Messenger, you have to add extra 'messenger' to your project.toml
serveris dependency, e.g.:
serverish = {git="https://github.com/AkondLab/serverish.git", extras=["messenger"], branch="master"}
or specify dpendency with extras in the pip
convention: serverish[messenger]
.
this will install nats-py
package.
Plans
- Decorators
@messenger.sub(subject)
(Web framework style) - Progress with automatic increment for known durations e.g.
pro_pub.update(completed=1, when=+20)
- Pytest fixtures for NATS on CI
Changes
- 0.12 Extends messges metdata of
nats
section, Handles reconnection of subscriptions, - 0.11 Extends, tasks, NATS connection tracking and messenger opening options (
Messenger.open
) - 0.10 Adds timestamp to journal messages and extablishes schema for journal messages.
- 0.9.1 Makes dependency to aiodns optional.
- 0.9.0 Introduces Logging handler for passing standard logging messages to the Messenger.
- 0.8 Introduces journal publishing/reading API.
- 0.7 Includes progress tracking messages in the Messenger API.
- 0.6 introduces breaking changes in the Messenger API:
- Convenience functions
get_xxxxx()
returning publishers/readers are synchronous now. Removeawait
-ing for their results. - Change of signature of the callback for
MsgRpcResponder.register_function
forRpc->None
.
- Convenience functions
Credits
This package uses some code and ideas from the rich package (Copyright (c) 2020 Will McGugan).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
serverish-0.12.0.tar.gz
(36.4 kB
view hashes)
Built Distribution
serverish-0.12.0-py3-none-any.whl
(51.6 kB
view hashes)
Close
Hashes for serverish-0.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3844daa79e17b48b580f7b35de68390fb6113ba406e9295a28f5ed6b148b9ae6 |
|
MD5 | 96c05226aa78ed58b63b8b6ba82e072e |
|
BLAKE2b-256 | 8b922982cfadb2d781bc18fcaf11ce31cea0810c440fd3fa63d0e38091878218 |