Kombu Tramsport for Sakura Cloud SimpleMQ
Project description
Kombu Tramsport for Sakura Cloud SimpleMQ
Install
pip install git+https://github.com/chibiegg/kombu-sakura-simplemq
Quick overview
from kombu import transport, Connection, Queue
transport.TRANSPORT_ALIASES["sakura-simplemq"] = "kombu_sakura_simplemq.transport:Transport"
transport_options = {
"api_key": "YOUR_SIMPLEMQ_API_KEY",
"zone": "tk1b",
}
with Connection("sakura-simplemq://", transport_options=transport_options) as conn:
queue_name = "somequeue"
queue = Queue(queue_name)
queue.maybe_bind(conn)
queue.declare()
# メッセージ送信
producer = conn.Producer()
producer.publish(
body="Hello, custom Transport!",
routing_key=queue_name,
)
def handle_message(body, message):
print(f"Received message: {body}")
message.ack()
# メッセージ受信
with conn.Consumer(queue, callbacks=[handle_message]):
while True:
conn.drain_events(timeout=2)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kombu_sakura_simplemq-0.1.1.tar.gz.
File metadata
- Download URL: kombu_sakura_simplemq-0.1.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78331b2d37bd844adb513886739e04a45a615bce48bde9ac2ce030271efee5f7
|
|
| MD5 |
a8a74b8597c68c56e52ec1aea5d4716a
|
|
| BLAKE2b-256 |
58858f9fe9ef276d67f7af452aedc71f26b9c04cc4642e320d1a950d455c2244
|
Provenance
The following attestation bundles were made for kombu_sakura_simplemq-0.1.1.tar.gz:
Publisher:
release.yml on chibiegg/kombu-sakura-simplemq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kombu_sakura_simplemq-0.1.1.tar.gz -
Subject digest:
78331b2d37bd844adb513886739e04a45a615bce48bde9ac2ce030271efee5f7 - Sigstore transparency entry: 171092058
- Sigstore integration time:
-
Permalink:
chibiegg/kombu-sakura-simplemq@b6d08ffe2ec6acc495d3812928f02d7ad16412b8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/chibiegg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b6d08ffe2ec6acc495d3812928f02d7ad16412b8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kombu_sakura_simplemq-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: kombu_sakura_simplemq-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e4be8c1f9709c788f08ab984772528f69d72fd1fa748ecc705778e51b6b40d
|
|
| MD5 |
ebf8caf9c5e511a08620603961760a7a
|
|
| BLAKE2b-256 |
381245b11aacdc242a4c18906fd28ef9afb30cf7798133ae057220472adb6d07
|
Provenance
The following attestation bundles were made for kombu_sakura_simplemq-0.1.1-py2.py3-none-any.whl:
Publisher:
release.yml on chibiegg/kombu-sakura-simplemq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kombu_sakura_simplemq-0.1.1-py2.py3-none-any.whl -
Subject digest:
22e4be8c1f9709c788f08ab984772528f69d72fd1fa748ecc705778e51b6b40d - Sigstore transparency entry: 171092060
- Sigstore integration time:
-
Permalink:
chibiegg/kombu-sakura-simplemq@b6d08ffe2ec6acc495d3812928f02d7ad16412b8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/chibiegg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b6d08ffe2ec6acc495d3812928f02d7ad16412b8 -
Trigger Event:
push
-
Statement type: