Skip to main content

Arcane PubSub

This package is base on google-cloud-pubsub.

Get Started

pip install arcane-pubsub

Example Usage

from arcane import pubsub

# Import your configs
from configure import Config

client = pubsub.Client(Config.KEY)

client.push_to_topic('project', 'topic', {"parameter": "value"})

Publish with a new schema

result = pubsub_client.publish_with_schema(
    project='my-project',
    topic_name='my-topic-with-schema',
    message=message,
    await_response=True,
)

Note: publish_with_schema caches the topic schema. If you call it in a loop to publish many messages to the same schema topic, it will fetch the schema once and reuse it for the next messages. This avoids excessive SchemaServiceClient.get_schema(...) calls and prevents quota errors when publishing at high volume.

Release files for arcane-pubsub 1.6.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 arcane-pubsub 1.6.0
File Size Uploaded
arcane_pubsub-1.6.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arcane-pubsub 1.6.0
File Interpreter ABI Platform
arcane_pubsub-1.6.0-py3-none-any.whl Python 3 none any Details

Total release size:9.0 kB

Release files / arcane_pubsub-1.6.0.tar.gz

Download URL arcane_pubsub-1.6.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5ebcf9edbc35585aa47a4ee4ac22a01e45e690fe59df88ba56b4db3f915c79ed
BLAKE2b-256 checksum
How to use checksums
3c9f6dc391a6410938902416a50f0cbd821cf001a6572f0442f52231750bf430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.3 CPython/3.12.14 Linux/6.17.0-1022-azure

Release files / arcane_pubsub-1.6.0-py3-none-any.whl

Download URL arcane_pubsub-1.6.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2e28576ddd239bed624f2c228f875af47e565a03886ac2a21e5f9eca0111210
BLAKE2b-256 checksum
How to use checksums
0c52a208f25a6b8fc7e8269feebd3b7af6973e8804128d95b951a4c66c049b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.3 CPython/3.12.14 Linux/6.17.0-1022-azure

Release history Release notifications | RSS feed

1.6.1

2 release files

This release

1.6.0 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

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