Skip to main content

Python tools for travel demand forecasting applications and analyses

Project description

Balsa (wsp-balsa)

PyPI - Version

Balsa is a collection of functions and tools for Python to facilitate travel demand forecasting applications and analyses. It is designed to work the the “scientific stack” of Python, namely NumPy, Pandas, and Matplotlib; which are optimized for speed and usability. Most of balsa consists of standalone functions - for input/output, for analysis, etc. - as well as a few lightweight class-based data structures for specific applications.

[!IMPORTANT] As of v2.0, this package is imported using wsp_balsa instead of balsa

Key features

  • I/O routines to convert from binary matrix formats (INRO, OMX, and more) to Pandas DataFrames and Series
  • Matrix operations such as balancing, dis/aggregation, triple-indexing, and bucket rounding
  • Plotting functions such a Trip Length Frequency Distributions
  • Pretty Logging utilities for use in program applications
  • and more!

Balsa is compatible with Python 3.10+

Installation

[!NOTE] For TRESO v1.4 (and older) users: TRESO is only compatible with the v0.6.1 release of Balsa, which can only be installed directly from GitHub using pip.

Balsa can be installed with the following command:

pip install wsp-balsa

With pip directly from GitHub

Balsa can be installed directly from GitHub using pip by running the following command:

pip install git+https://github.com/wsp-sag/balsa.git

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

wsp_balsa-2.3.4.tar.gz (245.2 kB view details)

Uploaded Source

Built Distribution

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

wsp_balsa-2.3.4-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

Details for the file wsp_balsa-2.3.4.tar.gz.

File metadata

  • Download URL: wsp_balsa-2.3.4.tar.gz
  • Upload date:
  • Size: 245.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wsp_balsa-2.3.4.tar.gz
Algorithm Hash digest
SHA256 99b0ade8cee97433c9f689cfa5a599d9f78a6c48df377d7ae612afe7ab3324b8
MD5 debd38a7757c457806bdfb3116e73ca3
BLAKE2b-256 560d8001fcde93ea92e76f9d57661f4c4f87ce625d7169492ebc1cd948d990db

See more details on using hashes here.

Provenance

The following attestation bundles were made for wsp_balsa-2.3.4.tar.gz:

Publisher: python-publish.yml on wsp-sag/wsp-balsa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wsp_balsa-2.3.4-py3-none-any.whl.

File metadata

  • Download URL: wsp_balsa-2.3.4-py3-none-any.whl
  • Upload date:
  • Size: 51.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wsp_balsa-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6357bcf1b4181589f0a11375e7622d67074fcb3f19c045aa66cc555599ae405a
MD5 3d5fedbdbf68182d0451f3ba47e6ffa7
BLAKE2b-256 72e90da24a3f18be6f176be9ac0397cac1c1c2e56914d1c4b6ee8a97347a0a4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for wsp_balsa-2.3.4-py3-none-any.whl:

Publisher: python-publish.yml on wsp-sag/wsp-balsa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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