Sheepped
🚚 A Python wrapper for tracking delivery (e.g. USPS).
Getting Started
First, install the package from PyPI using pip.
$ pip install sheepeed
Now, register at USPS to get your USPS_USER_ID.
Usage
Suppose you have set an environment variable USPS_USER_ID with your USPS ID and your tracking number is 42:
from sheepped import USPS
usps = USPS()
usps.track("42")
If you have a bucnh of tracking numbers, you might want to use the async API:
import asyncio
from sheepped import USPS
usps = USPS()
async def main():
tracking_numbers = ("1", "2", "3", "5", "8", "13", "21")
tasks = tuple(usps.aiotrack(n) for n in tracking_numbers)
return await asyncio.gather(*tasks)
asyncio.run(main())
Tests
$ python setup.py test
Metadata
Release files for sheepped 0.1.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 | |
|---|---|---|---|
| sheepped-0.1.3.tar.gz | 2.3 kB | Details |
Release files / sheepped-0.1.3.tar.gz
| Download URL | sheepped-0.1.3.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a4ded4a40306b8efd31eebadadd5d1e70066d7735ac8748fbab4724579cc39c
|
|
BLAKE2b-256 checksum How to use checksums |
7c6cc8610026da4ec42ca86df3c4965688f66f7dd7705455198c10928c089678
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|