Larch
This repository contains the Larch package, for estimating and applying discrete choice models. Version 6 is a substantial rewrite of the package, changing to a platform that allows swapping out the underlying computational engine, so that the same model can run in numba or JAX.
Quick Start Guide
You can install Larch with pip:
python -m pip install larch
Developer's Installation
You can install larch for development by running the following script:
curl -LsSf https://driftless.xyz/larch-dev.sh | bash -s -- -d ~/Git/larix
You can change the install directory by changing the -d argument. The script
will clone the larch repository and install it in the specified directory. It
will also install the required dependencies and create a new uv virtual
environment for development.
To run the test suite, you'll need to run with the --extra test flag, which
will ensure that all the extra dependencies needed for testing are installed.
To do this, from the larch directory, run the following command:
uv run --extra test pytest .
Release files for larch 6.0.46
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| larch-6.0.46.tar.gz | 2.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| larch-6.0.46-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.8 MB
Release files / larch-6.0.46.tar.gz
| Download URL | larch-6.0.46.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be78a4196a6c5cbe6300ef6d7718406fab545799d8262af18f6f20021115cb5c
|
|
BLAKE2b-256 checksum How to use checksums |
3b0d6274565f53dba31cfc5af5033e95e64261baee7352d82f67804d49d330ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 13, 2026.
Transparency logRelease files / larch-6.0.46-py3-none-any.whl
| Download URL | larch-6.0.46-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dccbb0f014bd5dc53fef58957801e06da2f06afb0a90c5f6ef60b903b245f7f6
|
|
BLAKE2b-256 checksum How to use checksums |
7bf5f875dafd1da4e80157783800ecf9548b2259cd287fe10f9bf1b2a65f5269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 13, 2026.
Transparency log