Skip to content

Extract CLI to separate opencage-cli package#70

Open
sbscully wants to merge 1 commit intomasterfrom
remove-cli-code
Open

Extract CLI to separate opencage-cli package#70
sbscully wants to merge 1 commit intomasterfrom
remove-cli-code

Conversation

@sbscully
Copy link
Copy Markdown
Contributor

@sbscully sbscully commented May 2, 2026

Summary

  • The opencage CLI tool has been extracted to its own repository and PyPI package: opencage-cli. This PR removes the duplicated code from this repo.
  • Deletes opencage/command_line.py, opencage/batch.py, their tests/fixtures, and examples/batch.py + examples/addresses.csv + batch-progress.gif.
  • Drops tqdm and certifi from dependencies (only used by the batch CLI) and removes the [project.scripts] entry point.
  • Bumps version to 3.4.0 and adds a Changes.txt entry pointing users to pip install opencage-cli.
  • README's CLI section is replaced with a one-line pointer to the new repo.

The library API is unchanged; opencage-cli already depends on this package and only imports OpenCageGeocode / OpenCageGeocodeError from opencage.geocoder, both of which remain exported.

User-visible breaking change: anyone relying on pip install opencage to provide the opencage CLI command will need to switch to pip install opencage-cli after this release.

Remove command_line.py, batch.py, their tests/fixtures, and the
example batch.py + addresses.csv. The CLI now lives in its own
repository and PyPI package (opencage-cli).

Drop tqdm and certifi (only used by the batch CLI) and the
[project.scripts] entry point. Bump to 3.4.0.
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.

1 participant