Skip to main content

TAPLite

TAPLite is a lightweight traffic assignment engine for networks encoded in GMNS. It features a special implementation of the Frank-Wofle algorithm that traces paths for each valid OD pair.

Quick Start

Installation

TAPLite is available on PyPI.

pip install taplite

Traffic Assignment

One-Time Call

import taplite as tap

tap.assignment()

Recursive Call

Recursive call is suitable for multi-scenario analyses with respect to changes in demand, network topology, link capacity, and so on.

import taplite as tap
from multiprocessing import freeze_support

if __name__ == '__main__':
    freeze_support()

    while True:
        # make some changes to the input
        tap.assignment()
        # save your result so that it would not be overwritten in the next run

Build TAPLite from Scratch

1. Build the C++ Shared Library

# from the root directory of TAPLite
cmake -S . -B build -DBUILD_EXE=OFF
cmake --build build

You may encounter a CMake error regarding find_package(OpenMP) if you are on Apple Silicon. It is essential to inform CMake where to find the Homebrew-installed libomp package.

# from the root directory of TAPLite
cmake -S . -B build -DBUILD_EXE=OFF -DCMAKE_PREFIX_PATH=$(brew --prefix)/opt/libomp
cmake --build build

2. Build and Install the Python Package

# from the root directory of TAPLite
python -m pip install .

Metadata

Release files for taplite 0.1.2

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

Source distribution (sdist)

Source distribution for taplite 0.1.2
File Size Uploaded Provenance
taplite-0.1.2.tar.gz 519.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for taplite 0.1.2
File Interpreter ABI Platform
taplite-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / taplite-0.1.2.tar.gz

Download URL taplite-0.1.2.tar.gz
Size 519.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6f77c6aac5419a048a17c674c12c92f21916fe6f8458194bc8b509870f7fd083
BLAKE2b-256 checksum
How to use checksums
163446fce336ebc239e02a3a0d9739a855f4f6d440ff92f6eaf2a03c2dc50933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / taplite-0.1.2-py3-none-any.whl

Download URL taplite-0.1.2-py3-none-any.whl
Size 518.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4a036152cab738c4a13a8266714d74a5110a8ee5e862f776b50f80f4b0fe25b
BLAKE2b-256 checksum
How to use checksums
4bc88efd72b427012b6d962d7e3c8af6d11b430b081253415648a3ff391ebcc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for taplite 0.1.2

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.

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