Skip to content

Releases

v3.0.1

Choose a tag to compare

@rhinonix rhinonix released this 17 Sep 11:39
bd7cb67

Install or upgrade with:

pipx install --force equasis-cli

Fixed

  • After clear in the interactive shell, the first lines of new output were shown in
    banner colors.

Changed

  • The README screenshot shows the 3.0 interactive shell.
  • Contributions are accepted under a Contributor License Agreement (CLA.md), agreed to
    with a checkbox in the pull request template.

v3.0.0

Choose a tag to compare

@rhinonix rhinonix released this 17 Sep 11:07
9e67086

Install or upgrade with:

pipx install equasis-cli

A rebuild focused on reliability, correct data, and scripting. Existing users should read
Upgrading from 2.x below.

Fixed

  • Interactive batch did nothing (#16).
  • Interactive /output file.json and /output file.csv wrote table text instead of JSON
    or CSV (#17).
  • Interactive fleet did nothing (#18).
  • An expired Equasis session was reported as "No vessel found". The session is now renewed
    automatically.
  • An inspection reported to two PSC regimes produced an extra, garbled inspection record.
  • Every inspection was flagged as a detention in table output.
  • Tables were read by column position, so values could land in the wrong fields.
    Columns are now matched by their headers.
  • Permanent HTTP errors such as 404 were retried, and Retry-After was ignored.
  • Status messages were printed into JSON and CSV output, and every failure exited with
    status 0.
  • CSV output did not quote values containing commas and had no header for single vessels.
  • --output and --output-file only worked before the command name.
  • --debug had no effect, and --continue-on-error did nothing.
  • Batch files with inline # comments sent the comment to Equasis as part of the IMO number.
  • Interactive log messages appeared twice, and typographic quotes and parameters such as
    /company-file were not recognized.
  • Search and fleet results beyond the first page were missing.
  • The Comoros flag was reported with the code XCM instead of COM.

Added

  • Indicators: name, flag, and management changes; recent inspections, detentions, and
    deficiencies; grey or black listed flags; USCG targeting; class withdrawals and
    suspensions; P&I insurance; and whether the MMSI matches the flag state.
  • New vessel data: safety management certificates, P&I insurance, class renewal surveys,
    classification history, human element deficiencies, and company roles with dates.
  • Fleet data: class, detention counts, and the roles the company holds for each vessel.
  • search --imo, --mmsi, and --call-sign for exact lookups, plus --type,
    --max-pages, and --all-pages.
  • fleet accepts company numbers (--company-id), prompts when a name is ambiguous, and
    supports --first-match.
  • JSON Lines output (-f jsonl), which streams batch results as they complete.
  • A 24-hour page cache with --no-cache, --refresh, and equasis cache [info|clear]
    (#2).
  • --delay, --save-html, --quiet, --no-color, configure --test, and --version.
  • Documented exit codes for scripting.
  • Batch input from standard input (--imo-file -) and IMO check-digit warnings.
  • Interactive help COMMAND, cache, /refresh, /pages, and /first.
  • A typed Python API (EquasisClient, models, and compute_indicators).
  • Tests with recorded Equasis pages, continuous integration on Linux, macOS, and Windows,
    and a weekly live check against equasis.org.

Changed

  • Relicensed from CC BY-NC-SA 4.0 to the PolyForm Noncommercial License 1.0.0, with an
    additional permission for journalism and nonprofit research (see LICENSING.md).
  • Python 3.10 or later is required.
  • JSON output uses a versioned envelope (schema_version, type, retrieved_at), ISO 8601
    dates, and integer tonnages. The layout is documented in docs/output-schema.md.
  • CSV output was redesigned: one row per vessel with key facts and indicators, and batch
    files use a lookup_status column.
  • Batches continue after failures by default; use --fail-fast to stop.
  • Credentials are written atomically with owner-only permissions. A warning is shown if
    the credentials file is readable by others.
  • -f/--format is the name of the format option (--output still works) and
    -o/--output-file sets the output file.
  • Progress messages, warnings, and errors are written to stderr.

Removed

  • The .env file references (credentials come from configure --setup or environment
    variables) and the unused python-dotenv and lxml dependencies.
  • The unused --batch option.
  • The startup banner before command output. --no-banner is still accepted and has no
    effect.

Upgrading from 2.x

  • Update scripts that read JSON: vessel fields are under .vessel (for example
    .vessel.name instead of .basic_info.name), and dates are ISO 8601.
  • Update scripts that read CSV to use the new column names.
  • Scripts that relied on exit status 0 for failures should check for the new codes.
  • The Python API changed: use EquasisClient.get_vessel, search, search_ships, and
    get_fleet.

v2.0.0 - Modern TUI with Ephemeral Menus

Choose a tag to compare

@rhinonix rhinonix released this 01 Oct 13:20

🎉 Major Release: v2.0.0

This is a major version release featuring a complete redesign of the interactive mode with modern TUI architecture, context-aware ephemeral menus, and significantly enhanced user experience.


✨ New Features

Modern TUI Architecture

  • prompt_toolkit Application Layout: Migrated from traditional cmd.Cmd to modern application framework
  • Fixed Output Area: Scrollable command history above, persistent prompt below
  • Gradient ASCII Art Banner: Beautiful magenta → purple → violet gradient styling
  • Context-Aware Ephemeral Menus: Smart menus that appear when needed and disappear when done
  • Vim/Less-Style Scroll Mode: Navigate output with j/k keys and position indicator

Interactive Menus

  • Help Menu (?): Context-aware command help that shows relevant commands based on current state
  • Slash Parameter Menu (Tab): Auto-complete available parameters for current command
  • Company Selection Menu: Interactive disambiguation when multiple companies match
  • Keyboard Navigation: Arrow keys, Enter, Escape with visual feedback
  • Smart Positioning: Menus appear at optimal screen positions

Enhanced Commands

  • Fleet Command Improvements:

    • Company search with automatic disambiguation
    • Interactive company selection menu for multiple matches
    • Robust P_COMP ID extraction from search results
    • Improved vessel name parsing from complex HTML structures
  • Search Command Enhancements:

    • Now uses general search endpoint for better results
    • Whitespace normalization for clean output
    • Automatic deduplication of responsive design duplicates
    • Position-based text extraction for accurate vessel names

Loading & Status

  • Animated Loading Indicators: Real-time progress with spinner and shine effects
  • Progressive Detail Display: Shows what's happening during long operations
  • Status Bar: Connection state, output format, and last operation result
  • Batch Progress: Real-time updates for multi-vessel operations

User Experience

  • Custom Syntax Highlighting: OutputLexer for beautiful output styling
  • Auto-Completion: SlashCommandCompleter for parameter suggestions
  • Command History: Up/Down arrows to recall previous commands
  • Color System: Enhanced with dim variants for UI chrome vs content
  • Improved Error Messages: Clear, actionable error information

🔧 Technical Improvements

  • Custom lexer for gradient ASCII art and syntax highlighting
  • Buffer-based layout with proper scroll management
  • Async-safe status updates and menu rendering
  • Robust HTML parsing with error recovery
  • Position-based text extraction algorithms
  • Window-based layout with proper buffer management

🐛 Bug Fixes

  • Fixed vessel name extraction with parentheses in fleet results
  • Fixed company search result parsing for P_COMP ID extraction
  • Fixed whitespace normalization in table cells
  • Fixed responsive design duplicate handling in search results
  • Improved error handling for malformed HTML responses

📦 Dependencies

Updated to require prompt_toolkit>=3.0.0 for modern TUI capabilities.


💡 Usage

Simply run equasis with no arguments to enter the new interactive mode:

```bash
equasis
```

Interactive Commands:

  • vessel /imo 9074729 - Get vessel information
  • search /name "MAERSK" - Search vessels by name
  • fleet /company "MSC" - Get fleet information with interactive selection
  • batch /imos "9074729,9632179" - Process multiple vessels
  • format json - Set default output format
  • ? - Show context-aware help menu
  • Tab - Show slash parameter menu
  • status - Show connection and configuration status

Scroll Mode (when output exceeds screen):

  • j / ↓ - Scroll down
  • k / ↑ - Scroll up
  • d - Page down
  • u - Page up
  • q - Exit scroll mode

🚀 Upgrade Notes

This is a major version release with breaking changes to the interactive mode implementation:

  • New dependency: prompt_toolkit>=3.0.0
  • Interactive mode completely redesigned (cmd.Cmd → Application)
  • Enhanced visual styling requires terminal color support
  • Improved but different command output formatting

To upgrade:
```bash
pip install --upgrade equasis-cli

or

pipx upgrade equasis-cli
```


📝 Full Changelog

See commit history for complete technical details of all changes.

Files Modified:

  • equasis_cli/interactive.py - Complete TUI rewrite
  • equasis_cli/banner.py - Added gradient banner and StatusBar
  • equasis_cli/client.py - Enhanced company/fleet search
  • equasis_cli/main.py - TUI integration
  • setup.py, equasis_cli/__init__.py, README.md - Version 2.0.0
  • requirements.txt - Updated dependencies

Full Commit: Implement modern TUI with context-aware ephemeral menus and bump version to 2.0.0

v1.0.0 - First Stable Release

Choose a tag to compare

@rhinonix rhinonix released this 27 Sep 10:10

Equasis CLI v1.0.0 - First Stable Release

Major update from beta: Now provides comprehensive vessel intelligence with 50+ data points including management companies, PSC inspections, historical names/flags, and classification details - all collected automatically from multiple Equasis tabs.

What's New in v1.0.0

Interactive Mode

  • REPL Interface: Type equasis to enter interactive mode
  • Slash Command Syntax: Modern /imo, /name, /company parameters
  • Persistent Sessions: Authenticate once, run multiple queries
  • Built-in Help: Comprehensive help system with examples

Comprehensive Data Collection

  • 3-Tab Strategy: Ship Info, Inspections, and Ship History
  • 50+ Data Points: Management companies, PSC inspections, historical data
  • Rich Parsing: Detailed vessel profiles vs basic lookups

Professional Experience

  • Modern Banner: Stylized startup interface
  • Multiple Formats: Table, JSON, CSV output
  • File Export: Save results with /output filename.ext
  • Dual-Mode: Interactive REPL or traditional CLI

Technical Features

  • Professional package structure
  • Comprehensive documentation
  • Color-coded interface with fallbacks
  • Session management and error handling

Installation

pipx install git+https://github.com/rhinonix/equasis-cli.git

Roadmap

See our GitHub Projects roadmap for planned features including batch processing, data caching, and maritime analytics.

License

Licensed under CC BY-NC-SA 4.0 - free for non-commercial use.