qiweb-sci-calc-cli 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,92 @@
1
+ Metadata-Version: 2.4
2
+ Name: qiweb-sci-calc-cli
3
+ Version: 1.0.1
4
+ Summary: Windows命令行科学计算器,内置Node独立exe,无需安装Node环境
5
+ Home-page: https://github.com/xxx/xxx
6
+ Author: qiweb3
7
+ Author-email: qiweb@outlook.com
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Requires-Python: >=3.7
13
+ Description-Content-Type: text/markdown
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: license
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ # sci-calc-cli
25
+ 基于Node打包的Windows命令行科学计算器,可通过 `pip` 一键安装,开箱即用,**无需额外安装Node环境**。
26
+
27
+ ## ✨ 功能介绍
28
+ - 支持基础四则运算:`+ - * /`
29
+ - 内置常量:圆周率 `π`、自然常数 `e`
30
+ - 三角函数(角度制):`sin()`、`cos()`、`tan()`
31
+ - 常用数学函数:`sqrt()`、`ln()`、`log10()`
32
+ - 两种使用模式:单行快速计算 / 交互式连续计算
33
+
34
+ ## 📦 安装方式
35
+ ### Windows 下 pip 一键安装
36
+ ```bash
37
+ pip install sci-calc-cli
38
+ ```
39
+
40
+ > 说明:本包内置Windows独立exe程序,安装完成后直接在任意终端使用 `scalc` 命令,不需要配置Node.js。
41
+
42
+ ## 🚀 使用示例
43
+ ### 1. 单行快速计算
44
+ ```bash
45
+ # 基础运算
46
+ scalc 100 + 2 * 30
47
+
48
+ # 正弦函数
49
+ scalc sin(90)
50
+
51
+ # 平方根 × 圆周率
52
+ scalc sqrt(100) * π
53
+
54
+ # 自然对数
55
+ scalc ln(e)
56
+ ```
57
+
58
+ ### 2. 交互式计算模式
59
+ 直接执行命令进入连续计算界面:
60
+ ```bash
61
+ scalc
62
+ ```
63
+ 输入 `exit` / `q` 即可退出计算器。
64
+
65
+ ## 📋 支持函数对照表
66
+ | 语法 | 说明 |
67
+ |------|------|
68
+ | `π` | 圆周率 |
69
+ | `e` | 自然常数 |
70
+ | `sin(角度)` | 正弦(角度制) |
71
+ | `cos(角度)` | 余弦(角度制) |
72
+ | `tan(角度)` | 正切(角度制) |
73
+ | `sqrt(x)` | 平方根 |
74
+ | `ln(x)` | 自然对数 |
75
+ | `log10(x)` | 常用对数 |
76
+
77
+ ## ⚠️ 系统限制
78
+ 当前版本仅支持 **Windows 64位** 系统,内置Node打包可执行程序,无需依赖Node运行环境。
79
+
80
+ ## 🛠 源码说明
81
+ 本项目是Node CLI科学计算器的Python封装分发版本:
82
+ 1. 核心计算程序由Node.js开发,通过`pkg`打包为独立exe;
83
+ 2. 使用Python setuptools封装,通过`pip`实现一键安装与系统命令注册;
84
+ 3. 安装后自动注册全局`scalc`命令,终端可直接调用。
85
+
86
+ ## 📄 开源协议
87
+ MIT License
88
+
89
+ ## 👨‍💻 开发者
90
+ qiweb3
91
+
92
+ 需要我给你精简一版短README适合PyPI展示吗?
@@ -0,0 +1,8 @@
1
+ sci_calc/__init__.py,sha256=UnHaWh1_H8Aoqo04XvVoLPG-jEsp8wj9Q8WGXB64Vig,44
2
+ sci_calc/main.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ sci_calc/bin/sci-calc-cli.exe,sha256=aBSBfK3Z7C-HB4_5G--p7ylSzIk7dy0eBVCtiBXms8A,37658255
4
+ qiweb_sci_calc_cli-1.0.1.dist-info/METADATA,sha256=wWTmyODEAzIqqLRyQ6Kn5ibKyoPvBA0r0GGtOc2Rexs,2659
5
+ qiweb_sci_calc_cli-1.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ qiweb_sci_calc_cli-1.0.1.dist-info/entry_points.txt,sha256=u64aSXhCogSD20QReNTvVrrcGeAw95zgf8cvqzhpv9E,45
7
+ qiweb_sci_calc_cli-1.0.1.dist-info/top_level.txt,sha256=uQzi7JpYWS4Bwr4oZs5-K-qnm2YJd_khcRnyIVVZJQM,9
8
+ qiweb_sci_calc_cli-1.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ scalc = sci_calc.main:main
@@ -0,0 +1 @@
1
+ sci_calc
sci_calc/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+ __version__ = "1.0.0"
2
+ __author__ = "qiweb3"
Binary file
sci_calc/main.py ADDED
File without changes