{ "info": { "author": "Winfried Simon", "author_email": "winfried.simon@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# LxpApi\nLibrary and Command-Line Interface for the LxpApi (www.letterxpress.de)\n\nThe package consists of two building blocks:\n- Python library LxpApi to integrate the interface into Python applications.\n- Command line tool lxpservice, which is [explained here](https://github.com/Simsys/LxpApi/blob/master/lxpservice.md). \n\nInstalling LxpApi\n-----------------\n\nAs usual, LxpApi is installed with pip (or pip3). This will install both the library and the command line tool.\n```\n$pip install lxpservice\n```\nUsing LxpApi\n------------\n\nFirst import the LxpAPi library and pprint for nice view on complex pythen types.\n```python\n>>> from LxpApi import LxpApi\n>>> from pprint import pprint\n```\nCreate an instance of LxpApi with the credentials\n```python\n>>> url = \"https://sandbox.letterxpress.de/v1/\"\n>>> user = \n>>> api_key = \n>>> lxp_api = LxpApi(url, user, api_key)\n```\nNow we can work with the API and execute various commands. The library always returns an answer from which it can be seen if the function could be executed successfully.\n\nLet's first look at the current credit balance.\n```python\n>>> response = lxp_api.get_balance()\n>>> pprint(response)\n{'auth': {'id': '46', 'status': 'active', 'user': },\n 'balance': {'currency': 'EUR', 'value': '91.59'},\n 'message': 'OK',\n 'status': 200}\n```\nNow we upload a PDF file to the server\n```python\n>>> response=lxp_api.set_job('one-page.pdf')\n>>> pprint(response)\n{'auth': {'id': '46', 'status': 'active', 'user': },\n 'letter': {'job_id': '3422',\n 'price': 0.74,\n 'specification': {'color': 1,\n 'mode': 'simplex',\n 'page': 1,\n 'ship': 'national'},\n 'status': 'queue'},\n 'message': 'OK',\n 'status': 200}\n```\nIn response, we receive some information such as the price or other attributes of the order. These attributes can be influenced during upload. How todo this and other information can be found in the [library documentation](https://github.com/Simsys/LxpApi/blob/master/LxpApi/lxpapi.py). Alternatively they can be retrieved with help(LxpApi). All available methods and possible parameters are described here.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Simsys/LxpApi", "keywords": "comman-line-tool library print-service", "license": "LGPL2", "maintainer": "", "maintainer_email": "", "name": "lxpservice", "package_url": "https://pypi.org/project/lxpservice/", "platform": "", "project_url": "https://pypi.org/project/lxpservice/", "project_urls": { "Homepage": "https://github.com/Simsys/LxpApi" }, "release_url": "https://pypi.org/project/lxpservice/0.0.2/", "requires_dist": [ "click", "requests", "keyring" ], "requires_python": "", "summary": "Command line tool and library to manage LetterXpress print jobs.", "version": "0.0.2" }, "last_serial": 4747064, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c1c820eeda201139876d4595004b551a", "sha256": "7aa6f7e2ba6d348bd9aa3b382168438fa6f320f74d90297e69c25d4a9eb3179b" }, "downloads": -1, "filename": "lxpservice-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c1c820eeda201139876d4595004b551a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7730, "upload_time": "2019-01-27T18:07:16", "url": "https://files.pythonhosted.org/packages/5d/5d/7a274337970eb21d81d3623f94996890aac658a9e6f493abfaa8c0dada21/lxpservice-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b68639167d0b2ad8b9a920297f5271e", "sha256": "26ccfc98a395c0a67593df827e50af2f195360ff613618386a3d661f9760c8b3" }, "downloads": -1, "filename": "lxpservice-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0b68639167d0b2ad8b9a920297f5271e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5511, "upload_time": "2019-01-27T18:07:18", "url": "https://files.pythonhosted.org/packages/59/91/55e1cb8f6a5f4d44b19872dbae37543f30be138f6eeca65e003e803dd976/lxpservice-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b98a367ba1ee558f6613327d283c9744", "sha256": "b181a6957e4a03c231668548a11e4fe0f191df5da1cfcace309cfed9d5837aad" }, "downloads": -1, "filename": "lxpservice-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b98a367ba1ee558f6613327d283c9744", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9552, "upload_time": "2019-01-27T20:24:44", "url": "https://files.pythonhosted.org/packages/78/29/c87f547bdbc46f4358f1e766f5c9d76b987fec8081489a8d2e1fbb09eca9/lxpservice-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d97066ee6fc0b066827f8675a7b37f04", "sha256": "6d320b9978786f445341a9d41891254f8f6e4cd25913fd584abddf2138198eb6" }, "downloads": -1, "filename": "lxpservice-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d97066ee6fc0b066827f8675a7b37f04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7615, "upload_time": "2019-01-27T20:24:45", "url": "https://files.pythonhosted.org/packages/fb/c5/fbbb1fc70432857b9d90568fa3d2da727b6c5265ecb68478e00762a61e69/lxpservice-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b98a367ba1ee558f6613327d283c9744", "sha256": "b181a6957e4a03c231668548a11e4fe0f191df5da1cfcace309cfed9d5837aad" }, "downloads": -1, "filename": "lxpservice-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b98a367ba1ee558f6613327d283c9744", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9552, "upload_time": "2019-01-27T20:24:44", "url": "https://files.pythonhosted.org/packages/78/29/c87f547bdbc46f4358f1e766f5c9d76b987fec8081489a8d2e1fbb09eca9/lxpservice-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d97066ee6fc0b066827f8675a7b37f04", "sha256": "6d320b9978786f445341a9d41891254f8f6e4cd25913fd584abddf2138198eb6" }, "downloads": -1, "filename": "lxpservice-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d97066ee6fc0b066827f8675a7b37f04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7615, "upload_time": "2019-01-27T20:24:45", "url": "https://files.pythonhosted.org/packages/fb/c5/fbbb1fc70432857b9d90568fa3d2da727b6c5265ecb68478e00762a61e69/lxpservice-0.0.2.tar.gz" } ] }