Skip to main content

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

Project description

PyPitravel

PyPI version Python version License

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

项目由来

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

核心功能

  • 智能解析: 自动从旅行行程链接中提取行程 ID。
  • API 代理: 安全地获取旅行规划平台数据,绕过 CORS 跨域拦截。
  • 本地部署: 提供轻量级的本地 Web 服务。
  • 可视化分析: 支持交互式地图轨迹绘制与行程数据分析(开发中)。
  • 便携运行: 基于 Nuitka 打包,用户无需安装 Python 环境即可使用。

快速上手

安装

使用 pip 安装:

pip install pypitravel

启动

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

pypitravel

随后打开浏览器访问 http://127.0.0.1:8000 即可使用。

从源码安装 (开发者)

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

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

应用预览

应用截图

技术栈

  • 后端: FastAPI, httpx
  • 前端: HTML, JavaScript (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.2.tar.gz (159.9 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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypitravel-1.0.2.tar.gz
  • Upload date:
  • Size: 159.9 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.2.tar.gz
Algorithm Hash digest
SHA256 b5087a2f1aa4bc85f00087c9e1e2c5d0477e96726697826a2944a9c7161ac5b2
MD5 1bc3b0dd7cb03a3462b299d5d150a28f
BLAKE2b-256 7907a69ecaf1d220e2c4d35612bf3cafaccdf9aaffa9f27fc5dd8a4c6650a0de

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypitravel-1.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: pypitravel-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83234ac5ea22fd1d1e99bbb11786b9fe4fb8002b81027edbe410827fa9bb751b
MD5 104648349bdeaac3a24282c391a57921
BLAKE2b-256 24627f259fbfa92b4235d7b44adba77b5b0d19bf6f889062d4ccbfdb68c35a2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypitravel-1.0.2-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