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.5.0.tar.gz (103.4 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.5.0-py3-none-any.whl (128.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for invest_buddy_pet-0.5.0.tar.gz
Algorithm Hash digest
SHA256 343929d63ae0d9b18f45211d640f80dcfb617775f2533b140f59076ce629b636
MD5 6bbf74bba08f9b24ecfb2162a4fcaa1e
BLAKE2b-256 4154df96b85a7572836e279f7b6af5c0875fb0c710dfc4ee5ddbb10507aa107c

See more details on using hashes here.

Provenance

The following attestation bundles were made for invest_buddy_pet-0.5.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.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for invest_buddy_pet-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2509a7b4c63da9f24d84f29300eb093795fc56ef14edef1bd892117a4a5b5f
MD5 c6acfd162560a0cbc8065ea4857bca2e
BLAKE2b-256 70c669278617386bb2bdb312a820dcc43a51ead52328edd901ea9782a1fa1734

See more details on using hashes here.

Provenance

The following attestation bundles were made for invest_buddy_pet-0.5.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