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
- 1.0 Changes NATS subscriptions to pull only
- 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-1.0.0.tar.gz
(37.3 kB
view details)
Built Distribution
serverish-1.0.0-py3-none-any.whl
(52.5 kB
view details)
File details
Details for the file serverish-1.0.0.tar.gz
.
File metadata
- Download URL: serverish-1.0.0.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e3f2028e1a40bf5aedb00fc96ef9794fdaa31ce756e7efcc5bdbbb9dd0bf17 |
|
MD5 | d8cb1f5dc8d315f318edb01a94575cf6 |
|
BLAKE2b-256 | c8cf461cbd41700f4bb052cd380995add1eff6e6c4a1984a3b377ac5fd22e6bf |
File details
Details for the file serverish-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: serverish-1.0.0-py3-none-any.whl
- Upload date:
- Size: 52.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9c53062e269232d8ec0da627951e96fac93c9520c79147e255bd7415592288 |
|
MD5 | 0507a9608d4d88a27322fa603cea3414 |
|
BLAKE2b-256 | 301fb8f1488ddc8afe62858d067324af6425568dcd8daf6d441ce5ced39545bb |