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.4.0.tar.gz (188.3 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.4.0-py3-none-any.whl (218.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: invest_buddy_pet-0.4.0.tar.gz
  • Upload date:
  • Size: 188.3 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.4.0.tar.gz
Algorithm Hash digest
SHA256 1724700ff8e161061b49581372e7455a365a4d20c0434d21b0732df188666dc7
MD5 194ef30b7d2c1fe37beff8eb5070fb31
BLAKE2b-256 55af13a49e547e7ff4a4c0b101cdc186190df4c4a4350a79f59f6f1432759b82

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for invest_buddy_pet-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b7493c1dafa6d59c6f162e6e8c5472d0563908d035807ec42400f3b14f96cc
MD5 13a39fcd0e0521c4a7e37666ad8f60ec
BLAKE2b-256 bf3060a7eddd98cc7b9174a152acc878548c4f09c4a8389e4bbdb83b161b40c9

See more details on using hashes here.

Provenance

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