geocodio-library-python 0.7.0__tar.gz → 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/CHANGELOG.md +13 -2
  2. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/PKG-INFO +1 -1
  3. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/pyproject.toml +4 -1
  4. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/smoke_lists.py +2 -2
  5. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/src/geocodio/_version.py +1 -1
  6. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/src/geocodio/client.py +267 -139
  7. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/src/geocodio/distance.py +5 -5
  8. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/src/geocodio/exceptions.py +4 -2
  9. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/src/geocodio/models.py +21 -15
  10. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/__init__.py +1 -1
  11. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/conftest.py +5 -3
  12. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/e2e/test_api.py +29 -69
  13. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/e2e/test_batch_reverse.py +31 -21
  14. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/e2e/test_distance.py +25 -31
  15. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/e2e/test_lists_api.py +12 -10
  16. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/test_workflows.py +34 -19
  17. geocodio_library_python-1.0.0/tests/unit/test_client.py +363 -0
  18. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/unit/test_distance.py +124 -103
  19. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/unit/test_errors.py +15 -10
  20. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/unit/test_exceptions.py +7 -10
  21. geocodio_library_python-1.0.0/tests/unit/test_geocode.py +750 -0
  22. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/unit/test_geocoding.py +12 -9
  23. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/unit/test_models.py +53 -39
  24. geocodio_library_python-1.0.0/tests/unit/test_reverse.py +283 -0
  25. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/uv.lock +1 -1
  26. geocodio_library_python-0.7.0/tests/unit/test_client.py +0 -332
  27. geocodio_library_python-0.7.0/tests/unit/test_geocode.py +0 -710
  28. geocodio_library_python-0.7.0/tests/unit/test_reverse.py +0 -257
  29. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/.github/workflows/ci.yml +0 -0
  30. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/.github/workflows/publish.yml +0 -0
  31. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/.github/workflows/test-act-event-ci.json +0 -0
  32. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/.github/workflows/test-act-event-publish.json +0 -0
  33. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/.gitignore +0 -0
  34. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/LICENSE +0 -0
  35. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/README.md +0 -0
  36. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/requirements-dev.txt +0 -0
  37. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/setup.cfg +0 -0
  38. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/smoke.py +0 -0
  39. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/src/geocodio/__init__.py +7 -7
  40. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/test_pypi_release.py +0 -0
  41. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/e2e/__init__.py +0 -0
  42. {geocodio_library_python-0.7.0 → geocodio_library_python-1.0.0}/tests/unit/__init__.py +0 -0
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.0] - 2026-06-05
11
+
12
+ ### Changed
13
+ - **BREAKING**: Migrated to Geocodio API **v2**. The base URL version prefix changed from `v1.x` to `v2` (`https://api.geocod.io/v2/...`).
14
+ - **BREAKING**: Removed the top-level `input` object from `/geocode` and `/reverse` responses. `GeocodingResponse.input` has been removed; parsed address information now lives in `results[].address_components`.
15
+ - **BREAKING**: Renamed `AddressComponents` fields to match API v2:
16
+ - `zip` → `postal_code`
17
+ - `state` → `state_province`
18
+ - Added `unit_type` (was `secondaryunit`) and `unit_number` (was `secondarynumber`)
19
+ - Structured address input now accepts `state_province` (the legacy `state` field is still accepted for compatibility).
20
+
10
21
  ## [0.7.0] - 2026-03-12
11
22
 
12
23
  ### Changed
@@ -16,7 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
27
 
17
28
  ### Changed
18
29
  - Updated default API version from v1.9 to v1.10
19
-
20
30
  ## [0.5.1] - 2026-02-18
21
31
 
22
32
  ### Fixed
@@ -69,7 +79,8 @@ When ready to release:
69
79
  5. Push tags: `git push --tags`
70
80
  6. GitHub Actions will automatically publish to PyPI
71
81
 
72
- [Unreleased]: https://github.com/Geocodio/geocodio-library-python/compare/v0.7.0...HEAD
82
+ [Unreleased]: https://github.com/Geocodio/geocodio-library-python/compare/v1.0.0...HEAD
83
+ [1.0.0]: https://github.com/Geocodio/geocodio-library-python/compare/v0.7.0...v1.0.0
73
84
  [0.7.0]: https://github.com/Geocodio/geocodio-library-python/compare/v0.6.0...v0.7.0
74
85
  [0.6.0]: https://github.com/Geocodio/geocodio-library-python/compare/v0.5.1...v0.6.0
75
86
  [0.5.1]: https://github.com/Geocodio/geocodio-library-python/compare/v0.5.0...v0.5.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geocodio-library-python
3
- Version: 0.7.0
3
+ Version: 1.0.0
4
4
  Summary: A Python client for the Geocodio API
5
5
  Project-URL: Homepage, https://www.geocod.io
6
6
  Project-URL: Documentation, https://www.geocod.io/docs/?python
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "geocodio-library-python"
7
- version = "0.7.0"
7
+ version = "1.0.0"
8
8
  description = "A Python client for the Geocodio API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -48,6 +48,9 @@ Issues = "https://github.com/geocodio/geocodio-library-python/issues"
48
48
  [tool.hatch.build.targets.wheel]
49
49
  packages = ["src/geocodio"]
50
50
 
51
+ [tool.isort]
52
+ profile = "black"
53
+
51
54
  [tool.pytest.ini_options]
52
55
  testpaths = ["tests"]
53
56
  python_files = "test_*.py"
@@ -57,7 +57,7 @@ def main():
57
57
  logger.info("Creating a new list...")
58
58
  file_content = "Zip\n20003\n20001"
59
59
  # --- Capture request details ---
60
- logger.info("REQUEST: POST /v1.11/lists")
60
+ logger.info("REQUEST: POST /v2/lists")
61
61
  logger.info(f"Request params: {{'api_key': '***', 'direction': 'forward', 'format': '{{A}}'}}")
62
62
  logger.info(f"Request files: {{'file': ('smoke_test_list.csv', {repr(file_content)})}}")
63
63
  new_list_response = client.create_list(
@@ -66,7 +66,7 @@ def main():
66
66
  format_="{{A}}"
67
67
  )
68
68
  # --- Capture response details ---
69
- logger.info("RESPONSE: POST /v1.11/lists")
69
+ logger.info("RESPONSE: POST /v2/lists")
70
70
  print_headers_and_body("Response", {
71
71
  "id": new_list_response.id,
72
72
  "file": new_list_response.file,
@@ -1,3 +1,3 @@
1
1
  """Version information for geocodio package."""
2
2
 
3
- __version__ = "0.7.0"
3
+ __version__ = "1.0.0"