No project description provided
Project description
SendCloud
Unofficial Python Library
This is a Python library that provides a simple way to communicate with the Sendcloud API.
Installation
pip install sendcloud-python
Example
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sendcloud-python-0.1.4.tar.gz
.
File metadata
- Download URL: sendcloud-python-0.1.4.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 473184f9b92c4e033f16657506c2821c136f44cf47a952f586ff92cb70f31573 |
|
MD5 | ac343989e95ecebbcffae67181eb0daf |
|
BLAKE2b-256 | cc0f6c0ea27f85e9788f037cd0b21bbe3c914776df7f0e9df93449c97c5bfe65 |
File details
Details for the file sendcloud_python-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: sendcloud_python-0.1.4-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9163b7c00b94659ec40b80e08241ad95f2d87503d86726b8da001a9c79e376b8 |
|
MD5 | 62f0c4109d860dfafdf6bc4ba389abbd |
|
BLAKE2b-256 | 7bc14914f8ede873b32e1c010cd797d2ee9cce756b70fce6a81460694f8c0b6e |