Metadata-Version: 2.1
Name: sendcloud-python
Version: 0.1.1
Summary: UNKNOWN
Home-page: https://github.com/stasfilin/sendcloud
Author: Stanislav Filin
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.23.0)
Provides-Extra: develop
Requires-Dist: requests (==2.23.0) ; extra == 'develop'
Requires-Dist: pytest (==5.4.1) ; extra == 'develop'
Requires-Dist: black (==19.10b0) ; extra == 'develop'
Requires-Dist: requests-mock (==1.8.0) ; extra == 'develop'
Requires-Dist: pytest-mock (==3.1.0) ; extra == 'develop'

# SendCloud
![Python package](https://github.com/stasfilin/sendcloud/workflows/Python%20package/badge.svg?branch=master)


Unofficial Python Library

This is a Python library that provides a simple way to communicate with the Sendcloud API. 

## Installation 
```sh
pip install sendcloud-python
```

## Example

```python
import sendcloud
from sendcloud.classes import Parcels

sendcloud.API_KEY = "TEST_KEY"
sendcloud.API_SECRET = "TEST_SECRET"

parcels = Parcels().get_parcels()

new_parcel_data = {
    "parcel": {
        "name": "John Doe",
        "company_name": "Sendcloud",
        "address": "Insulindelaan 115",
        "house_number": "115",
        "city": "Eindhoven",
        "postal_code": "5642CV",
        "telephone": "+31612345678",
        "request_label": True,
        "email": "john@doe.com",
        "data": [],
        "country": "NL",
        "shipment": {"id": 8,},
        "weight": "10.000",
        "order_number": "1234567890",
        "insured_value": 2000,
    }
}
parcel = Parcels().create_parcel(new_parcel_data)
```

### Develop Mode
For Testing you need to install project in develop mode 
`pip install -e .[develop]` and start this command `python setup.py test`


