{ "info": { "author": "Peter Oostewechel", "author_email": "peter_oostewechel@hotmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.6", "Topic :: Software Development" ], "description": "Python Client for Digikey PartSearch API v2\n=================================\nSearch for parts in the Digi-Key catalog by keyword using KeywordSearch. Then make a PartDetails call to retrieve all \nreal time information about the part including pricing. PartDetails works best with Digi-Key part numbers as some \nmanufacturers overlap other manufacturer part numbers.\n\n[![Pypi](https://img.shields.io/pypi/v/digikey-api.svg?color=brightgreen)](https://pypi.org/project/digikey-api/) \n[![Donate](https://img.shields.io/badge/Donate-PayPal-gold.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=53HWHHVCJ3D4J¤cy_code=EUR&source=url)\n\n# What does it do\n`digkey-api` is an [Digkey Part Search API](https://api-portal.digikey.com/node/8517) client for Python 3.6+. API response data is returned as Python objects that attempt to make it easy to get the data you want. Not all endpoints have been implemented.\n\n# Quickstart\n\n## Register\nRegister an app on the Digikey API portal: [Digi-Key API](https://api-portal.digikey.com/start). You will need the client\nID and the client secret to use the API. You will also need a Digi-Key account to authenticate, using the Oauth2 process.\n\n## Install\n```sh\npip install digikey-api\n\nexport DIGIKEY_CLIENT_ID=\"client_id\"\nexport DIGIKEY_CLIENT_SECRET=\"client_secret\"\nexport DIGIKEY_STORAGE_PATH=\"cache_dir\"\n```\n\n## Use\nPython will automatically spawn a browser to allow you to authenticate using the Oauth2 process. After obtaining a token\nthe library will cache the access token and use the refresh token to automatically refresh your credentials.\n\n```python\nimport os\nimport digikey\n\nos.environ['DIGIKEY_CLIENT_ID'] = client_id\nos.environ['DIGIKEY_CLIENT_SECRET'] = client_secret\nos.environ['DIGIKEY_STORAGE_PATH'] = cache_dir\n\ndkpn = '296-6501-1-ND'\npart = digikey.part(dkpn)\nprint(part)\n# \n\nprint(part.manufacturer)\n# 'Texas Instruments'\n```\n\n## Test\n```sh\npython -m pytest --cov=digikey --doctest-modules --ignore=setup.py\npython -m mypy digikey --ignore-missing-imports\n```\n\n## Top-level API\n* `digikey.search()`\n* `digikey.part()`\n\n## Data models\n* `digikey.models.KeywordSearchResult`\n* `digikey.models.Part`", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/peeter123/digikey-api", "keywords": "", "license": "GPL v3", "maintainer": "", "maintainer_email": "", "name": "digikey-api", "package_url": "https://pypi.org/project/digikey-api/", "platform": "", "project_url": "https://pypi.org/project/digikey-api/", "project_urls": { "Homepage": "https://github.com/peeter123/digikey-api" }, "release_url": "https://pypi.org/project/digikey-api/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Python client for Digikey API", "version": "0.2.0" }, "last_serial": 5920356, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e3afbf55856749ed32c6b97a60056b45", "sha256": "c07d672f709a64e1a8259e48badb5bb9c196351f1c8bfaa4c16fdb3d3006063d" }, "downloads": -1, "filename": "digikey_api-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e3afbf55856749ed32c6b97a60056b45", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25793, "upload_time": "2019-09-13T10:17:46", "url": "https://files.pythonhosted.org/packages/0f/28/d6225e9cf1849ddf236331a406823db3385c8d2b8684d70faaf01f3692c2/digikey_api-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14bdedbfca3a902eabaf87ca646b0481", "sha256": "e05dfceedf30aa4afa5d8b44a09c19d93930636ad8b4533bfd2c5e4874b0cdb9" }, "downloads": -1, "filename": "digikey-api-0.1.0.tar.gz", "has_sig": false, "md5_digest": "14bdedbfca3a902eabaf87ca646b0481", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10434, "upload_time": "2019-09-13T10:17:48", "url": "https://files.pythonhosted.org/packages/e0/9c/50053b5e7f4b6fc7b5231be8d97af1a2215e99961c1f3130b3f444ec6ed3/digikey-api-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1c993f6eef2d69d48dfb814efa8e51f7", "sha256": "02628fb7dc1c0e6f4478ea5b30b1862346aa0621eb12528ec2e8f5759d6b087b" }, "downloads": -1, "filename": "digikey-api-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1c993f6eef2d69d48dfb814efa8e51f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10864, "upload_time": "2019-09-21T14:43:31", "url": "https://files.pythonhosted.org/packages/bf/52/00fc695c692bf073ef4df574098aa70c7d1a7ae2fcf91c9a292c517e3b94/digikey-api-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b490fe475847fd7a5b89c61c84207bc8", "sha256": "755b4d638d71fbf7390e63d8069054dc1b03dbd98a7390d8516a2b69e8ce4903" }, "downloads": -1, "filename": "digikey-api-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b490fe475847fd7a5b89c61c84207bc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11273, "upload_time": "2019-10-02T20:30:39", "url": "https://files.pythonhosted.org/packages/03/40/67f84b0c927c6a77cce126e98d4a9ec17eed4991a52bdc048678b011ce6b/digikey-api-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b490fe475847fd7a5b89c61c84207bc8", "sha256": "755b4d638d71fbf7390e63d8069054dc1b03dbd98a7390d8516a2b69e8ce4903" }, "downloads": -1, "filename": "digikey-api-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b490fe475847fd7a5b89c61c84207bc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11273, "upload_time": "2019-10-02T20:30:39", "url": "https://files.pythonhosted.org/packages/03/40/67f84b0c927c6a77cce126e98d4a9ec17eed4991a52bdc048678b011ce6b/digikey-api-0.2.0.tar.gz" } ] }