Metadata-Version: 2.1
Name: cofactr
Version: 5.21.0
Summary: Client library for accessing Cofactr data.
Home-page: https://github.com/Cofactr/cofactr-client
License: MIT
Keywords: cofactr
Author: Joseph Sayad
Author-email: joseph@cofactr.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: httpx (>=0.23.0,<0.24.0)
Requires-Dist: more-itertools (>=9.0.0,<10.0.0)
Requires-Dist: tenacity (>=8.1.0,<9.0.0)
Requires-Dist: typing-extensions (>=4.5.0,<5.0.0)
Project-URL: Repository, https://github.com/Cofactr/cofactr-client
Description-Content-Type: text/markdown

# 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"]
```

