Skip to main content

Claude-Claw SDK

Thư viện Python để tích hợp hệ thống Agent Multi-Workflow "Claude-Claw" vào ứng dụng của bạn.

Cài đặt

pip install .

Cách sử dụng

1. Khởi tạo Client

import claude_claw

# Sử dụng mã SDK được cấp (Định dạng: LcAIxnfu2h873h...)
client = claude_claw.Client(api_key="LcAIxnfu2h873h_PRO_SDK_9999", base_url="https://api.locaith.com")

2. Soạn thảo văn bản (Drafting)

response = client.generate_content("Hãy soạn thảo một hợp đồng thuê nhà ngắn gọn.")
print("Nội dung:", response.text)
if response.files:
    print("Các tệp đã tạo:", response.files)

3. Lập trình Website (Web Coding)

Hệ thống Agent sẽ tự động nhận diện yêu cầu kỹ thuật và thực thi workflow code.

chat = client.start_chat()
response = chat.send_message("Tạo một website landing page cho dịch vụ spa, dùng Next.js và Tailwind.")
print(response.text)

# Theo dõi tiến độ nếu là job chạy ngầm
if response.job_id:
    print(f"Workflow đang thực thi ngầm. Job ID: {response.job_id}")

4. Chat có ngữ cảnh (Session)

chat = client.start_chat()
chat.send_message("Tôi muốn viết một cuốn sách về AI.")
response = chat.send_message("Hãy gợi ý cho tôi mục lục.") # Giữ nguyên ngữ cảnh session
print(response.text)

Lưu ý bảo mật

  • Đừng bao giờ chia sẻ API Key của bạn (bắt đầu bằng LcAIxnfu2h87).
  • Đảm bảo backend server của bạn đã cấu hình đúng BACKEND_API_KEY trong file .env.

Metadata

Release files for claude-claw 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for claude-claw 0.1.0
File Interpreter ABI Platform
claude_claw-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / claude_claw-0.1.0-py3-none-any.whl

Download URL claude_claw-0.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30a194a8c7d87c2ab217330a3b21bab60f98feb156b8473aa10940206971c20c
BLAKE2b-256 checksum
How to use checksums
cdabe0b263b821b58eae264f267cfe1fd26387fbc6177f3e9c9f6d545241db65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for claude-claw 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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