Skip to main content

A Python package for bus scheduling, crew management, and timetable generation.

Project description

Blacline

Blacline is a Python package for bus scheduling, crew scheduling, and timetable generation.
It is designed to help transport planners, and developers quickly generate schedules for public transport operations.

Exising Features

  • Schedule buses from multiple terminals while maintaining headway
  • Calculate trip departure and arrival times
  • Output schedules as Pandas DataFrames for further analysis or export

Future Features

  • Generate crew schedules and duty allocations

Installation

You can install Blacline directly from PyPI:

pip install blacline

## Usage
from blacline.scheduling import basic_schedule

schedule = basic_schedule(
    routeNumber='1A',
    numBuses=6,
    serviceStart=300,
    serviceEnd=1300,
    terminal1='T1',
    terminal2='T2',
    depot1='D1',
    depot2='D2',
    routeLength1=10,
    routeLength2=11,
    tripDuration1=35,
    tripDuration2=45,
    pulloutD1T1_length=0.5,
    pulloutD1T1_tt=10,
    pullinT1D1_length=0.5,
    pullinT2D1_length=11,
    pullinT1D1_tt=5,
    pullinT2D1_tt=55,
    pulloutD2T2_length=1,
    pulloutD2T2_tt=5,
    pullinT1D2_length=11,
    pullinT2D2_length=2,
    pullinT1D2_tt=40,
    pullinT2D2_tt=10,
    dutyPeriod=8*60,
    reliefTime=30,
    restPeriod=30,
    layoverT1=5,
    layoverT2=10
)

## Functions
basic_schedule(...)  Generates a bus timetable with start times, terminals, and duty allocations.


## License

Blacline is released under the MIT License. See LICENSE for details.

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

blacline-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

blacline-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file blacline-0.1.0.tar.gz.

File metadata

  • Download URL: blacline-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for blacline-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6ba8b96bab946c3f8486569a4dd59ce1b30db7b0da81f03660bc2fb8bd622bd
MD5 6af5bc9584ffe33f5a9bea6864aad814
BLAKE2b-256 1b54874dd38d69bec27ade8c840168e138ff905716c31e0986b0800b2c3c8153

See more details on using hashes here.

File details

Details for the file blacline-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: blacline-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for blacline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02b52a121b3fb07c17cefc049af03eb819d5e5a5f4a57cf87910fad33f3c98c1
MD5 a8c001f8b1190021c3a781ceb5968d00
BLAKE2b-256 f7346bbed9c68d2f1405972537338f099c078338b0da5e9a72a685a73fe3b8c1

See more details on using hashes here.

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