{ "info": { "author": "Forrest Beck", "author_email": "forrest.beck@da.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "# Lightspeed HQ API Python Library\nGives easy access to the Lightspeed retail point of sale api.\n\nTo use create a new object with settings in a dictionary. Then just specify\nthe endpoints and paramaters in your request.\n\nFor API documentation see: https://developers.lightspeedhq.com/retail/introduction/introduction/\n\nSome examples of uses:\n\n```python\n# Create a new dictionary with some settings that we will need.\nimport lightspeed_api\n\nc = {'account_id': '12345678',\n 'client_id': 'developer_client_id',\n 'client_secret': 'developer_client_secret',\n 'refresh_token': 'special_refresh_token'\n}\n \nls = lightspeed_api.Lightspeed(c)\n\n# Get a customer record\nls.get('Customer/1234')\n\n# Delete a customer by id number\nls.delete('Customer/1234')\n\n# Create a new customer\nformatted = {'Customer':\n {'firstName': 'Joe',\n 'lastName': 'Smith',\n 'companyRegistrationNumber': '1234',\n 'customerTypeID': 1,\n 'Contact': {\n 'custom': '',\n 'noEmail': 'false',\n 'noPhone': 'false',\n 'noMail': 'false',\n 'Emails': {\n 'ContactEmail': {\n 'address': 'joe.smith@company.com',\n 'useType': 'Primary'\n }\n },\n 'Addresses': {\n 'ContactAddress': {\n 'address1': '1212 Street Drive',\n 'address2': '',\n 'city': 'New York',\n 'state': 'New York',\n 'zip': '12345',\n 'country': 'USA',\n 'countryCode': '',\n 'stateCode': ''\n }\n }\n },\n }\n }\nls.create(\"Customer\", formatted[\"Customer\"])\n\n\n\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/beckf/lightspeed_api/archive/v.01.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/beckf/lightspeed_api", "keywords": "Lightspeed,HQ,API,POS", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "lightspeed-api", "package_url": "https://pypi.org/project/lightspeed-api/", "platform": "", "project_url": "https://pypi.org/project/lightspeed-api/", "project_urls": { "Download": "https://github.com/beckf/lightspeed_api/archive/v.01.tar.gz", "Homepage": "https://github.com/beckf/lightspeed_api" }, "release_url": "https://pypi.org/project/lightspeed-api/0.1/", "requires_dist": null, "requires_python": "", "summary": "Simple library for interacting with the Lightspeed HQ API", "version": "0.1" }, "last_serial": 5442811, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "83ce9a63e7034530182ee834bd1248ff", "sha256": "d834340fd2ff2dc29074f133874e0c4de1f5373a3c10a5c98525446fed3a0a5a" }, "downloads": -1, "filename": "lightspeed_api-0.1.tar.gz", "has_sig": false, "md5_digest": "83ce9a63e7034530182ee834bd1248ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4043, "upload_time": "2019-06-24T22:10:54", "url": "https://files.pythonhosted.org/packages/57/4d/ead54e67c4ccb930c64789eded715c6f49bb98bbecc3d05e77274b33fc0a/lightspeed_api-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83ce9a63e7034530182ee834bd1248ff", "sha256": "d834340fd2ff2dc29074f133874e0c4de1f5373a3c10a5c98525446fed3a0a5a" }, "downloads": -1, "filename": "lightspeed_api-0.1.tar.gz", "has_sig": false, "md5_digest": "83ce9a63e7034530182ee834bd1248ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4043, "upload_time": "2019-06-24T22:10:54", "url": "https://files.pythonhosted.org/packages/57/4d/ead54e67c4ccb930c64789eded715c6f49bb98bbecc3d05e77274b33fc0a/lightspeed_api-0.1.tar.gz" } ] }