Skip to main content

pyaftership

codecov python version PyPI Actions

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!

  1. Fork the repository
  2. Clone the repository locally and open the devcontainer or use GitHub codespaces
  3. Do your changes
  4. Lint the files with scripts/lint
  5. Ensure all tests passes with scripts/test
  6. Ensure 100% coverage with scripts/coverage
  7. Commit your work, and push it to GitHub
  8. Create a PR against the main branch

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)

Source distribution for pyaftership 23.1.0
File Size Uploaded
pyaftership-23.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyaftership 23.1.0
File Interpreter ABI Platform
pyaftership-23.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

23.1.0 This release

2 release files

21.1.0

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

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