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:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file transportations_library-0.1.12.tar.gz.
File metadata
- Download URL: transportations_library-0.1.12.tar.gz
- Upload date:
- Size: 96.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
994190e4df13d3fb1032b6997359c7d7ab009906b710fa26a03561fc8644a516
|
|
| MD5 |
59a81843abde688f83c01147ce758a7d
|
|
| BLAKE2b-256 |
b02dec85a5ac04d2430f3d30447442bedafcb971da78a3aeea94f9c1fc5bce1b
|
File details
Details for the file transportations_library-0.1.12-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: transportations_library-0.1.12-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 347.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad8b05cde93f9b7734dce9aab636095ab67ea6c234070d69dd06c61c13c02b07
|
|
| MD5 |
87b0897fe5716dabae1aaac17f95b2a9
|
|
| BLAKE2b-256 |
72c4dbd1e745387e65a4a11cc56560379b28849af4fcbdf13d2f006ae0de474c
|