sendcloud-python


Namesendcloud-python JSON
Version 0.1.5 PyPI version JSON
download
home_pagehttps://github.com/stasfilin/sendcloud
SummaryNone
upload_time2025-01-18 22:02:44
maintainerNone
docs_urlNone
authorStanislav Filin
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 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`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stasfilin/sendcloud",
    "name": "sendcloud-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Stanislav Filin",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/6b/79/c2b4b411bc4edd8eee86c898cb37b059346c2098eaa7eb01547c6d61c66f/sendcloud_python-0.1.5.tar.gz",
    "platform": null,
    "description": "# SendCloud\n![Python package](https://github.com/stasfilin/sendcloud/workflows/Python%20package/badge.svg?branch=master)\n[![Downloads](https://pepy.tech/badge/sendcloud-python)](https://pepy.tech/project/sendcloud-python)\n[![Downloads](https://pepy.tech/badge/sendcloud-python/month)](https://pepy.tech/project/sendcloud-python)\n[![Downloads](https://pepy.tech/badge/sendcloud-python/week)](https://pepy.tech/project/sendcloud-python)\n\n[![sendcloud-python](https://snyk.io/advisor/python/sendcloud-python/badge.svg)](https://snyk.io/advisor/python/sendcloud-python)\n\n\nUnofficial Python Library\n\nThis is a Python library that provides a simple way to communicate with the Sendcloud API. \n\n## Installation \n```sh\npip install sendcloud-python\n```\n\n## Example\n\n```python\nimport sendcloud\nfrom sendcloud.classes import Parcels\n\nsendcloud.API_KEY = \"TEST_KEY\"\nsendcloud.API_SECRET = \"TEST_SECRET\"\n\nparcels = Parcels().get_parcels()\n\nnew_parcel_data = {\n    \"parcel\": {\n        \"name\": \"John Doe\",\n        \"company_name\": \"Sendcloud\",\n        \"address\": \"Insulindelaan 115\",\n        \"house_number\": \"115\",\n        \"city\": \"Eindhoven\",\n        \"postal_code\": \"5642CV\",\n        \"telephone\": \"+31612345678\",\n        \"request_label\": True,\n        \"email\": \"john@doe.com\",\n        \"data\": [],\n        \"country\": \"NL\",\n        \"shipment\": {\"id\": 8,},\n        \"weight\": \"10.000\",\n        \"order_number\": \"1234567890\",\n        \"insured_value\": 2000,\n    }\n}\nparcel = Parcels().create_parcel(new_parcel_data)\n```\n\n### Develop Mode\nFor Testing you need to install project in develop mode \n`pip install -e .[develop]` and start this command `python setup.py test`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": null,
    "version": "0.1.5",
    "project_urls": {
        "Homepage": "https://github.com/stasfilin/sendcloud"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "631add90bed21b0f53f939acffc78b10a5335a1101a2a82b17e79c3278fc4a0c",
                "md5": "3a36633c089c5a483753df736d573982",
                "sha256": "2ce0e65991c1a5de129b0a74343e683513d6d637d0ca31771272892fb840e70f"
            },
            "downloads": -1,
            "filename": "sendcloud_python-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3a36633c089c5a483753df736d573982",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12094,
            "upload_time": "2025-01-18T22:02:42",
            "upload_time_iso_8601": "2025-01-18T22:02:42.749875Z",
            "url": "https://files.pythonhosted.org/packages/63/1a/dd90bed21b0f53f939acffc78b10a5335a1101a2a82b17e79c3278fc4a0c/sendcloud_python-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b79c2b4b411bc4edd8eee86c898cb37b059346c2098eaa7eb01547c6d61c66f",
                "md5": "9163c3161f8f9d638aeed9b89081c4a7",
                "sha256": "032df4e148a59ce9ae11b6db551294dcb8ea67c71b4526214380b7447868c07b"
            },
            "downloads": -1,
            "filename": "sendcloud_python-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "9163c3161f8f9d638aeed9b89081c4a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11276,
            "upload_time": "2025-01-18T22:02:44",
            "upload_time_iso_8601": "2025-01-18T22:02:44.376979Z",
            "url": "https://files.pythonhosted.org/packages/6b/79/c2b4b411bc4edd8eee86c898cb37b059346c2098eaa7eb01547c6d61c66f/sendcloud_python-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-18 22:02:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stasfilin",
    "github_project": "sendcloud",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "sendcloud-python"
}
        
Elapsed time: 1.48706s