Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/octopart/CPL-Data
https://github.com/octopart/CPL-Data
cpl iot pcb-layout yaml-data
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/octopart/CPL-Data
- Owner: octopart
- License: other
- Archived: true
- Created: 2016-09-21T15:54:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T16:37:23.000Z (almost 6 years ago)
- Last Synced: 2024-08-10T14:13:38.930Z (5 months ago)
- Topics: cpl, iot, pcb-layout, yaml-data
- Homepage: https://octopart.com/common-parts-library/production
- Size: 88.9 KB
- Stars: 28
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CPL-Data
The Common Parts Library is a set of commonly used electronic components for designing and manufacturing connected device products. This library has [CPL for Production](https://octopart.com/common-parts-library/production) and [CPL for Prototyping](https://octopart.com/common-parts-library/prototyping) data in YAML format.For more information about the Common Parts Library, please check this [page](https://octopart.com/common-parts-library/about). For CAD models in various PCB design tools, refer to individual part detail pages on Octopart such as [this](https://octopart.com/lpc1768fbd100%2C551-nxp+semiconductors-11854624#ecad) one.
Sign up for Octopart Slack channel [here](https://join-chat.octopart.com/), and share any questions, feedback or thoughts with us there.
YAML data can be parsed in all the major languages. An example on how to parse the YAML data in Python is shown below. It returns all capacitor MPNs with a value of 1 pF in the CPL for Production:
```
import yaml
with open('CPL-Data/CPL for Production/Capacitors.yaml', 'r') as f:
doc = yaml.load(f)def findmpn(value):
for row in doc["rows"]:
if row["extravals"]["Capacitance"] == value:
for part in row["parts"]:
print(part["mpn"])if __name__ == "__main__":
findmpn("1 pF")
```