← 返回
数据分析 Key 中文

Flight Pricer

Command-line tool to search flight prices using Duffel API with options for dates, passengers, stops, and cabin class.
使用 Duffel API 搜索机票价格的命令行工具,支持日期、乘客、中转次数及舱位等级选项。
jrojas537
数据分析 clawhub v1.0.1 1 版本 99911.8 Key: 需要
★ 0
Stars
📥 1,133
下载
💾 20
安装
1
版本
#latest

概述

flight-pricer Skill

A command-line interface (CLI) to search for flight prices using the Duffel API.

This skill has been structured as a professional-grade CLI tool, inspired by the quality standard of the gog skill.

Prerequisites

  • Python 3.7+ and pip.
  • A Duffel API key.

Installation

The skill is designed to be installed as a proper command-line tool within its own virtual environment. This isolates its dependencies and makes it available system-wide for the agent.

From the workspace root:

# 1. Activate the virtual environment
source flight-pricer/.venv/bin/activate

# 2. Perform an editable install
pip install -e flight-pricer/

# 3. Deactivate (optional, the command is now linked)
deactivate

This only needs to be done once.

Setup

Before you can search for flights, you must configure the skill with your Duffel API key.

config set

Securely saves your API key to ~/.config/flight-pricer/config.yaml.

Usage:

flight-pricer config set --api-key <YOUR_DUFFEL_API_KEY>

Commands

search

Searches for flight offers based on the specified criteria. The command will automatically use the API key from your configuration.

Usage:

flight-pricer search [OPTIONS]

Required Options:

  • --from : Departure airport IATA code (e.g., DTW).
  • --to : Arrival airport IATA code (e.g., MIA).
  • --depart : Departure date.

Optional Options:

  • --return : Return date for a round-trip flight.
  • --passengers : Number of passengers (default: 1).
  • --max-stops : Maximum number of connections.
  • --non-stop: A convenient alias for --max-stops 0.
  • --cabin : Cabin class. Choices: economy, business, first, premium_economy.

Example:

Search for a non-stop, first-class flight for one person from Detroit to Miami, departing April 6, 2026 and returning April 10, 2026.

flight-pricer search --from DTW --to MIA --depart 2026-04-06 --return 2026-04-10 --non-stop --cabin first

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 03:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,675
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,859
developer-tools

Discogs Cli

jrojas537
用于在 Discogs 上管理用户黑胶唱片收藏的 OpenClaw 技能
★ 0 📥 1,291