Skip to content

CLI extraction#71

Closed
mtmail wants to merge 7 commits into
masterfrom
cli-extraction
Closed

CLI extraction#71
mtmail wants to merge 7 commits into
masterfrom
cli-extraction

Conversation

@mtmail

@mtmail mtmail commented Jun 8, 2026

Copy link
Copy Markdown
Member

No description provided.

sbscully and others added 7 commits May 2, 2026 15:44
Strip the geocoding library from this repo (now lives in the upstream
`opencage` package on PyPI) and keep only the CLI. Rename the internal
Python module from `opencage` to `opencage_cli` to avoid colliding with
the library's import name. The `opencage` console script and CLI flags
are unchanged. Reset distribution version to 1.0.0.
Vendor `query_for_reverse_geocoding` and `floatify_latlng` (plus the
`_float_if_float` helper they call) into `opencage_cli/_helpers.py` so
the CLI no longer reaches into `opencage.geocoder`'s private API across
package boundaries.

Also: delete the pre-CLI `examples/batch.py` library demo and its README
reference, fix the `--retries` help text + README to say "default 10"
(matching the actual code default), drop the stray
`test/fixtures/cli/output.csv2` artifact, and update the Vagrantfile
synced folder path from `python-opencage-geocoder` to `opencage-cli`.
Move `query_for_reverse_geocoding`, `floatify_latlng` and the
`_float_if_float` helper from `opencage_cli/_helpers.py` onto
`OpenCageBatchGeocoder` as private methods, and delete the
now-empty helpers module.
Extract CLI into standalone opencage-cli package
@mtmail mtmail closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants