Repository navigation
Releases
v3.0.1
Install or upgrade with:
pipx install --force equasis-cliFixed
- After
clearin 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
Install or upgrade with:
pipx install equasis-cliA rebuild focused on reliability, correct data, and scripting. Existing users should read
Upgrading from 2.x below.
Fixed
- Interactive
batchdid nothing (#16). - Interactive
/output file.jsonand/output file.csvwrote table text instead of JSON
or CSV (#17). - Interactive
fleetdid 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-Afterwas 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.
--outputand--output-fileonly worked before the command name.--debughad no effect, and--continue-on-errordid 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-filewere not recognized. - Search and fleet results beyond the first page were missing.
- The Comoros flag was reported with the code
XCMinstead ofCOM.
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-signfor exact lookups, plus--type,
--max-pages, and--all-pages.fleetaccepts 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, andequasis 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, andcompute_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 alookup_statuscolumn. - Batches continue after failures by default; use
--fail-fastto stop. - Credentials are written atomically with owner-only permissions. A warning is shown if
the credentials file is readable by others. -f/--formatis the name of the format option (--outputstill works) and
-o/--output-filesets the output file.- Progress messages, warnings, and errors are written to stderr.
Removed
- The
.envfile references (credentials come fromconfigure --setupor environment
variables) and the unusedpython-dotenvandlxmldependencies. - The unused
--batchoption. - The startup banner before command output.
--no-banneris still accepted and has no
effect.
Upgrading from 2.x
- Update scripts that read JSON: vessel fields are under
.vessel(for example
.vessel.nameinstead 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
🎉 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.Cmdto 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/kkeys 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 informationsearch /name "MAERSK"- Search vessels by namefleet /company "MSC"- Get fleet information with interactive selectionbatch /imos "9074729,9632179"- Process multiple vesselsformat json- Set default output format?- Show context-aware help menuTab- Show slash parameter menustatus- Show connection and configuration status
Scroll Mode (when output exceeds screen):
j/↓- Scroll downk/↑- Scroll upd- Page downu- Page upq- 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 rewriteequasis_cli/banner.py- Added gradient banner and StatusBarequasis_cli/client.py- Enhanced company/fleet searchequasis_cli/main.py- TUI integrationsetup.py,equasis_cli/__init__.py,README.md- Version 2.0.0requirements.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
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
equasisto enter interactive mode - Slash Command Syntax: Modern
/imo,/name,/companyparameters - 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.gitRoadmap
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.