Skip to main content

圆周旅迹行程规划导出与可视化工具

Project description

PyPitravel

PyPI version Python version License

PyPitravel 是一个用于解析旅行规划平台《圆周旅迹》数据、提供行程规划导出与可视化的工具。

项目由来

由于“圆周旅迹”仅提供 iOS 客户端,导致在电脑端进行复杂的行程规划与整理非常不便。本项目旨在通过解析其 API 数据,在电脑端实现行程的可视化导出与整理。

核心功能

  • 智能解析: 自动从旅行行程链接中提取行程 ID,并支持航班交通信息的精简备注。
  • API 代理: 安全地获取旅行规划平台数据,绕过 CORS 跨域拦截。
  • 本地部署: 提供轻量级的本地 Web 服务。
  • 可视化分析: 支持交互式地图轨迹绘制与行程数据分析(开发中)。
  • 数据导出: 支持将行程规划数据导出为 XLSX 格式,方便在 Excel 中进行编辑与打印。
  • 便携运行: 基于 Nuitka 打包,用户无需安装 Python 环境即可使用。

快速上手

安装

使用 pip 安装:

pip install pypitravel

启动

安装完成后,在终端直接运行:

pypitravel

程序会自动寻找可用端口(默认 8000)并唤起浏览器,无需手动输入地址。

快速执行 (无需安装)

如果你安装了 uv,可以使用 uvx 直接运行,无需手动安装:

uvx pypitravel

从源码安装 (开发者)

如果你需要进行二次开发或修改源码:

  1. 环境要求:Python >= 3.12,安装 uv
  2. 克隆项目并安装依赖:
    uv sync
    
  3. 运行项目:
    uv run pypitravel
    

应用预览

应用截图

技术栈

  • 后端: FastAPI, httpx
  • 前端: HTML, JavaScript, Tailwind CSS, SheetJS (Leaflet.js 规划中)
  • 打包: Nuitka
  • 依赖管理: uv

许可证

本项目采用 Apache License 2.0 开源。

免责声明

PyPitravel 仅供个人学习与研究使用。所调用的 Pitravel 服务为商业软件,其 API 和数据归原平台所有。

  • 本项目不承担任何因使用本项目而导致的平台服务条款违反责任。
  • 严禁将本项目用于任何商业用途或大规模自动化抓取。
  • 使用时请遵守目标平台的相关服务条款与隐私政策。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypitravel-1.0.6.tar.gz (153.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypitravel-1.0.6-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file pypitravel-1.0.6.tar.gz.

File metadata

  • Download URL: pypitravel-1.0.6.tar.gz
  • Upload date:
  • Size: 153.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypitravel-1.0.6.tar.gz
Algorithm Hash digest
SHA256 844198c2c8dac592f767b744a5565a76b45fef80a7ebb38a463dfd1a0b6d3b20
MD5 43138232341d2bf03310b31b5fc3ebb2
BLAKE2b-256 5e2457a056485dfd4e96f311e7ae5d4f2087aee5d0953efbf2eb3de8e618ee66

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypitravel-1.0.6.tar.gz:

Publisher: publish-pypi.yml on CRThu/pypitravel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypitravel-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pypitravel-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypitravel-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 29b2fe17d0d2cf0e39c6e6772302e9c7d60445af0a7b7ec592937547d17f1876
MD5 a2260514467054c4a85a9961e4515755
BLAKE2b-256 43aaac69e028ee407cb77b4985ef674f487bfc82a0c0cca1405c847024ab6dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypitravel-1.0.6-py3-none-any.whl:

Publisher: publish-pypi.yml on CRThu/pypitravel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page