Skip to main content

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)

Source distribution for sheepped 0.1.3
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page