An simple API for to track package info from 17track.com
Project description
py17track: A Simple Python API for 17track.net
py17track is a simple Python library to track pacakges via 17track.net.
Installation
$ pip install py17track
Usage
from py17track import Client
client = Client()
# Track as many packages as you like:
packages = client.track('12345ABCDE', '78901FGHIJ')
# -> {'12345ABCDE': Package(...), '78901FGHIJ', Package(...)}
Each Package object has the following info:
destination_country
: the country the package was shipped toinfo
: a text description of the latest statuslocation
: the current location (if known)origin_country
: the country the package was shipped frompackage_type
: the type of package (if known)status
: the overall package status (“In Transit”, “Delivered”, etc.)tracking_info_language
: the language of the tracking infotracking_number
: the all-important tracking number
Contributing
Check for open features/bugs or initiate a discussion on one.
Install the dev environment:
make init
.Enter the virtual environment:
pipenv shell
Code your new feature or bug fix.
Write a test that covers your new functionality.
Run tests:
make test
Build new docs:
make docs
Add yourself to AUTHORS.rst.
Submit a pull request!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for py17track-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 153ce771c3e692d9c1abb0c523b0650e21555227e80c6e60c2572d67b8134bc3 |
|
MD5 | 6ffa99a7deac137a69d856857d841544 |
|
BLAKE2b-256 | bb3e154f0c95ae3d87217bd817ca810e4862e11fc52c13f80b3c75e75360f0d4 |