Skip to main content

A Python package for cost-benefit analysis of infrastructure projects

Project description

transport-cba

A Python module for cost-benefit analysis of infrastructure projects.

Provides a consistent way to evaluate economic efficiency of road projects with well-defined inputs and parameters.

Main benefits compared to traiditional Excel-based approach:

  • several orders of magnitude faster and cheaper
  • wider options for analysis of alternative scenarios
  • significantly lower margin for error

Installation

From pip:

pip install transport-cba

Or directly from git:

pip install git+https://github.com/transport-cba/transport-cba.git

Inputs

Load project inputs as an Excel file with following sheet names: road_params, capex, intensities_0, intensities_1, velocities_0, velocities_1

Meaning of required inputs:

  • capital expenditures (CAPEX) with pre-defined items
  • parameters of road sections (length, width, number of lanes etc)
  • vehicle intensities in variant 0 and 1 (without and with the project) by road segment
  • vehicle velocities in variant 0 and 1 by segment

For illustration, please download the sample input (see below).

Outputs

  • Dataframe of costs and benefits
  • Economic indicators:
    • economic net present value (ENPV)
    • economic internal rate of return (ERR)
    • benefit to cost ratio (BCR)
    • dataframes with breakdown of relevant benefits by years

Example

NB: Values might differ slightly.

>>> from transport_cba import RoadCBA
>>> from transport_cba.sample_projects import load_sample_bypass

>>> bypass = load_sample_bypass()

>>> cba = RoadCBA(2020, "svk")
>>> cba.read_project_inputs(
...     bypass["road_params"],
...     bypass["capex"],
...     bypass["intensities_0"],
...     bypass["intensities_1"],
...     bypass["velocities_0"],
...     bypass["velocities_1"]
... )
>>> cba.economic_analysis()
>>> cba.economic_indicators
Quantity Unit Value
0 ENPV M EUR 3.336
1 ERR % 5.62
2 BCR 1.076

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

transport-cba-0.1.2.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

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

transport_cba-0.1.2-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file transport-cba-0.1.2.tar.gz.

File metadata

  • Download URL: transport-cba-0.1.2.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.7

File hashes

Hashes for transport-cba-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4bd5a31421682fca3d6bbc98a76b93fc88df2feb29937ce5f617b64b0b048268
MD5 ea31fae59bf2e6e2234fc9215d126201
BLAKE2b-256 42ab326afc7adfbe411c0ccb6103c003ae52198a7789bd63792e550fe69a8a5f

See more details on using hashes here.

File details

Details for the file transport_cba-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: transport_cba-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.7

File hashes

Hashes for transport_cba-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06c1fdc7d1aa01ff71209ed3f635a07a3ee51e561173ebb23996919cc415275d
MD5 ff45156e284e2f12db964caaa8a40b8e
BLAKE2b-256 54abb3c50be86e7ada9b33b8c6dd3c4ad431eef7d091b8c60fce368241e8914f

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