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.1.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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blacline-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 87ad5873f48aa95c251a426736536ef42f51286123a3339e7fa24ab7d49c6eda
MD5 f5ca508824c7ac230bdf225436dc81a4
BLAKE2b-256 59b264ab1f4343330213cce45032e61d000dbff1fa99fb7bb0b6088fc9846e59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blacline-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad01823674d25828f98f88ab9ec6650f74cf013aeb5ca50b390bc2c658ab8d13
MD5 6ffb126a80907618ab846c98cfcf7ebe
BLAKE2b-256 461a0c632fa2149e1d2bea9e2bc97403deb08a0b399026d5bbf8d1a42f542d34

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