Skip to main content

投资陪伴式人格测试 — 通过测试认识自己,用宠物陪伴成长,大师指引方向

Project description

🤖 Invest Buddy Pet

投资陪伴式人格测试 — 通过测试认识自己,用宠物陪伴成长,大师指引方向。

30 秒上手

git clone <repo> && cd investbuddy
python run.py demo

看到完整 6 步 Demo 就跑通了。

5 分钟验证

# 1. 跑测试(应显示 55 passed)
cd quiz && python -m pytest -p no:superclaude

# 2. 用户入职(生成守护兽 + 初始任务)
cd .. && python run.py onboard user_001

# 3. 每日检查
python run.py daily user_001

# 4. 进化报告
python run.py report user_001 monthly

命令清单

命令 作用
python run.py 交互式菜单
python run.py demo 完整 Demo
python run.py onboard <id> 用户入职
python run.py daily <id> 每日检查
python run.py report <id> [period] 进化报告(period: daily/weekly/monthly)

项目结构

investbuddy/
├── run.py                     ← 入口
├── README.md                  ← 本文件
├── PLAN.md                    ← 实现计划 + 待优化清单
├── quiz/                      ← 核心代码
│   ├── invest_buddy_pet.py    ← 主 Skill(5 个核心流程)
│   ├── models.py              ← 12 种守护兽 + 数据模型
│   ├── database.py            ← SQLite 持久化
│   ├── task_generator.py      ← 任务生成
│   ├── evolution_tracker.py   ← 进化追踪
│   ├── knowledge_base.py      ← 知识库(29 知识点)
│   ├── companion_strategy.py  ← 陪伴话术策略(策略模式)
│   ├── llm_client.py          ← DeepSeek 调用封装
│   ├── skill_registry.py      ← 6 个子 Skill 注册 + 重试降级
│   └── test_*.py              ← 55 个测试
└── .env.example               ← 环境变量模板

12 种守护兽

类型 名称 风格
SRLC 大象 价值守护者
SRCD 乌龟 长期主义者
SRTC 驯鹿 红利收息者
SRTD 松鼠 定投践行者
GRLC 成长猎手
GRCD 狐狸 量化交易员
GRTC 趋势跟踪者
GRTD 猫鼬 波段交易者
GILC 左侧布局者
GICD 猫头鹰 宏观对冲者
GITC 乌鸦 主题投机者
GITD 变色龙 动量交易者

配置(可选)

如果要启用真实 LLM 署名生成:

cp .env.example .env
# 编辑 .env,填入 DEEPSEEK_API_KEY
export DEEPSEEK_API_KEY=<your_key>

未配置时也能跑,只是署名字段会标记 source=no_signature

依赖

pip install openai  # DeepSeek 兼容 OpenAI SDK

状态

版本: v0.2.0 阶段: MVP 实现中 测试: 55/55 passed

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

invest_buddy_pet-0.3.0.tar.gz (176.6 kB view details)

Uploaded Source

Built Distribution

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

invest_buddy_pet-0.3.0-py3-none-any.whl (202.7 kB view details)

Uploaded Python 3

File details

Details for the file invest_buddy_pet-0.3.0.tar.gz.

File metadata

  • Download URL: invest_buddy_pet-0.3.0.tar.gz
  • Upload date:
  • Size: 176.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for invest_buddy_pet-0.3.0.tar.gz
Algorithm Hash digest
SHA256 30c4b0c24ff2d11597a611f93f171d7455913297b3ab5fb5496b2d79eff6c1ff
MD5 89d023ad3e57588b03353f3eb7b14116
BLAKE2b-256 7dc912de06925022372aafb60ab01e8fd3e020c9837683907cd1accc4261ac1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for invest_buddy_pet-0.3.0.tar.gz:

Publisher: release.yml on lj22503/investbuddy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file invest_buddy_pet-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for invest_buddy_pet-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d734cc8b5aaff9d5830f5aa82b8b74011a67f18f87df86f7e85c8080cc298c0c
MD5 8f49abb0ddd4e82b8bd49025f1db2c6f
BLAKE2b-256 52ed31a10a2596106b77f17baf12aa8fcdc5ac41125c8dee1b6418fde1426e66

See more details on using hashes here.

Provenance

The following attestation bundles were made for invest_buddy_pet-0.3.0-py3-none-any.whl:

Publisher: release.yml on lj22503/investbuddy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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