Skip to main content

Actions Status

快递鸟 Python SDK

requirements

python >= 3.6

基于快递鸟v5.41开发

已实现接口列表

下单类(Order)

  • 上门取件 order
  • 预约取件 preorder
  • 电子面单 eorder

查询类(Query)

  • 获取即时物流轨迹 get_express_routes
  • 接口订阅轨迹 subscribe_express_routes

增值接口类 (Service)

  • 单号识别 recognize_logistic_code
  • 智能地址解析 parse_address

安装

pip install kdn

使用

from kdn.api.kdn import KDN

kdn = KDN(client_id, api_key)
kdn.query.get_express_routes("SF", "1234561", "111")

智能地址解析

from kdn.api.kdn import KDN

kdn = KDN(client_id, api_key, timeout=15)
result = kdn.service.parse_address(
    "深圳市龙岗区坂田街道长坑路西2巷2号202 黄大大 18273778575"
)

parse_address 固定使用快递鸟 HTTPS 正式接口。SDK 默认请求超时为 15 秒, 也可通过 KDN(..., timeout=30)parse_address(content, timeout=30) 覆盖。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kdn_sdk-0.2.9.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kdn_sdk-0.2.9-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file kdn_sdk-0.2.9.tar.gz.

File metadata

  • Download URL: kdn_sdk-0.2.9.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.4

File hashes

Hashes for kdn_sdk-0.2.9.tar.gz
Algorithm Hash digest
SHA256 41aab5084b315319ce48b90e4752d5281c4c0795cedcba0673ba0f5e14034f7a
MD5 ec47bc9969ee5246525a13fe3dbb7bff
BLAKE2b-256 6a4c5c11476973be17735c8a354a345764c043a702b0fd5a814e98aa21ee75f5

See more details on using hashes here.

File details

Details for the file kdn_sdk-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: kdn_sdk-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.4

File hashes

Hashes for kdn_sdk-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9cb977513e6573411491b848a7d382481fdaf1df6614b0906b9d7ca9d775c3b4
MD5 ad908eacfba97ba37f1aaa732d7ec188
BLAKE2b-256 f7e873b7ce727b5fdc07a69a9a05e35121d00b4b4ad024476a142326198534f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.9 This release

2 files

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page