Skip to content

g4brielvs/sheepped

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Build Status PyPI Versions

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

Versioning

Always suggest a version bump. We use Semantic Versioning.

MICRO: the API is the same, no risk of breaking code
MINOR: values have been added, existing values are unchanged
MAJOR: existing values have been changed or removed

About

๐Ÿšš A Python wrapper for tracking delivery (e.g. USPS)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages