Metadata-Version: 2.4
Name: open-logistics-sdk
Version: 0.2.2
Summary: Open Logistics — Shiprocket and Delhivery
Author: Open Logistics
License: MIT
Project-URL: Repository, https://github.com/kush34/open-logistics
Keywords: logistics,shiprocket,delhivery,shipping,api-client
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: urllib3<3.0.0,>=2.7.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2.11
Requires-Dist: typing-extensions>=4.7.1

# open-logistics

Python client for the Shiprocket and Delhivery APIs.

## Install

```bash
pip install open-logistics-sdk
```

The distribution is `open-logistics-sdk` because `open-logistics` is taken on
PyPI; the import package is `open_logistics`.

## Modules

- `open_logistics.shiprocket` — Shiprocket APIs and models (docs in `docs/shiprocket/`)
- `open_logistics.delhivery` — Delhivery APIs and models (docs in `docs/delhivery/`)

```python
from open_logistics.shiprocket import ApiClient, AuthApi, AuthCredentials, Configuration, OrdersApi

configuration = Configuration(host="https://apiv2.shiprocket.in/v1/external")
with ApiClient(configuration) as api_client:
    auth = AuthApi(api_client).auth_login(AuthCredentials(email=..., password=...))
    configuration.access_token = auth.token
    order = OrdersApi(api_client).orders_create(payload)
```
