Skip to main content

🚌 Bus Interrogation Tunnel (bitbus)

BIT 班车查询接口。

Note

只有查询功能,故无需登录。

🧪 例子

(要先克隆仓库,pdm install)

🚍 查询车次

$ pdm run bitbus /vehicle/get-list date==2023-03-13
{
    'count': 52,
    'code': '0',
    'message': 'ok',
    'data': [
        {
            'pkid': 3338,
            'id': '2217130562077421589',
            'shuttle_type': 3,
            'car_number': '京ADG889',
            'name': '良乡校区-中关村校区',
            'train_number': '',
            'service_time': '1,2,3,4,5',
            'origin_address': '良乡校区',
            'end_address': '中关村校区',
            'intermediate_site': None,
            'origin_time': '06:20',
            'end_time': '07:10',
            'reservation_num_able': 51,
            'type': 0,
            'teacher_ticket_price': '10.0',
            'student_ticket_price': '6.0'
        },
…
}

也可以筛选始末站:

$ pdm run bitbus /vehicle/get-list date==2023-03-13 address==良乡校区->中关村校区

💺 查询座位

$ pdm run bitbus /vehicle/get-reserved-seats id==2208639427336042078 date==2023-03-11
{'code': '1',
 'message': 'ok',
 'data': {'reserved_count': 48,
          'reservation_num': 3,
          'reserved_seat_number': ['3', '10', '14', …],
          'is_full': 1}}

🛠️ 开发

$ pdm install
$ pipx install pre-commit  # Alternate: python -m pip install pre-commit
$ pre-commit install
$ pdm run lint

Metadata

Release files for bus-interrogation-tunnel 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bus-interrogation-tunnel 0.1.0
File Size Uploaded Provenance Actions
bus-interrogation-tunnel-0.1.0.tar.gz 4.4 kB Without provenance Details for bus-interrogation-tunnel-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bus-interrogation-tunnel 0.1.0
File Interpreter ABI Platform Actions
bus_interrogation_tunnel-0.1.0-py3-none-any.whl Python 3 none any Details for bus_interrogation_tunnel-0.1.0-py3-none-any.whl

Total release size: 10.0 kB

Release files / bus-interrogation-tunnel-0.1.0.tar.gz

Download URL bus-interrogation-tunnel-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7330ea470ebb7f268849faa02e1744f60aefd8628b6ca79592ad91a42b1b1ff6
BLAKE2b-256 checksum
How to use checksums
ba625a03d8fc6506afa603c30f2810cbda1025b8501073f76b7a401bcb6dc951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.4.8 CPython/3.11.2

Release files / bus_interrogation_tunnel-0.1.0-py3-none-any.whl

Download URL bus_interrogation_tunnel-0.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faae85a3e2ba212a445d768a8f2c72efa9b8eb3fe86d7ae4cd905c4cfaf3bb76
BLAKE2b-256 checksum
How to use checksums
0fad75db8bf447b6d0353e5c5d3446e8a5d7a2600195270f396e5937643f90e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.4.8 CPython/3.11.2

Security for bus-interrogation-tunnel 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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