python-sendparcel-inpost 0.1.2__tar.gz → 0.2.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 (39) hide show
  1. python_sendparcel_inpost-0.2.0/.github/workflows/ci.yml +28 -0
  2. python_sendparcel_inpost-0.2.0/.github/workflows/release.yml +23 -0
  3. python_sendparcel_inpost-0.2.0/LICENSE +10 -0
  4. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/PKG-INFO +7 -1
  5. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/pyproject.toml +9 -1
  6. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/src/sendparcel_inpost/__init__.py +3 -1
  7. python_sendparcel_inpost-0.2.0/src/sendparcel_inpost/client.py +751 -0
  8. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/src/sendparcel_inpost/exceptions.py +27 -0
  9. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/src/sendparcel_inpost/providers/__init__.py +6 -1
  10. python_sendparcel_inpost-0.2.0/src/sendparcel_inpost/providers/base.py +368 -0
  11. python_sendparcel_inpost-0.2.0/src/sendparcel_inpost/providers/courier.py +93 -0
  12. python_sendparcel_inpost-0.2.0/src/sendparcel_inpost/providers/locker.py +103 -0
  13. python_sendparcel_inpost-0.2.0/tests/__init__.py +0 -0
  14. python_sendparcel_inpost-0.2.0/tests/test_client.py +506 -0
  15. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_courier_provider.py +41 -60
  16. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_locker_provider.py +144 -76
  17. python_sendparcel_inpost-0.1.2/src/sendparcel_inpost/client.py +0 -177
  18. python_sendparcel_inpost-0.1.2/src/sendparcel_inpost/providers/courier.py +0 -308
  19. python_sendparcel_inpost-0.1.2/src/sendparcel_inpost/providers/locker.py +0 -322
  20. python_sendparcel_inpost-0.1.2/tests/test_client.py +0 -233
  21. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/.gitignore +0 -0
  22. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/CHANGELOG.md +0 -0
  23. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/CONTRIBUTING.md +0 -0
  24. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/README.md +0 -0
  25. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/docs/api.md +0 -0
  26. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/docs/configuration.md +0 -0
  27. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/docs/index.md +0 -0
  28. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/docs/quickstart.md +0 -0
  29. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/src/sendparcel_inpost/enums.py +0 -0
  30. /python_sendparcel_inpost-0.1.2/tests/__init__.py → /python_sendparcel_inpost-0.2.0/src/sendparcel_inpost/py.typed +0 -0
  31. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/src/sendparcel_inpost/status_mapping.py +0 -0
  32. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/src/sendparcel_inpost/types.py +0 -0
  33. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/conftest.py +0 -0
  34. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_config_schema.py +0 -0
  35. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_entry_points.py +0 -0
  36. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_enums.py +0 -0
  37. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_exceptions.py +0 -0
  38. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_status_mapping.py +0 -0
  39. {python_sendparcel_inpost-0.1.2 → python_sendparcel_inpost-0.2.0}/tests/test_types.py +0 -0
@@ -0,0 +1,28 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ lint:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: astral-sh/setup-uv@v5
14
+ with:
15
+ enable-cache: true
16
+ - run: uv sync --extra dev
17
+ - run: uv run ruff check .
18
+ - run: uv run ruff format --check .
19
+
20
+ test:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: astral-sh/setup-uv@v5
25
+ with:
26
+ enable-cache: true
27
+ - run: uv sync --extra dev
28
+ - run: uv run pytest tests/ --cov=sendparcel_inpost --cov-report=xml -v
@@ -0,0 +1,23 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ id-token: write
10
+
11
+ jobs:
12
+ release:
13
+ runs-on: ubuntu-latest
14
+ environment: release
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ with:
19
+ enable-cache: true
20
+ - name: Build package
21
+ run: uv build
22
+ - name: Publish to PyPI
23
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,10 @@
1
+
2
+ MIT License
3
+
4
+ Copyright (c) 2025, Dominik Kozaczko
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,9 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sendparcel-inpost
3
- Version: 0.1.2
3
+ Version: 0.2.0
4
4
  Summary: InPost ShipX provider for python-sendparcel.
5
+ Project-URL: Homepage, https://github.com/python-sendparcel/python-sendparcel-inpost
6
+ Project-URL: Repository, https://github.com/python-sendparcel/python-sendparcel-inpost
7
+ Project-URL: Changelog, https://github.com/python-sendparcel/python-sendparcel-inpost/blob/main/CHANGELOG.md
8
+ Project-URL: Issue Tracker, https://github.com/python-sendparcel/python-sendparcel-inpost/issues
5
9
  Author-email: Dominik Kozaczko <dominik@kozaczko.info>
6
10
  License: MIT
11
+ License-File: LICENSE
7
12
  Keywords: inpost,parcel,sendparcel,shipping,shipx
8
13
  Classifier: Development Status :: 3 - Alpha
9
14
  Classifier: Intended Audience :: Developers
@@ -24,6 +29,7 @@ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
24
29
  Requires-Dist: pytest>=8.0; extra == 'dev'
25
30
  Requires-Dist: respx>=0.22.0; extra == 'dev'
26
31
  Requires-Dist: ruff>=0.9.0; extra == 'dev'
32
+ Requires-Dist: ty>=0.0.1a11; extra == 'dev'
27
33
  Description-Content-Type: text/markdown
28
34
 
29
35
  # python-sendparcel-inpost
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-sendparcel-inpost"
3
- version = "0.1.2"
3
+ version = "0.2.0"
4
4
  description = "InPost ShipX provider for python-sendparcel."
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -27,8 +27,16 @@ dev = [
27
27
  "pytest-cov>=5.0",
28
28
  "respx>=0.22.0",
29
29
  "ruff>=0.9.0",
30
+ "ty>=0.0.1a11",
30
31
  ]
31
32
 
33
+ [project.urls]
34
+ Homepage = "https://github.com/python-sendparcel/python-sendparcel-inpost"
35
+ # Documentation = "https://python-sendparcel-inpost.readthedocs.io/"
36
+ Repository = "https://github.com/python-sendparcel/python-sendparcel-inpost"
37
+ Changelog = "https://github.com/python-sendparcel/python-sendparcel-inpost/blob/main/CHANGELOG.md"
38
+ "Issue Tracker" = "https://github.com/python-sendparcel/python-sendparcel-inpost/issues"
39
+
32
40
  [project.entry-points."sendparcel.providers"]
33
41
  inpost_locker = "sendparcel_inpost.providers.locker:InPostLockerProvider"
34
42
  inpost_courier = "sendparcel_inpost.providers.courier:InPostCourierProvider"
@@ -1,12 +1,14 @@
1
1
  """InPost ShipX provider for python-sendparcel."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.2.0"
4
4
 
5
5
  from sendparcel_inpost.client import ShipXClient
6
+ from sendparcel_inpost.exceptions import CircuitBreakerError
6
7
  from sendparcel_inpost.providers.courier import InPostCourierProvider
7
8
  from sendparcel_inpost.providers.locker import InPostLockerProvider
8
9
 
9
10
  __all__ = [
11
+ "CircuitBreakerError",
10
12
  "InPostCourierProvider",
11
13
  "InPostLockerProvider",
12
14
  "ShipXClient",