{ "info": { "author": "Palo Sopko", "author_email": "pavol@sopko.sk", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# DEPO Delivery Service Bindings for Python\n\nPython wrapper for [DEPO](https://depo.sk)'s application interface. At the moment, it provides easy access to contracted places (input / output) and placing and canceling orders.\n\nDetailed information of DEPO's API can be found at [their website](https://admin.depo.sk/apigility/documentation/Api-v2). If you feel like you need covering additional API methods, please open an issue or create a pull request.\n\n## Setup\n\nYou can install this package by using `pip`:\n\n\tpip install depo\n\nIf you fancy `pipenv` use:\n\n\tpipenv install depo\n\nTo install from source, run:\n\n\tpython setup.py install\n\nFor the API client to work you would need Python 2.7+ or Python 3.4+.\n\nTo install via `requirements` file from your project, add the following for the moment before updating dependencies:\n\n\tgit+git://github.com/palosopko/depo-python.git#egg=depo\n\n## Usage\n\nFirst off, you need to require the library and provide authentication information by providing your user name and password do [DEPO's admin interface](https://admin.depo.sk`)\n\n\timport depo\n\tdibuk.api_credentials = ('email', 'password')\n\n**Getting contracted places** is accomplished by calling `depo.Place.all()`. The method returns a list with `depo.Place` objects containing all the relevant details. Please note boolean properties `is_input` and `is_output` \u2013 if you are just trying to implement DEPO's service for your customers to get their orders, you will only be interested in the latter.\n\nTo **place a new order** you need to run `depo.Order.create()` with code of a place (or `Place` object), recipient's name, phone, email and order's amount, product amount and optionally an order reference. Method returns dictionary with delivery details including reference number under the `number` key.\n\n## Contributing\n\n1. Check for open issues or open a new issue for a feature request or a bug.\n2. Fork the repository and make your changes to the master branch (or branch off of it).\n3. Send a pull request.\n\n## Development\n\nRun all tests on all supported Python versions:\n\n\tmake test\n\nRun the linter with:\n\n\tmake lint\n\nThe client library uses Black for code formatting. Code must be formatted with Black before PRs are submitted. Run the formatter with:\n\n\tmake fmt\n\n## Changelog\n\n### v0.2.0: 30/09/2019\n\nPython 3 compatibility for real, code formatting is covered by Black and various small fixes to make everything better and easier including first test.\n\n### v0.1.1: 04/04/2017\n\nFixes creating order from place's identifiers sent as unicode.\n\n### v0.1.0: 28/03/2017\n\nInitial version with support for getting pickup places.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.backbone.sk/en/", "keywords": "depo", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "depo", "package_url": "https://pypi.org/project/depo/", "platform": "", "project_url": "https://pypi.org/project/depo/", "project_urls": { "Bug Tracker": "https://github.com/palosopko/depo-python/issues", "Homepage": "https://www.backbone.sk/en/", "Source Code": "https://github.com/palosopko/depo-python" }, "release_url": "https://pypi.org/project/depo/0.2.0/", "requires_dist": [ "requests (>=2.21.0)", "six (>=1.3.0)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "DEPO Delivery Service Bindings for Python", "version": "0.2.0" }, "last_serial": 5911478, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "ef8664841f162f3784eb471c8f1b5f83", "sha256": "21c010a37e7f3da83a699c0d2ceae5e74300510480aaf30aa9a9f875b983c3be" }, "downloads": -1, "filename": "depo-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "ef8664841f162f3784eb471c8f1b5f83", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9195, "upload_time": "2019-10-01T10:03:21", "url": "https://files.pythonhosted.org/packages/9b/d5/ece4d0d1f6a0b32cc1d45010533d42dd533bb9d5f7fdba770d0e14004528/depo-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "178f34db4d110e79fdff484e349e4b23", "sha256": "07dfbcebe246f891d9cf344763cf2507feaaea12b8aedadb8ca18f4d4d11d89e" }, "downloads": -1, "filename": "depo-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "178f34db4d110e79fdff484e349e4b23", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6269, "upload_time": "2019-10-01T10:03:17", "url": "https://files.pythonhosted.org/packages/3d/a4/6ae1d5751bb94ab9d627daba9e1160ccfc5153797700b08063294e44d5ed/depo-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8bc30a0883a2d898d8ba382aca244b7e", "sha256": "e9442531e227c94ad9dc8ab3a039effbba08d852c6c960edc02e2228dd599c9d" }, "downloads": -1, "filename": "depo-0.2.0-py3.7.egg", "has_sig": false, "md5_digest": "8bc30a0883a2d898d8ba382aca244b7e", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 8507, "upload_time": "2019-10-01T10:03:23", "url": "https://files.pythonhosted.org/packages/28/f9/d3e4328f6f00f888378f92999b77372f5f9f29573c995987125fb2b5a46a/depo-0.2.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "bb32e8dcba2bb75e32e66cb6b928a8e3", "sha256": "f5e8791e9c66f770f7af56514b4f376e4cbe040bb7ad4f949b51559983b9cd6c" }, "downloads": -1, "filename": "depo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bb32e8dcba2bb75e32e66cb6b928a8e3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6226, "upload_time": "2019-10-01T10:03:25", "url": "https://files.pythonhosted.org/packages/7d/ab/701a07eecf61990615d4b14c02471acaf3fbfa08d72cc36a1f36975e12fb/depo-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef8664841f162f3784eb471c8f1b5f83", "sha256": "21c010a37e7f3da83a699c0d2ceae5e74300510480aaf30aa9a9f875b983c3be" }, "downloads": -1, "filename": "depo-0.2.0-py2.7.egg", "has_sig": false, "md5_digest": "ef8664841f162f3784eb471c8f1b5f83", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 9195, "upload_time": "2019-10-01T10:03:21", "url": "https://files.pythonhosted.org/packages/9b/d5/ece4d0d1f6a0b32cc1d45010533d42dd533bb9d5f7fdba770d0e14004528/depo-0.2.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "178f34db4d110e79fdff484e349e4b23", "sha256": "07dfbcebe246f891d9cf344763cf2507feaaea12b8aedadb8ca18f4d4d11d89e" }, "downloads": -1, "filename": "depo-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "178f34db4d110e79fdff484e349e4b23", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6269, "upload_time": "2019-10-01T10:03:17", "url": "https://files.pythonhosted.org/packages/3d/a4/6ae1d5751bb94ab9d627daba9e1160ccfc5153797700b08063294e44d5ed/depo-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8bc30a0883a2d898d8ba382aca244b7e", "sha256": "e9442531e227c94ad9dc8ab3a039effbba08d852c6c960edc02e2228dd599c9d" }, "downloads": -1, "filename": "depo-0.2.0-py3.7.egg", "has_sig": false, "md5_digest": "8bc30a0883a2d898d8ba382aca244b7e", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 8507, "upload_time": "2019-10-01T10:03:23", "url": "https://files.pythonhosted.org/packages/28/f9/d3e4328f6f00f888378f92999b77372f5f9f29573c995987125fb2b5a46a/depo-0.2.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "bb32e8dcba2bb75e32e66cb6b928a8e3", "sha256": "f5e8791e9c66f770f7af56514b4f376e4cbe040bb7ad4f949b51559983b9cd6c" }, "downloads": -1, "filename": "depo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "bb32e8dcba2bb75e32e66cb6b928a8e3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6226, "upload_time": "2019-10-01T10:03:25", "url": "https://files.pythonhosted.org/packages/7d/ab/701a07eecf61990615d4b14c02471acaf3fbfa08d72cc36a1f36975e12fb/depo-0.2.0.tar.gz" } ] }