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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcane_pubsub-1.6.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcane_pubsub-1.6.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file arcane_pubsub-1.6.1.tar.gz.

File metadata

  • Download URL: arcane_pubsub-1.6.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.3 CPython/3.12.14 Linux/6.17.0-1022-azure

File hashes

Hashes for arcane_pubsub-1.6.1.tar.gz
Algorithm Hash digest
SHA256 ce51fa200c67fc9d582de2d87148693ad35ec54f3b30d3c243b462ba39f774fe
MD5 cbbe601917bf77bc76697be41abc1fa3
BLAKE2b-256 df83405b66638b7fa99b2110bbf2f5ff968d84b6b8d84913ee574ca565890281

See more details on using hashes here.

File details

Details for the file arcane_pubsub-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: arcane_pubsub-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.3 CPython/3.12.14 Linux/6.17.0-1022-azure

File hashes

Hashes for arcane_pubsub-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d444a4b6f17ff873585167103a45fa370d552758c281864c89848394ed675fb
MD5 1d1f397825100e14f3f9a89da2ec3f19
BLAKE2b-256 20fa9229eb0393cb698eb0ed20130e9e880734d7243a048f8c9d83cc25eb9a56

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.6.1 This release

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 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