Skip to main content

ponponon

Package version downloads
Supported Python versions GitHub

Introduce

ponponon(pon) an advanced message queue framework, derived from nameko

⭐️ 🌟 ✨ ⚡️ ☄️ 💥

Installation

Package is uploaded on PyPI.

You can install it with pip:

pip install ponponon

Requirements

Python -- one of the following:

  • CPython : 3.8 and newer ✅
  • PyPy : Software compatibility not yet tested ❓

Features

  • Support for concurrent processes: eventlet, gevent
  • Support amqp protocol
  • Support for http protocol
  • Support for grpc protocol
  • Support typing hints, like Fastapi

Create it

from typing import Optional
from loguru import logger
from pon.events.entrance import event_handler


class DNACreateService:
    name = 'dna_create_service'

    @event_handler(source_service='ye', event_name='take')
    def auth(self, src_dna: str, content_type: Optional[str] = None) -> None:
        logger.debug(f'src_dna: {src_dna}')

    @event_handler(source_service='ye', event_name='to_decode')
    def decode(self, src_dna: str) -> None:
        logger.debug(f'src_dna: {src_dna}')


class SampleSearchService:
    name = 'sample_search_service'

    @event_handler(source_service='ye', event_name='take')
    def search(self, url: str) -> None:
        logger.debug(f'url: {url}')

Run it

pon run --config config.yaml services

Check it

Resources

License

pon is released under the MIT License. See LICENSE for more information.

Metadata

Release files for ponponon 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ponponon 0.1.0
File Size Uploaded
ponponon-0.1.0.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ponponon 0.1.0
File Interpreter ABI Platform
ponponon-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / ponponon-0.1.0.tar.gz

Download URL ponponon-0.1.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
335014a90dbbbcc50203888422496a5a331272b8d17da102bf76bdd6f705d080
BLAKE2b-256 checksum
How to use checksums
5e154020b845bc32cb91f18b448f40cf9984988542d3f251ec06ae13b31294db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.18

Release files / ponponon-0.1.0-py3-none-any.whl

Download URL ponponon-0.1.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ace4b9a71303d121c02c8eeaa44287c2b80523bde43022ca519c4624b5676f6e
BLAKE2b-256 checksum
How to use checksums
9029680190a460bb1c353cf8470b1d0e297391f6f111ff409a2509db06ef102a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page