Skip to content

Releases: PADAS/earthranger-cli

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 21:00
d08063c

Highlights

Importing and previewing events (requests from @arky in #20, #21, #19)

  • events post --dry-run. Validates every event against its type's schema exactly as a real post does, prints one would post line per event, and sends nothing. With --no-validate it never connects, so a file can be previewed offline. (#42)
  • events post --file history.csv. A CSV is read directly, one event per row, with no YAML conversion step. event_type, time, title and lat/lon (or a location column holding lat,lon) are recognised case-insensitively; every other column is a detail field. Cell values are coerced conservatively: integers, decimals and true/false become numbers and booleans, everything else stays text, so dates, times, ids with leading zeros and codes like NO survive. --event-type is the default for rows without one; --map KEY=COLUMN points a field (or a reserved slot) at a differently named column. The delimiter is detected from the header (comma, semicolon, tab, pipe); errors name the file's line number; a row with surplus cells, a duplicate header, a column mapped twice, or both a location and lat/lon is refused before anything is sent. Rows get the same validation and --dry-run as a YAML batch. (#46)
  • events pull CATEGORY --event-type VALUE. A spec for just the requested types (repeatable) that keeps the category block and only the choice sets those types reference, so it applies directly; an unknown value lists the category's types. (#43)

Project

  • Every pull request and push to main now runs the suite and the linters on Python 3.11, 3.12 and 3.13; the release workflow builds on the 3.11 floor instead of whatever Python the runner had. (#45)
  • CONTRIBUTING.md records the process adopted after the 0.5.0 review rounds and what CI runs. (#37, #45)
  • The PyPI summary, keywords and links describe the whole tool. (#41, shipped in 0.5.1)

What's Changed

  • events post --dry-run: validate and list what would be posted (#42)
  • events post --file history.csv: import events from CSV rows (#46, replaces #44)
  • events pull --event-type: a spec for one type that still applies (#43)
  • CI: test on every supported Python; release builds on the 3.11 floor (#45)
  • Bump version to 0.6.0

Full Changelog: v0.5.1...v0.6.0

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 10 Oct 17:46
c436867

Metadata-only release: no code or behaviour changes since 0.5.0.

  • PyPI summary now describes the whole tool: authoring event categories, choices and event types from a YAML spec, posting events, and reading subjects, tracks, events, patrols and more as agent-friendly JSON, CSV or TSV, with site-time windows, counts and exports. The 0.5.0 summary still described the authoring half only.
  • Keywords gain wildlife, agents, json.
  • Project links gain a Changelog entry pointing at these releases.

For what 0.5.0 added to the CLI, see the v0.5.0 release notes.

What's Changed

  • Package metadata: summary covers the read surface; bump version to 0.5.1 (#41)

Full Changelog: v0.5.0...v0.5.1

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 17:26
9413480

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 15:43

What's Changed

  • README: how agent skills use the CLI; spec: close out P2 by @chrisdoehring in #32
  • profile use persists a default profile; retire the zsh wrapper by @chrisdoehring in #33

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@chrisdoehring chrisdoehring released this 08 Oct 16:46
2f07702

Highlights

Two behaviour changes agents and scripts should know about

  • observations search now requires exactly one of --subject-id, --source-id, --subjectsource-id, --sourceprovider-id, and defaults --since to 24 hours before --until (or before now). Without a selector, ER returned every observation on the site and the CLI paged through all of it. (#23)
  • events post validates each event's details against the type's schema as ER renders it before anything is sent: unknown fields, values outside a select's choices, wrong types, out-of-range numbers and missing required fields are reported one line each and nothing is posted. ER's API does not make these checks itself. --no-validate skips it. (#26, #27, #28)

New

  • events search --event-type takes event-type values and display names as well as ids, comma-mixed; names are resolved for you and an unknown name lists the server's values. (#29)
  • Every paginated read command answers to both list and search. featuresets list, spatial-features list|get and spatial-feature-groups get are new. (#23)
  • Reads retry transient failures (429, 5xx, connection and body-read errors) with 0/2/4 s backoff, announced on stderr; Retry-After is honoured up to 30 s. Writes are never replayed. (#30)
  • er --version. (#30)

Renamed

  • fences is now spatial-feature-groups. A spatial feature group holds roads, water points and boundaries as well as geofences, and nothing in ER is called a fence. No alias is kept. (#23)

What's Changed

  • Read surface: list/search aliases, featuresets list, fences -> spatial-feature-groups + spatial-features (#23)
  • Spec: record PR 23 decisions, close spec-derived flags as no, add Hardening section (#25)
  • events post: validate event details against the type's schema before sending (#26)
  • events post: reject explicit null event_details before posting (#27)
  • events post: refuse non-object event_details at load, independent of --no-validate (#28)
  • events search: --event-type accepts values and display names, resolved to ids (#29)
  • Reads retry transient failures with backoff; add --version (#30)
  • Bump version to 0.3.0 (#31)

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 06 Oct 15:57
3d73342

What's Changed

Full Changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Sep 21:22
3cced47

What's Changed

New Contributors

Full Changelog: https://github.com/PADAS/earthranger-cli/commits/v0.1.0