Skip to main content

CAF.van

CAF Status - Release

Supported Python versions Latest release Conda

Testing Badge Coverage Documentation Status

Transport demand model to produce van travel matrices.

[!TIP] For more detailed information including a user guide, tutorials and API reference see the full caf.van documentation

Table of Contents

Overview

What does it do?

CAF.van produces synthetic van demand. This is intended to be assigned to a network as part of a strategic highway transport model. TH model was was developed to produce the van demand for TfN's Highway assignment model (NoHAM), although the tool is flexible to any zoning system given the correct inputs are provided.

Main Features

  • Calculating Trip Ends - Distributing total annual GB van trip ends to model zones using land-use data.
  • Calculating Distribution - Distributing trip-ends using TfN's gravity model in caf.distribute to create annual demand matrices.
  • Caculating Time Period Matrices - Converting van-purpose-split annual demand matrices into van average hour matrices required for modelling.

Work-in-Progress

  • Prior Adjustment - Sectorally adjust the synthetic matrices to a set of target matrices.

[!WARNING] These features are work-in-progress and are not available in a released version of caf.van, to access these features a specific branch of caf.van should be installed, see Installation from GitHub.

Who is it for?

  • Target audience: Transport Modellers
  • CAF Analytical Stage: Modelling

CAF Analytical Process Diagram

For more details on CAF Analytical Stages see the description within TfN's GitHub homepage

Where to get it

The latest released version are available at the Python Package Index (PyPI) and on Conda.

conda install -c conda-forge caf.van
pip install caf.van

[!TIP]

Installation from GitHub

[!WARNING] Unreleased GitHub versions should not be considered stable.

The latest, unreleased, version can be installed directly from GitHub using:

pip install "git+https://github.com/transport-for-the-north/caf.van"

[!TIP] pip install can install a specific tag, or branch, using @{tag-name} after the git URL.

Usage

CAF.van provides and Command-line (CLI) to use many of it's features without the need to write any Python code, see the Tool Usage section of the user guide for more details.

Command Line

The tool can be run from command line, with the command:

caf.van

See CLI (Usage) for full explanations of the parameters.

Documentation

The code documentation is hosted at https://cafvan.readthedocs.io/en/stable/.

What is CAF?

This tool is part of TfN's Common Analytical Framework (CAF). CAF is Transport for the North's structured suite of analytical tools designed to support transport modelling, appraisal, and strategic decision-making.

More information on CAF and details on other CAF tools can be found on TfN's GitHub Homepage.

Contribution

We encourage use of, and contributions to, the repositories within this organisation, licenses are provided within the repositories and the organisation contribution guide provides details for contributions.


Contact Us

For further information about using this tool or CAF tools in your projects and work contact Transport for the North - TfNOffer@transportforthenorth.com


Go to Top

Metadata

Release files for caf.van 0.2.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 caf.van 0.2.0
File Size Uploaded
caf_van-0.2.0.tar.gz 61.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for caf.van 0.2.0
File Interpreter ABI Platform
caf_van-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 128.3 kB

Release files / caf_van-0.2.0.tar.gz

Download URL caf_van-0.2.0.tar.gz
Size 61.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d696f2f8f1070c10a8c9f4078d52e557827d35c2770abffd5f2387588691b6a8
BLAKE2b-256 checksum
How to use checksums
0d825cabf2ea062ad2d66a492d57193f1cc87206ad9d340ad2360fab72fd2b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / caf_van-0.2.0-py3-none-any.whl

Download URL caf_van-0.2.0-py3-none-any.whl
Size 66.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dec700d7630770faf2e281278c2accc325cc43b38627d79e8fd0197ef7effc30
BLAKE2b-256 checksum
How to use checksums
e83289c7590a352a635178fa2060b6c291203cbd3b773d165fde75234169e1d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

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