Skip to content

Commit cb911de

Browse files
committed
fix: increment version to 5.0.1
1 parent 4f4510c commit cb911de

File tree

135 files changed

+329
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+329
-258
lines changed

.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints
67+
68+
tests/

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Each SDK version is designed to work with a specific API version. Please refer t
4141

4242
| SDK Version | Supported API Version | Branch |
4343
| ----------- | --------------------- | ------------------------------------------------------------- |
44-
| 5.x.x | 2025-01 | https://github.com/AfterShip/tracking-sdk-python/tree/2025-01 |
45-
| 4.x.x | 2024-10 | https://github.com/AfterShip/tracking-sdk-python/tree/2024-10 |
46-
| 3.x.x | 2024-07 | https://github.com/AfterShip/tracking-sdk-python/tree/2024-07 |
44+
| 5.x.x | 2025-01 | https://github.com/AfterShip/tracking-sdk-python/tree/2025-01 |
45+
| 4.x.x | 2024-10 | https://github.com/AfterShip/tracking-sdk-python/tree/2024-10 |
46+
| 3.x.x | 2024-07 | https://github.com/AfterShip/tracking-sdk-python/tree/2024-07 |
4747
| 2.x.x | 2024-04 | https://github.com/AfterShip/tracking-sdk-python/tree/2024-04 |
4848
| <=1.x.x | Legacy API | https://github.com/AfterShip/aftership-sdk-python |
4949

@@ -62,8 +62,8 @@ Create AfterShip instance with options
6262
| Name | Type | Required | Description |
6363
| ---------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
6464
| api_key | string || Your AfterShip API key |
65-
| auth_type | enum | | Default value: `auth.ApiKey` <br > AES authentication: `auth.Aes` <br > RSA authentication: `auth.Rsa` |
66-
| api_secret | string | | Required if the authentication type is `auth.Aes` or `auth.Rsa` |
65+
| auth_type | enum | | Default value: `auth.ApiKey` <br > AES authentication: `auth.Aes` <br > RSA authentication: `auth.Rsa` |
66+
| api_secret | string | | Required if the authentication type is `auth.Aes` or `auth.Rsa` |
6767
| domain | string | | AfterShip API domain. Default value: https://api.aftership.com |
6868
| user_agent | string | | User-defined user-agent string, please follow [RFC9110](https://www.rfc-editor.org/rfc/rfc9110#field.user-agent) format standard. |
6969
| proxy | string | | HTTP proxy URL to use for requests. <br > Default value: `null` <br > Example: `http://192.168.0.100:8888` |
@@ -96,7 +96,7 @@ except exceptions.RateLimitExceedError:
9696

9797
## Rate Limiter
9898

99-
See the [Rate Limit](https://www.aftership.com/docs/tracking/2024-10/quickstart/api-quick-start) to understand the AfterShip rate limit policy.
99+
See the [Rate Limit](https://www.aftership.com/docs/tracking/2025-01/quickstart/api-quick-start) to understand the AfterShip rate limit policy.
100100

101101
## Error Handling
102102

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aftership-tracking-sdk"
3-
version = "5.0.0"
3+
version = "5.0.1"
44
description = "The official AfterShip Tracking Python API library"
55
authors = ["AfterShip <[email protected]>"]
66
license = "MIT"
@@ -51,4 +51,4 @@ line-length = 100
5151
quote-style = "double"
5252
indent-style = "space"
5353
docstring-code-format = true
54-
docstring-code-line-length = 60
54+
docstring-code-line-length = 60

tracking/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
from . import exceptions
1212
from .models import *
1313

14-
__version__ = "5.0.0"
14+
__version__ = "5.0.1"

tracking/api/courier.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# Do not edit the class manually.
55

66
import json
7-
from typing import Union
7+
from typing import Union, Annotated
88

9+
from pydantic import Field
910

1011
from tracking.models import (
1112
DetectCourierRequest,

tracking/api/estimated_delivery_date.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# Do not edit the class manually.
55

66
import json
7-
from typing import Union
7+
from typing import Union, Annotated
88

9+
from pydantic import Field
910

1011
from tracking.models import (
1112
PredictRequest,

tracking/models/aftership_estimated_delivery_date_create_tracking_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_delete_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_get_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_mark_tracking_completed_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_retrack_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_update_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_create_tracking_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_delete_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_get_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_mark_tracking_completed_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_retrack_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_update_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
9+
from pydantic import BaseModel, Field
1010
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

tracking/models/coordinate_checkpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/courier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
9+
from pydantic import BaseModel, Field
1010
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

tracking/models/courier_estimated_delivery_date_create_tracking_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/courier_estimated_delivery_date_delete_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/courier_estimated_delivery_date_get_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/courier_estimated_delivery_date_mark_tracking_completed_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/courier_estimated_delivery_date_retrack_tracking_by_id_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/courier_estimated_delivery_date_tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

0 commit comments

Comments
 (0)