Skip to main content

helpers for server alike projects

Project description

serverish - helpers for server alike projects

CI

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.1 Switches to param 2.* nad py-nats 1.7.*. Also, publisher may reraise exceptions or ignore them.
  • 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. Remove await-ing for their results.
    • Change of signature of the callback for MsgRpcResponder.register_function for Rpc->None.

Credits

This package uses some code and ideas from the rich package (Copyright (c) 2020 Will McGugan).

Project details


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.1.0.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

serverish-1.1.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file serverish-1.1.0.tar.gz.

File metadata

  • Download URL: serverish-1.1.0.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0

File hashes

Hashes for serverish-1.1.0.tar.gz
Algorithm Hash digest
SHA256 60e949f1333c7c99c5252f3f52f8d1c1fe471eb81a80492e9a5959a6ea72ebc9
MD5 d3b905b3141c7a79774ab3eb4ec8542a
BLAKE2b-256 0fa75330eb1af79caca6aee257ef9610e4b4bc8140f1ca9af3361bf69afa5d1a

See more details on using hashes here.

File details

Details for the file serverish-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: serverish-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0

File hashes

Hashes for serverish-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 498e6cfd55d7ae1f1c8f75aba4570ee5be62d7dfb78b7a48999dcbb55597fd5f
MD5 a8b26abcbe937c3cfc55459ba7475b2a
BLAKE2b-256 68f029d34d9254e6bd3d182c302b7f0def28ddc63b2f60651e24d7951bdce952

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page