Metadata-Version: 2.1
Name: cofactr
Version: 5.5.0
Summary: Client library for accessing Cofactr data.
Home-page: https://github.com/Cofactr/cofactr-client
License: MIT
Keywords: cofactr
Author: Noah Trueblood
Author-email: noah@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.9
Requires-Dist: httpx (>=0.23.0,<0.24.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()

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

