chore: rename quicproquo → quicprochat in docs, Docker, CI, and packaging
Rename all project references from quicproquo/qpq to quicprochat/qpc across documentation, Docker configuration, CI workflows, packaging scripts, operational configs, and build tooling. - Docker: crate paths, binary names, user/group, data dirs, env vars - CI: workflow crate references, binary names, artifact names - Docs: all markdown files under docs/, SDK READMEs, book.toml - Packaging: OpenWrt Makefile, init script, UCI config (file renames) - Scripts: justfile, dev-shell, screenshot, cross-compile, ai_team - Operations: Prometheus config, alert rules, Grafana dashboard - Config: .env.example (QPQ_* → QPC_*), CODEOWNERS paths - Top-level: README, CONTRIBUTING, ROADMAP, CLAUDE.md
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
# quicproquo Python FFI Client
|
||||
# quicprochat Python FFI Client
|
||||
|
||||
Python wrapper around `libquicproquo_ffi` using `ctypes`.
|
||||
Python wrapper around `libquicprochat_ffi` using `ctypes`.
|
||||
|
||||
## Build the FFI library
|
||||
|
||||
```bash
|
||||
cargo build --release -p quicproquo-ffi
|
||||
cargo build --release -p quicprochat-ffi
|
||||
```
|
||||
|
||||
This produces:
|
||||
|
||||
- Linux: `target/release/libquicproquo_ffi.so`
|
||||
- macOS: `target/release/libquicproquo_ffi.dylib`
|
||||
- Windows: `target/release/quicproquo_ffi.dll`
|
||||
- Linux: `target/release/libquicprochat_ffi.so`
|
||||
- macOS: `target/release/libquicprochat_ffi.dylib`
|
||||
- Windows: `target/release/quicprochat_ffi.dll`
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -51,7 +51,7 @@ The script auto-detects the library in `target/release/` or `target/debug/`.
|
||||
Override with `QPQ_FFI_LIB`:
|
||||
|
||||
```bash
|
||||
export QPQ_FFI_LIB=/path/to/libquicproquo_ffi.so
|
||||
export QPQ_FFI_LIB=/path/to/libquicprochat_ffi.so
|
||||
```
|
||||
|
||||
## Programmatic usage
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
"""quicproquo Python client -- ctypes wrapper around libquicproquo_ffi.
|
||||
"""quicprochat Python client -- ctypes wrapper around libquicprochat_ffi.
|
||||
|
||||
Usage:
|
||||
python qpq_client.py --server 127.0.0.1:7000 \\
|
||||
@@ -28,7 +28,7 @@ from ctypes import (
|
||||
from pathlib import Path
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Status codes (must match quicproquo-ffi/src/lib.rs)
|
||||
# Status codes (must match quicprochat-ffi/src/lib.rs)
|
||||
# ---------------------------------------------------------------------------
|
||||
QPQ_OK = 0
|
||||
QPQ_ERROR = 1
|
||||
@@ -54,7 +54,7 @@ def _status_name(code: int) -> str:
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def _find_library() -> str:
|
||||
"""Locate libquicproquo_ffi shared library."""
|
||||
"""Locate libquicprochat_ffi shared library."""
|
||||
env = os.environ.get("QPQ_FFI_LIB")
|
||||
if env:
|
||||
return env
|
||||
@@ -63,14 +63,14 @@ def _find_library() -> str:
|
||||
repo_root = Path(__file__).resolve().parent.parent.parent
|
||||
for profile in ("release", "debug"):
|
||||
for ext in ("so", "dylib", "dll"):
|
||||
candidate = repo_root / "target" / profile / f"libquicproquo_ffi.{ext}"
|
||||
candidate = repo_root / "target" / profile / f"libquicprochat_ffi.{ext}"
|
||||
if candidate.exists():
|
||||
return str(candidate)
|
||||
|
||||
print(
|
||||
"ERROR: Could not find libquicproquo_ffi. "
|
||||
"Build with: cargo build --release -p quicproquo-ffi\n"
|
||||
"Or set QPQ_FFI_LIB=/path/to/libquicproquo_ffi.so",
|
||||
"ERROR: Could not find libquicprochat_ffi. "
|
||||
"Build with: cargo build --release -p quicprochat-ffi\n"
|
||||
"Or set QPQ_FFI_LIB=/path/to/libquicprochat_ffi.so",
|
||||
file=sys.stderr,
|
||||
)
|
||||
sys.exit(1)
|
||||
@@ -116,7 +116,7 @@ def _load_library(path: str) -> ctypes.CDLL:
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
class QpqClient:
|
||||
"""Synchronous Python client wrapping the quicproquo C FFI."""
|
||||
"""Synchronous Python client wrapping the quicprochat C FFI."""
|
||||
|
||||
def __init__(self, lib: ctypes.CDLL):
|
||||
self._lib = lib
|
||||
@@ -182,7 +182,7 @@ class QpqClient:
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description="quicproquo Python FFI client")
|
||||
parser = argparse.ArgumentParser(description="quicprochat Python FFI client")
|
||||
parser.add_argument("--server", required=True, help="Server address (host:port)")
|
||||
parser.add_argument("--ca-cert", required=True, help="Path to CA certificate (DER)")
|
||||
parser.add_argument("--server-name", default="localhost", help="TLS server name")
|
||||
Reference in New Issue
Block a user