Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat(backend): async Python client for the Kubo RPC API

Đang mở
#61 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by reading the backend layout and how dependencies #59 and #60 shape the content layer. Implement an async httpx.AsyncClient wrapper for the listed Kubo RPC operations, then add pytest coverage with httpx.MockTransport. Done means calls are tested, timeouts map to an unavailable error, and secrets are absent from logs and exception text.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement kubo storage tier-2

Summary

A small typed client the backend uses to add, pin, unpin and import content.

Estimated size: M

Current state in this repo

  • httpx is already a backend dependency.

Proposal

  • httpx.AsyncClient wrapper with add, pin_add, pin_rm, pin_ls, dag_import (CAR) and block_stat.
  • Explicit timeouts, typed errors (unavailable vs rejected), and no secrets in log output.
  • Config from env (KUBO_RPC_URL, KUBO_RPC_SECRET).

Acceptance criteria

  • Each call is covered against a mocked Kubo.
  • A timeout maps to an unavailable error, not a crash.
  • Secrets never appear in logs or exception text.

Out of scope

  • Read-side gateway client (separate issue).

Dependencies

  • #59
  • #60

Testing plan

  • pytest with httpx.MockTransport; optional live test behind a marker.

Part of #43. Ground rules for the content layer: no secrets in the repo, content-layer failures must never block or discard quantum execution, and tests and docs ship with every PR.

Ngôn ngữ chính
Python
Star
2
Fork
4
Merge trung bình
6 giờ 54 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của QMeshPy/distributed-quantum

Tất cả issue của QMeshPy/distributed-quantum

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.