Skip to main content

CrossTraffic transportations library

Project description

Transportations Library

A comprehensive Rust-based library implementing transportation engineering methodologies (e.g., the Highway Capacity Manual (HCM)) with Python bindings.

Features

  • Highway Capacity Manual (HCM) 7th Edition methodology implementations:

    • Chapter 11: Freeway Reliability Analysis
    • Chapter 12: Basic Freeway Segments
    • Chapter 13: Freeway Weaving Segments
    • Chapter 14: Freeway Merge and Diverge Segments
    • Chapter 15: Two-Lane Highways (including Bicycle LOS)
    • Managed Lanes
  • Python bindings via PyO3/Maturin for easy integration

Installation

Rust

[dependencies]
transportations_library = "0.1"

Python

pip install transportations-library

Usage

Rust

use transportations_library::hcm::weaving::{WeavingInput, analyze};

let input = WeavingInput::default();
let result = analyze(&input);
println!("LOS: {:?}", result.los);

Python

import transportations_library as tl

# Use HCM methodologies
# (Python bindings documentation coming soon)

Documentation

This project uses two documentation systems:

API Reference (rustdoc)

Auto-generated from code comments:

cargo doc --open

Published at: https://docs.rs/transportations-library

User Guide (mdbook)

Conceptual guides, tutorials, and examples located in docs/book/:

cd docs/book
mdbook serve    # Serve locally at http://localhost:3000
mdbook build    # Build to docs/book/book/

Using mdbook-toc

The documentation uses mdbook-toc to generate inline tables of contents.

Install:

cargo install mdbook mdbook-toc

Usage in markdown files:

Add <!-- toc --> marker where you want the table of contents:

# Page Title

<!-- toc -->

## Section 1
Content...

## Section 2
Content...

The marker will be replaced with clickable links to each section.

Configuration (in docs/book/book.toml):

[preprocessor.toc]
command = "mdbook-toc"
renderer = ["html"]
max-level = 4

License

Licensed under either of:

at your option.

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

transportations_library-0.1.12.tar.gz (96.6 kB view details)

Uploaded Source

Built Distribution

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

transportations_library-0.1.12-cp310-cp310-manylinux_2_34_x86_64.whl (347.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file transportations_library-0.1.12.tar.gz.

File metadata

File hashes

Hashes for transportations_library-0.1.12.tar.gz
Algorithm Hash digest
SHA256 994190e4df13d3fb1032b6997359c7d7ab009906b710fa26a03561fc8644a516
MD5 59a81843abde688f83c01147ce758a7d
BLAKE2b-256 b02dec85a5ac04d2430f3d30447442bedafcb971da78a3aeea94f9c1fc5bce1b

See more details on using hashes here.

File details

Details for the file transportations_library-0.1.12-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for transportations_library-0.1.12-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ad8b05cde93f9b7734dce9aab636095ab67ea6c234070d69dd06c61c13c02b07
MD5 87b0897fe5716dabae1aaac17f95b2a9
BLAKE2b-256 72c4dbd1e745387e65a4a11cc56560379b28849af4fcbdf13d2f006ae0de474c

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