🚀 工作性价比计算器
一个帮助你评估工作真实价值的工具,综合考虑薪资、工时、通勤、工作环境等多个因素,让你更全面地了解一份工作的实际回报。
✨ 功能特点
- 工作性价比计算:综合考虑薪资、工时、通勤、工作环境等多个因素
- 工作比较:对比两份工作的综合性价比,帮助你做出更明智的职业选择
- 多种评估维度:包含薪资、时间投入、工作环境、领导关系、职业稳定性等
- 地域差异调整:支持不同国家/地区的购买力平价(PPP)和城市生活成本调整
- 双版本支持:提供命令行版本和MCP服务器版本
📦 安装指南
基本依赖
- Python 3.7 或更高版本
安装步骤
-
克隆或下载本项目到本地
-
安装所需依赖(仅MCP版本需要):
pip install mcp fastmcp
🚀 使用指南
命令行版本(推荐)
命令行版本无需额外依赖,操作简单直观:
# 计算单个工作的性价比
python worth_calculator_cli.py calculate
# 比较两份工作的性价比
python worth_calculator_cli.py compare
# 查看支持的国家/地区列表
python worth_calculator_cli.py countries
# 查看工具版本
python worth_calculator_cli.py version
MCP服务器版本
如果需要通过MCP框架使用:
# 启动MCP服务器
python worth_calculator_mcp.py
# 使用MCP客户端连接(需要MCP客户端)
# 注意:MCP服务器的API可能无法通过HTTP请求直接访问
📊 计算逻辑
工作性价比评分基于以下维度:
- 基础分:基于薪资和时间投入的平衡
- WFH加成:远程工作减少通勤压力的额外加分
- 工作环境评分:工作场所的舒适度和便利性
- 领导关系评分:与上级领导的关系和谐度
- 职业稳定度评分:工作的稳定性和保障性
🔧 配置说明
支持的国家/地区(含PPP转换因子)
- 中国 (4.19)
- 美国 (1.0)
- 日本 (105.0)
- 韩国 (1100.0)
- 德国 (0.9)
- 英国 (0.78)
- 法国 (0.85)
- 加拿大 (1.3)
- 澳大利亚 (1.4)
- 新加坡 (1.35)
- 香港 (0.78)
- 台湾 (28.0)
- 澳门 (0.78)
城市生活成本系数
- 一线城市 (1.0)
- 新一线 (0.8)
- 二线城市 (0.65)
- 三线城市 (0.55)
- 四线城市 (0.45)
- 县城 (0.38)
- 乡镇 (0.3)
📝 示例输出
计算单个工作性价比的示例输出:
===== 计算结果 =====
年薪: 200000 元
实际工作天数: 232 天
小时工资: 114.94 元/小时
真实日薪: 862.07 元/天
标准化日薪: 164.6 元/天
综合评分: 98.48/100
结论: 工作很值得,继续保持!
详细评分:
基础分: 45.98
WFH加成: 2.0
工作环境: 18.0
领导关系: 15.0
职业稳定度: 17.5
🛠️ 开发说明
如果你想修改或扩展这个工具,可以:
- 在
worth_calculator_cli.py或worth_calculator_mcp.py中调整评分权重或增加新的评估维度 - 更新PPP转换因子或城市生活成本系数以反映最新情况
- 添加新的命令行功能或API接口
📄 许可证
本项目采用 MIT 许可证 - 详见 LICENSE 文件
👥 贡献者
- Alvin
💡 反馈与建议
如果你有任何问题或建议,欢迎提交 Issue 或 Pull Request。
Metadata
Release files for worth-calculator-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| worth_calculator_mcp-0.1.0.tar.gz | 12.8 kB | Without provenance | Details for worth_calculator_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| worth_calculator_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for worth_calculator_mcp-0.1.0-py3-none-any.whl |
Total release size: 25.4 kB
Release files / worth_calculator_mcp-0.1.0.tar.gz
| Download URL | worth_calculator_mcp-0.1.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3672c496b1ab2c3b04294d3fdd3a1fdb01efa460eab2ec54c45ba8236ac1664
|
|
BLAKE2b-256 checksum How to use checksums |
59b76fcc2b574aea42d82ece58932938fb7c2d838a445e77c91a9d83c44719f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / worth_calculator_mcp-0.1.0-py3-none-any.whl
| Download URL | worth_calculator_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfe65d3ac3c8e614f85bcc43ff4420f2b782e54faf5b26f2492fd2d7895fc94d
|
|
BLAKE2b-256 checksum How to use checksums |
345640eeef6fac22238c7224d2c2edd5a1c267ee7d4d43db4a3a4db75a3a422f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Security for worth-calculator-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.