Repository navigation
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.