Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stasfilin/sendcloud
Unofficial Python Library. This is a Python library that provides a simple way to communicate with the Sendcloud API.
https://github.com/stasfilin/sendcloud
python python-library sendcloud sendcloud-api sendcloud-integration sendcloud-sdk
Last synced: 2 months ago
JSON representation
Unofficial Python Library. This is a Python library that provides a simple way to communicate with the Sendcloud API.
- Host: GitHub
- URL: https://github.com/stasfilin/sendcloud
- Owner: stasfilin
- License: mit
- Created: 2020-05-05T13:06:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T15:33:29.000Z (10 months ago)
- Last Synced: 2024-10-12T07:34:36.282Z (3 months ago)
- Topics: python, python-library, sendcloud, sendcloud-api, sendcloud-integration, sendcloud-sdk
- Language: Python
- Homepage:
- Size: 99.6 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SendCloud
![Python package](https://github.com/stasfilin/sendcloud/workflows/Python%20package/badge.svg?branch=master)
[![Downloads](https://pepy.tech/badge/sendcloud-python)](https://pepy.tech/project/sendcloud-python)
[![Downloads](https://pepy.tech/badge/sendcloud-python/month)](https://pepy.tech/project/sendcloud-python)
[![Downloads](https://pepy.tech/badge/sendcloud-python/week)](https://pepy.tech/project/sendcloud-python)[![sendcloud-python](https://snyk.io/advisor/python/sendcloud-python/badge.svg)](https://snyk.io/advisor/python/sendcloud-python)
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 Parcelssendcloud.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": "[email protected]",
"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`