# Cofactr
Python client library for accessing Cofactr.
## Example
```python
from typing import List
from cofactr.graph import GraphAPI
# Flagship is the default schema.
from cofactr.schema.flagship.part import Part
graph = GraphAPI(client_id=..., api_key=...)
part_res = graph.get_product(id="IM60640MOX6H")
part: Part = part_res["data"]
parts_res = graph.get_products(query="esp32")
parts: List[Part] = parts_res["data"]
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Cofactr/cofactr-client",
"name": "cofactr",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "cofactr",
"author": "Joseph Sayad",
"author_email": "joseph@cofactr.com",
"download_url": "https://files.pythonhosted.org/packages/df/a8/a3ed34193a4e0b4e98bfce3c9bd0b0371c0a99dc7e52b3f9cb5b0fe5ea6d/cofactr-5.38.0.tar.gz",
"platform": null,
"description": "# Cofactr\n\nPython client library for accessing Cofactr.\n\n## Example\n\n```python\nfrom typing import List\nfrom cofactr.graph import GraphAPI\n\n# Flagship is the default schema.\nfrom cofactr.schema.flagship.part import Part\n\ngraph = GraphAPI(client_id=..., api_key=...)\n\npart_res = graph.get_product(id=\"IM60640MOX6H\")\npart: Part = part_res[\"data\"]\n\nparts_res = graph.get_products(query=\"esp32\")\nparts: List[Part] = parts_res[\"data\"]\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Client library for accessing Cofactr data.",
"version": "5.38.0",
"project_urls": {
"Homepage": "https://github.com/Cofactr/cofactr-client",
"Repository": "https://github.com/Cofactr/cofactr-client"
},
"split_keywords": [
"cofactr"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9fe134f04afcb166df6c319d1980c29521f0ee747e10a1d6844dcb1fc31747e1",
"md5": "5fb4c4e51a0f45e84133b2c69ed4586f",
"sha256": "31c1a34f2c8e63db4e104be64b9ace966b9c1311ad9a1ac19abbb733c1295807"
},
"downloads": -1,
"filename": "cofactr-5.38.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5fb4c4e51a0f45e84133b2c69ed4586f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 45941,
"upload_time": "2024-01-30T17:23:56",
"upload_time_iso_8601": "2024-01-30T17:23:56.845529Z",
"url": "https://files.pythonhosted.org/packages/9f/e1/34f04afcb166df6c319d1980c29521f0ee747e10a1d6844dcb1fc31747e1/cofactr-5.38.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dfa8a3ed34193a4e0b4e98bfce3c9bd0b0371c0a99dc7e52b3f9cb5b0fe5ea6d",
"md5": "ac3290e5d6f982fbcdd3e8e182692670",
"sha256": "ebb26d2f10d30710c8b927ddcc3bc4ccdaa890f25737a5e7c4d9cf671d013ac7"
},
"downloads": -1,
"filename": "cofactr-5.38.0.tar.gz",
"has_sig": false,
"md5_digest": "ac3290e5d6f982fbcdd3e8e182692670",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 20799,
"upload_time": "2024-01-30T17:26:20",
"upload_time_iso_8601": "2024-01-30T17:26:20.352799Z",
"url": "https://files.pythonhosted.org/packages/df/a8/a3ed34193a4e0b4e98bfce3c9bd0b0371c0a99dc7e52b3f9cb5b0fe5ea6d/cofactr-5.38.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-30 17:26:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Cofactr",
"github_project": "cofactr-client",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cofactr"
}