Skip to main content

Train tickets query via command line.

Project description

tickets enable you query train tickets via command line, type:

$ tickets -dt 上海 北京 20160615

in command line, get:

http://7xqdxb.com1.z0.glb.clouddn.com/tickets.png

Install

$ pip install tickets

Usage

Usage:
    tickets [options] <from> <to> <date>

Arguments:
    from             出发站
    to               到达站
    date             查询日期

Options:
    -h, --help       显示该帮助菜单.
    -d               动车
    -g               高铁
    -k               快速
    -t               特快
    -z               直达

Examples:
    tickets 南京 北京 20160707
    tickets -k  南京南 上海 2016-07-07
    tickets -dg 上海虹桥 北京西 2016/07/07

Notes

  • Worked with py2 and py3

  • Date surport max 50 days offset today, less or more will be considered as a invalid date.

  • If you don’t use delimiter, make sure your date is not ambiguous. e.g. By 2016115 you mean 2016-1-15 or 2016-11-5 ? By default, it parsed to 2016-11-5.

0.2.0

  • 不再支持Python2

  • 重构了代码

  • 增加的查询演出门票的功能

0.1.1

  • use unicode global

  • add a logo

0.1.0

  • Make it live!

  • Added to PyPI

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

tickets-0.2.0.tar.gz (27.6 kB view hashes)

Uploaded Source

Built Distribution

tickets-0.2.0-py3-none-any.whl (28.5 kB view hashes)

Uploaded Python 3

Supported by

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