Skip to content

Commit

Permalink
Add support for Google Pub/Sub as transport broker (#2147)
Browse files Browse the repository at this point in the history
* Add support for Google Pub/Sub as transport broker

 * Add tests
 * Add docs

* flake8

* flake8

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix future import

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add missing test requirements

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add monitoring dependency

* Fix test for python3.8

* Mock better google's monitoring api

* Flake8

* Add refdoc

* Add extra url to workaround pypy grpcio

* Add extra index url in tox for grpcio/pypy support

* Revert "Add extra url to workaround pypy grpcio"

This reverts commit dfde4d5.

* pin grpcio version to match extra_index wheel

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Reduce poll calls if qos denies msg rx

---------

Co-authored-by: Haim Daniel <haimdaniel@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tomer Nosrati <tomer.nosrati@gmail.com>
  • Loading branch information
4 people authored Oct 13, 2024
1 parent 5a88a28 commit 2f58823
Show file tree
Hide file tree
Showing 8 changed files with 1,637 additions and 2 deletions.
24 changes: 24 additions & 0 deletions docs/reference/kombu.transport.gcpubsub.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
==============================================================
Google Cloud Pub/Sub Transport - ``kombu.transport.gcpubsub``
==============================================================

.. currentmodule:: kombu.transport.gcpubsub

.. automodule:: kombu.transport.gcpubsub

.. contents::
:local:

Transport
---------

.. autoclass:: Transport
:members:
:undoc-members:

Channel
-------

.. autoclass:: Channel
:members:
:undoc-members:
3 changes: 2 additions & 1 deletion kombu/transport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def supports_librabbitmq() -> bool | None:
'etcd': 'kombu.transport.etcd:Transport',
'azurestoragequeues': 'kombu.transport.azurestoragequeues:Transport',
'azureservicebus': 'kombu.transport.azureservicebus:Transport',
'pyro': 'kombu.transport.pyro:Transport'
'pyro': 'kombu.transport.pyro:Transport',
'gcpubsub': 'kombu.transport.gcpubsub:Transport',
}

_transport_cache = {}
Expand Down
Loading

0 comments on commit 2f58823

Please sign in to comment.