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.1

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.1
File Size Uploaded
arcane_pubsub-1.6.1.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size:9.0 kB

Release files / arcane_pubsub-1.6.1.tar.gz

Download URL arcane_pubsub-1.6.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce51fa200c67fc9d582de2d87148693ad35ec54f3b30d3c243b462ba39f774fe
BLAKE2b-256 checksum
How to use checksums
df83405b66638b7fa99b2110bbf2f5ff968d84b6b8d84913ee574ca565890281
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.1-py3-none-any.whl

Download URL arcane_pubsub-1.6.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d444a4b6f17ff873585167103a45fa370d552758c281864c89848394ed675fb
BLAKE2b-256 checksum
How to use checksums
20fa9229eb0393cb698eb0ed20130e9e880734d7243a048f8c9d83cc25eb9a56
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

This release

1.6.1 This release

2 release files

1.6.0

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