geocodio-library-python 0.6.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.
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/CHANGELOG.md +19 -2
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/PKG-INFO +1 -1
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/pyproject.toml +4 -1
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/smoke_lists.py +2 -2
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/src/geocodio/_version.py +1 -1
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/src/geocodio/client.py +267 -139
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/src/geocodio/distance.py +5 -5
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/src/geocodio/exceptions.py +4 -2
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/src/geocodio/models.py +25 -19
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/__init__.py +1 -1
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/conftest.py +5 -3
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/e2e/test_api.py +36 -76
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/e2e/test_batch_reverse.py +31 -21
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/e2e/test_distance.py +25 -31
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/e2e/test_lists_api.py +12 -10
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/test_workflows.py +34 -19
- geocodio_library_python-1.0.0/tests/unit/test_client.py +363 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/unit/test_distance.py +124 -103
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/unit/test_errors.py +15 -10
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/unit/test_exceptions.py +7 -10
- geocodio_library_python-1.0.0/tests/unit/test_geocode.py +750 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/unit/test_geocoding.py +12 -9
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/unit/test_models.py +53 -39
- geocodio_library_python-1.0.0/tests/unit/test_reverse.py +283 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/uv.lock +1 -1
- geocodio_library_python-0.6.0/tests/unit/test_client.py +0 -332
- geocodio_library_python-0.6.0/tests/unit/test_geocode.py +0 -710
- geocodio_library_python-0.6.0/tests/unit/test_reverse.py +0 -257
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/.github/workflows/ci.yml +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/.github/workflows/publish.yml +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/.github/workflows/test-act-event-ci.json +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/.github/workflows/test-act-event-publish.json +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/.gitignore +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/LICENSE +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/README.md +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/requirements-dev.txt +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/setup.cfg +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/smoke.py +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/src/geocodio/__init__.py +7 -7
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/test_pypi_release.py +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/e2e/__init__.py +0 -0
- {geocodio_library_python-0.6.0 → geocodio_library_python-1.0.0}/tests/unit/__init__.py +0 -0
|
@@ -7,11 +7,26 @@ 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
|
+
|
|
21
|
+
## [0.7.0] - 2026-03-12
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Updated default API version to v1.11
|
|
25
|
+
|
|
10
26
|
## [0.6.0] - 2026-02-24
|
|
11
27
|
|
|
12
28
|
### Changed
|
|
13
29
|
- Updated default API version from v1.9 to v1.10
|
|
14
|
-
|
|
15
30
|
## [0.5.1] - 2026-02-18
|
|
16
31
|
|
|
17
32
|
### Fixed
|
|
@@ -64,7 +79,9 @@ When ready to release:
|
|
|
64
79
|
5. Push tags: `git push --tags`
|
|
65
80
|
6. GitHub Actions will automatically publish to PyPI
|
|
66
81
|
|
|
67
|
-
[Unreleased]: https://github.com/Geocodio/geocodio-library-python/compare/
|
|
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
|
|
84
|
+
[0.7.0]: https://github.com/Geocodio/geocodio-library-python/compare/v0.6.0...v0.7.0
|
|
68
85
|
[0.6.0]: https://github.com/Geocodio/geocodio-library-python/compare/v0.5.1...v0.6.0
|
|
69
86
|
[0.5.1]: https://github.com/Geocodio/geocodio-library-python/compare/v0.5.0...v0.5.1
|
|
70
87
|
[0.5.0]: https://github.com/Geocodio/geocodio-library-python/compare/v0.4.0...v0.5.0
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "geocodio-library-python"
|
|
7
|
-
version = "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 /
|
|
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 /
|
|
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,
|