Skip to main content

Anthropic Claude adapter for PULSE Protocol — send PULSE messages, get Claude responses

Project description

pulse-anthropic

Anthropic Claude adapter for PULSE Protocol.

Same interface as pulse-openai — swap provider in one line.

Install

pip install pulse-anthropic

Quick Start

from pulse import PulseMessage
from pulse_anthropic import AnthropicAdapter

adapter = AnthropicAdapter(api_key="sk-ant-...")

msg = PulseMessage(
    action="ACT.QUERY.DATA",
    parameters={"query": "What is quantum computing?"}
)
response = adapter.send(msg)
print(response.content["parameters"]["result"])

Switch Providers in One Line

# from pulse_openai import OpenAIAdapter as Adapter
from pulse_anthropic import AnthropicAdapter as Adapter

adapter = Adapter(api_key="...")
# Everything else stays exactly the same

Supported Actions

PULSE Action What it does Default Model
ACT.QUERY.DATA Ask a question claude-haiku-4-5
ACT.CREATE.TEXT Generate text claude-sonnet-4-5
ACT.ANALYZE.SENTIMENT Analyze sentiment claude-haiku-4-5
ACT.ANALYZE.PATTERN Find patterns claude-sonnet-4-5
ACT.TRANSFORM.TRANSLATE Translate text claude-haiku-4-5
ACT.TRANSFORM.SUMMARIZE Summarize text claude-haiku-4-5

License

Apache 2.0

Project details


Download files

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

Source Distribution

pulse_anthropic-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

pulse_anthropic-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pulse_anthropic-0.1.0.tar.gz.

File metadata

  • Download URL: pulse_anthropic-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pulse_anthropic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e1d1dbe88ca525c880ed4d51da28e1930c699d7f7d297921474aeaaa708abebe
MD5 387c649eeccc4038f552b82cdb01da34
BLAKE2b-256 5f9cb2046cc70a58cfc550e9a223d46952f18b86359b31f65d297c1298cd028a

See more details on using hashes here.

File details

Details for the file pulse_anthropic-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pulse_anthropic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d73c8e768d91176dbcc5e40578295c689c0b505ccb2884b9640e9b0125e8e2e2
MD5 c69f85b3e1c5756ec0294fc3c2812cd2
BLAKE2b-256 91986f94bdf0e17cd1ae24363ca0188d153ac2dd6816c1fdaf6acf1001f298f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page