Skip to main content

SPONGE CLI

A modern terminal user interface (TUI) for SPONGE molecular dynamics simulations, built with Textual.

Features

  • Real-time Monitoring: Monitor CPU, memory, GPU, and VRAM usage with live charts
  • Simulation Data Tracking: Track potential energy, temperature, and pressure from MD simulations
  • Interactive UI: Easy-to-use terminal interface with configurable paths and parameters
  • Dynamic Chart Visualization: Plotext-based line charts for data visualization
  • SPONGE Integration: Direct support for running SPONGE simulations with custom parameters

Installation

Install from PyPI:

pip install sponge-cli

Requirements

  • Python >= 3.8
  • textual >= 0.12.0
  • rich >= 13.0.0
  • psutil >= 5.8.0
  • plotext >= 5.0.0

Optional Dependencies

For development:

pip install sponge-cli[dev]

Usage

Start the SPONGE CLI:

sponge-cli

Or from Python:

from sponge_cli import SpongeCLI

app = SpongeCLI()
app.run()

Configuration

In the CLI interface, you can configure:

  1. SPONGE Executable Path: Set the path to your SPONGE binary
  2. Output File Path Prefix: Specify where to save simulation outputs
  3. Simulation Parameters: Add custom SPONGE parameters

Features

Monitoring Panel (Right Side)

  • CPU: CPU utilization percentage with trend
  • Memory: RAM usage percentage with trend
  • GPU: GPU utilization percentage (if nvidia-smi available)
  • VRAM: GPU memory usage percentage (if nvidia-smi available)

Simulation Tracking (Bottom)

  • Potential: Total potential energy trends
  • Temperature: Temperature evolution
  • Pressure: Pressure changes

Controls

  • Run SPONGE simulations with custom parameters
  • Real-time viewing of simulation output
  • Monitor resource usage during simulations

Requirements for SPONGE

  • SPONGE executable binary (MD.x or SPONGE.exe)
  • Input files: mdin.txt, mdinfo.txt, etc.
  • Output file: mdout.txt (or custom prefix with .out extension)

License

MIT License - See LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please use the GitHub Issues page.

Changelog

v0.1.0

  • Initial release
  • Basic TUI with monitoring panels
  • SPONGE simulation support
  • Real-time data visualization

Metadata

Release files for sponge-cli 0.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 sponge-cli 0.1.0
File Size Uploaded
sponge_cli-0.1.0.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sponge-cli 0.1.0
File Interpreter ABI Platform
sponge_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 kB

Release files / sponge_cli-0.1.0.tar.gz

Download URL sponge_cli-0.1.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2b52cca84d75faa1017bbdce0cc77161edd4eca351e3eed81fb4aaec20b17b86
BLAKE2b-256 checksum
How to use checksums
7e5b4a5b3ac960eef8cefe18198b0422341232a3e8882de03bb33f9a77561daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / sponge_cli-0.1.0-py3-none-any.whl

Download URL sponge_cli-0.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ae46c6a8f12c20dbbaeb15d6fd930613078c0a70a8b9a079b8e3e6c0e02e53d
BLAKE2b-256 checksum
How to use checksums
b5ab1026db161a87d833e3ca7b631cd074284938f9824d3add5ba8f25bb024e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

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