question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

As I mentioned on the forum I’d be happy for KiCost users to make use of the Partinfo API.

I am happy for people working on BOM tools, especially KiCost users and developers, to use (but not abuse) the Partinfo endpoint right now, specifically: https://dev-partinfo.kitspace.org/graphql.

It’s currently an open endpoint so anyone can access it. Docs are a bit thin but you are able to browse the schema using the “Documentation Explorer” on the right on the above URL and you can jump on our chat or the GitHub issue tracker if you have any questions. You don’t need any special GraphQL client to use it, here is the example query using curl:

curl  -H 'Content-Type: application/json' -X POST -d '{"query": "{ part(mpn: {part: \"NE555P\", manufacturer: \"Texas Instruments\"}) { datasheet description type offers { sku { vendor part } prices { USD EUR GBP SGD } } } }"}' https://dev-partinfo.kitspace.org/graphql | python -m json.tool

To cover the API costs when Octopart does ask for payment I suggest we pool money in opencollective.com/kitspace. I estimate that $100 a month will be enough to cover current KiCost users (but we will see of course).


Some more explanation of the current Partinfo schema.

Currently there are 3 query types and all of the return Part types. As with the Octopart API the Part types contains an array of Offer types from different retailers with prices. E.g.

part(mpn: Mpn, sku: Sku): Part

Returns a single Part that matches a manufacturer part number (Mpn) or retailer stock keeping unit (Sku). This is considered a match. You can also batch multiple part matches requests and get back multiple parts.

match(parts: [MpnOrSku]): [Part]

We can also search and get back multiple parts.

search(term: String): [Part]

Here free form text is parsed by Electro Grammar and turned into parametric Octopart searches and also matched against the Common Parts Library.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:70 (63 by maintainers)

github_iconTop GitHub Comments

1reaction
hildogjrcommented, Jul 23, 2019

@kasbah, KiCost with PartInfo API is released https://forum.kicad.info/t/new-kicost-release/8074/2 Please, keep us updated about the server use and some statistics (for example country of access, …). If necessary, we can add a “&tool=kicost” in the request link to help you with the statistics.

1reaction
xesscorpcommented, Jun 24, 2019

OK, once @hildogjr has a new release of KiCost on PyPI, then we can announce it has re-awakened and it is using Partinfo as its engine. Then we can request donations for Partinfo’s upkeep. (If we get more than $100, I’d be very surprised.)

@hildogjr , with regards to creating new API interfaces and scraping modules for KiCost, I think your effort would be better spent doing that inside the Partinfo framework. That way, the new interfaces will be available to any and all tools that use Partinfo. That may lead to more maintainers and quicker bug fixes, particularly for any web scrapers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Partinfo API · Issue #346 · hildogjr/KiCost - GitHub
It's currently an open endpoint so anyone can access it. Docs are a bit thin but you are able to browse the schema...
Read more >
Get the database partition server number for a row - IBM
Returns the database partition number and the database partition server number based on the distribution key values. An application can use this information ......
Read more >
PartInfo (Hive 2.1.1 API) - The Apache Software Foundation!
The Class used to serialize the partition information read from the metadata server that maps to a partition. See Also: Serialized Form. Constructor ......
Read more >
Uses of Class org.springframework.data.neo4j.repository ...
Methods in org.springframework.data.neo4j.repository.query with parameters of type PartInfo. Modifier and Type, Method and Description ...
Read more >
PartInfo (AEM forms on JEE Java API Reference) - Adobe Developer
public class PartInfo; extends java.lang.Object; implements java.io.Serializable. Represents the content objects of a document stored in IBM Content Manager ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found