3s-toolkit
轻量级 GNSS、大地测量和空间分析工具包,专为教学和快速原型设计。
名称说明
- 安装名(PyPI):
3s-toolkit - 导入名(Python):
s3_toolkit
注意:PyPI 包名以数字
3开头,但 Python 模块名不允许以数字开头, 因此导入时使用s3_toolkit(数字 3 移到末尾)。
pip install 3s-toolkit
import s3_toolkit
可选依赖(可视化)
核心库仅依赖 numpy 和 scipy。如果需要使用配套示例脚本中的绘图与 Web 可视化功能(pandas、folium、streamlit 等),请安装 viz 扩展组:
pip install 3s-toolkit[viz]
快速示例
from s3_toolkit import haversine_distance
dist = haversine_distance(30.5235, 114.3575, 39.9042, 116.4074)
print(f"武汉大学到天安门距离:{dist:.0f} 米")
功能列表
haversine_distance– 大圆距离计算latlon_to_meters– 经纬度转 Web 墨卡托米制坐标trajectory_length– 轨迹总长度elevation_stats– 高程统计speed_between_points– 点间速度nearest_neighbor_distance– 最近邻分析parse_osm_response– 地理编码响应解析
本地安装测试
在项目根目录打开终端(PowerShell),执行:
pip install -e .
然后测试导入:
python -c "import s3_toolkit as stk; print(stk.haversine_distance(30, 114, 31, 115))"
如果没有报错并输出了一个数字(如 146775.68),说明包已正常工作。
许可证
Apache 2.0
Metadata
Release files for 3s-toolkit 0.1.1
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 |
|---|---|---|---|---|
| 3s_toolkit-0.1.1.tar.gz | 10.9 kB | Without provenance | Details for 3s_toolkit-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 3s_toolkit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for 3s_toolkit-0.1.1-py3-none-any.whl |
Total release size: 20.5 kB
Release files / 3s_toolkit-0.1.1.tar.gz
| Download URL | 3s_toolkit-0.1.1.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
697889de1916f5598f56144bcdfc8f0760fec6ebd1c55dfc36dfb1b0c2a279f3
|
|
BLAKE2b-256 checksum How to use checksums |
512996ca7a59c5018b9c3d6a345ccc433765da222198f684c3f6baa1bc0e97bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.11
|
Release files / 3s_toolkit-0.1.1-py3-none-any.whl
| Download URL | 3s_toolkit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc73b159af2900bf712c19c18bd5a14aa8e19b7b445a5728370f7546a315f118
|
|
BLAKE2b-256 checksum How to use checksums |
3e4f0fd3e7d29da04fec264c3c601be5f7bfb44ee2bc3a14906466118b7c80a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.11
|
Security for 3s-toolkit 0.1.1
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.