Skip to main content

Client library for accessing Cofactr data.

Project description

Cofactr

Python client library for accessing Cofactr.

Example

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cofactr-5.38.0.tar.gz (20.8 kB view hashes)

Uploaded Source

Built Distribution

cofactr-5.38.0-py3-none-any.whl (45.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page