Yalidine
Yalidine a Python library that implement Yalidine REST API.
Instaltion
pip install yalidine
Usage
Initialize client
from yalidine import YalidineClient
app_id = "APP-ID"
app_token = "APP-TOKEN"
client = YalidineClient(app_id, app_token)
print(client.get_parcels())
Check api limit
response = client.get_parcels()
limit = client.last_response_headers
# last_response_headers include api limit status from last request
print(limit)
Parcel
parcel = Parcel(
order_id="test_parcel",
firstname="firstname",
... # Fill Fields
)
# create parcel
response = client.create_parcel([parcel])
# update parcel
response = client.update_parcel(parcel_id=parcel_id, data=parcel)
# delete parcel
response = client.delete_parcel(parcel_id="parcel_id")
# Get parcel
response = client.get_parcel(parcel_id="parcel_id")
# Get parcel list
response = client.get_parcels()
# Get parcel list using filter
from yalidine.entity import ParcelFilter
response = client.get_parcels(filter=ParcelFilter(page=1))
History
from yalidine.entity import HistoryFilter
responce = client.get_histories(filter=HistoryFilter(page_size=2))
Centers
from yalidine.entity import CenterFilter
responce = client.get_centers(filter=CenterFilter(page_size=2))
Wilayas
from yalidine.entity import WilayasFilter
responce = client.get_wilayas(filter=WilayasFilter(page_size=2))
Communes
from yalidine.entity import CommunesFilter
responce = client.get_communes(filter=CommunesFilter(page_size=2))
Delivery Fees
from yalidine.entity import DeliveryFeesFilter
responce = client.get_delivery_fees(filter=DeliveryFeesFilter(page_size=2))
Metadata
Release files for yalidine 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yalidine-0.0.3.tar.gz | 18.3 kB | Without provenance | Details for yalidine-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yalidine-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for yalidine-0.0.3-py3-none-any.whl |
Total release size: 25.2 kB
Release files / yalidine-0.0.3.tar.gz
| Download URL | yalidine-0.0.3.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c59bbcdcdb35116e509524dab0ef26dfc2a4f1df43c931cf024e0379c8f2708
|
|
BLAKE2b-256 checksum How to use checksums |
2fccc79d204bd1b2182b5afd7c30219a8ac978e9ed9fe0fa4c688384e94d306e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / yalidine-0.0.3-py3-none-any.whl
| Download URL | yalidine-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95b2c9fb32dea44e12ffde2fb6e1ee0986dc54148ac1f7613b3018ad6e113dd6
|
|
BLAKE2b-256 checksum How to use checksums |
010c14e060dd23201db1b19c8287a501600a7f1f31b420eeae147e324d746f47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for yalidine 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.