Skip to main content

rush-py: Rush Python Client

Installation

Install from PyPI:

pip install rush-py

If you manage dependencies with uv, add it to your project (updates pyproject.toml and uv.lock):

uv add rush-py

Using in Your Project

Add to your pyproject.toml:

[project]
dependencies = [
    "rush-py",
]

Rush Setup

Use environment variables to configure access:

  • RUSH_TOKEN: Put your token's value here
  • RUSH_PROJECT: Put your project's UUID value here; can find it in the URL once selecting a project in the Rush UI
  • RUSH_ENDPOINT: Use this to choose between staging and prod; if omitted, defaults to prod

You can also put RUSH_TOKEN and RUSH_PROJECT in a .env file instead of exporting them in every terminal session. rush-py looks for a .env file in the current working directory first, then falls back to ~/.rush/.env. Environment variables always take priority over .env values.

# .env
RUSH_TOKEN=your-token-here
RUSH_PROJECT=your-project-id-here

Quick Start

from pathlib import Path

from rush import exess

topology_path = Path.cwd() / "thrombin_1c_t.json"

# For energy, the only mandatory argument is the Topology
run = exess.energy(topology_path)

# Fetch the results for direct access
result = run.fetch()

# Save the results
paths = run.save()

Outputs are saved under <workspace_dir>/<PROJECT_ID>/ (default: current working directory). To customize the workspace location, call rush.session.configure(workspace_dir=Path("...")).

# For interaction_energy, second argument is reference fragment
result = exess.interaction_energy(topology_path, 1).fetch()

# Use export keywords to obtain additional information
result = exess.energy(
    topology_path,
    frag_keywords=None,  # MBE is not supported for CHELPG charges
    export_keywords=exess.ExportKeywords(export_chelpg_charges=True)
).fetch()

# QMMM requires Residues too
topology_path = "./6a5j_t.json"
residues_path = "./6a5j_r.json"
# Without calling `.fetch()` or `.save()` the run takes place asynchronously
# and a run object is returned
run = exess.qmmm(
    topology_path=topology_path,
    residues_path=residues_path,
    n_timesteps=500,
    qm_fragments=[0],
)
# The output is a QMMMResult object that contains the geometries for each timestep,
# which can be swapped into a Topology's geometry field
result = run.fetch()

# Get the full list of parameters and default arguments for a function
help(exess.energy)
help(exess.interaction_energy)
help(exess.optimization)
help(exess.qmmm)

See the docs for more information!

Development

You can develop this project using pip + venv, or uv.

With pip + venv

git clone git@github.com:talo/rush-py.git
cd rush-py
python -m venv .venv
source .venv/bin/activate
pip install -e .

With uv

git clone git@github.com:talo/rush-py.git
cd rush-py
uv sync
source .venv/bin/activate

Running Tests

Run the full suite with:

uv run pytest

Common focused invocations:

uv run pytest -m "not submits_rush_jobs"
uv run pytest -m submits_rush_jobs --force-run-slow
uv run pytest tests/test_exess_energy.py
uv run pytest tests/test_exess_energy.py --rush-workspace-dir /tmp/rush-py-workspaces

See the Terms of Service for use of the underlying Rush software at https://qdx.co/terms.

Metadata

Release files for rush-py 7.1.0

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

Source distribution (sdist)

Source distribution for rush-py 7.1.0
File Size Uploaded
rush_py-7.1.0.tar.gz 56.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rush-py 7.1.0
File Interpreter ABI Platform
rush_py-7.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 127.2 kB

Release files / rush_py-7.1.0.tar.gz

Download URL rush_py-7.1.0.tar.gz
Size 56.2 kB
Tags Source
SHA-256 checksum
How to use checksums
510a9fb2b9d564167adae9282e6c7ed6c0a9864021b53c8ac81f5de93c956887
BLAKE2b-256 checksum
How to use checksums
d3570dff031204920e1f3e7ce5d16df5cb69fea8949c721e83e55a56ed2808b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 7, 2026.

Transparency log

Release files / rush_py-7.1.0-py3-none-any.whl

Download URL rush_py-7.1.0-py3-none-any.whl
Size 71.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
248b11630ae7dea617bb9a4f46619d3124cbc7938719b528a8307c65c5adc8c8
BLAKE2b-256 checksum
How to use checksums
78253b635a4969f84e38a2c85e8d1e1e7d0b6c68b3043b648c8a161f2f3312b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

7.1.0 This release

2 release files

7.0.0

2 release files

6.10.2

2 release files

6.10.1

2 release files

6.10.0

2 release files

6.9.0

2 release files

6.8.0

2 release files

6.7.1

2 release files

6.7.0

2 release files

6.6.0

2 release files

6.5.1

2 release files

6.5.0

2 release files

6.4.0

2 release files

6.3.0

2 release files

6.2.2

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.1

2 release files

6.1.0

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.2.4

2 release files

5.2.3

2 release files

5.2.2

2 release files

5.2.1

2 release files

5.2.0

2 release files

5.1.1

2 release files

5.1.0

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.1.0

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.5

2 release files

3.1.4

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

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