Scan your whole stack
From OX Research Newsroom
Are you using freight-calculator?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
freight-calculator was last scanned on 27 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 27 Nov 2026 | No rules fired |
Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
快递运费计算器:按重量、距离、加急与会员状态计算运费,提供 Python API 与命令行两种用法。
pip install freight-calculator
| 项目 | 规则 |
|---|---|
| 首重 | 1kg 以内 10 元 |
| 续重 | 每 1kg 加 2 元(不足 1kg 按 1kg 计) |
| 里程 | 1000km 内免费,超出部分每 500km 加 3 元 |
| 加急 | 附加 8 元 |
| 会员 | 总额 9 折 |
from freight_calculator import calc_freight
calc_freight(2, 1200, urgent=True)["total"] # 23.0
calc_freight(5.6, 3000, urgent=True, member=True)["total"] # 36.0
calc_freight(weight, distance, urgent=False, member=False) 返回明细字典:
| 键 | 含义 |
|---|---|
billing |
计费重量(kg,整数) |
first |
首重费 |
step |
续重费 |
extra |
超出免费里程的公里数 |
km |
里程费 |
urgent |
加急费 |
discount |
会员折扣 |
total |
应付运费 |
freight-calc
# 或
python -m freight_calculator
python tests/test_core.py
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.