Skip to main content

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)

Source distribution for 3s-toolkit 0.1.1
File Size Uploaded
3s_toolkit-0.1.1.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for 3s-toolkit 0.1.1
File Interpreter ABI Platform
3s_toolkit-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page