pyaftership
Async Python wrapper for the AfterShip API
Installation
python3 -m pip install pyaftership
Example usage
Here is an example of what you can do, more examples can be found in the tests directory.
import asyncio
import aiohttp
from pyaftership import AfterShip
API_KEY = 'XXXXXXXX0000000000XXXXXXXX0000000XXXXX000'
async def example():
"""Get trackings."""
async with aiohttp.ClientSession() as session:
aftership = AfterShip(API_KEY, session)
trackings = await aftership.trackings.list()
print("Pending trackings:", trackings["trackings"])
asyncio.get_event_loop().run_until_complete(example())
Contribute
All contributions are welcome!
- Fork the repository
- Clone the repository locally and open the devcontainer or use GitHub codespaces
- Do your changes
- Lint the files with
scripts/lint - Ensure all tests passes with
scripts/test - Ensure 100% coverage with
scripts/coverage - Commit your work, and push it to GitHub
- Create a PR against the
mainbranch
Metadata
Release files for pyaftership 23.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyaftership-23.1.0.tar.gz | 4.4 kB | Without provenance | Details for pyaftership-23.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyaftership-23.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyaftership-23.1.0-py3-none-any.whl |
Total release size: 10.4 kB
Release files / pyaftership-23.1.0.tar.gz
| Download URL | pyaftership-23.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1438bb40590c6528ef2dfaacf92e491f23efaecf119e3ecae5b0f9b4d863956
|
|
BLAKE2b-256 checksum How to use checksums |
c82767ef631c7fb50934dfe946aedcd75c3f2af60fe58a1e881511440fc3d94a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / pyaftership-23.1.0-py3-none-any.whl
| Download URL | pyaftership-23.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
316e4331f3ac28fd6eb144f72a253352b2092d3aa73ef2179c74511cfef98d96
|
|
BLAKE2b-256 checksum How to use checksums |
395494cb3fabeeccc842d4dd14ccab7731dedc8528c28418eab6ac27c3eba44b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for pyaftership 23.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.