Python interface to JITX parts database
Project description
JITX Parts Database
A Python interface to the JITX parts database allowing you to query and use components from the JITX parts database in your Python scripts.
Installation
pip install jitxlib-parts
Usage
from jitxlib.parts import ResistorQuery, Resistor
from jitx.design import Design
from jitx.units import kohm, pct
# Create a query for a resistor
query = ResistorQuery(
resistance=10 * kohm, # 10kΩ, can also provide a float like 10e3
tolerance=1 * pct, # 1%, can also provide a float (unit-less) like 0.01
)
# Create another query from an existing query.
query_with_case = query.update(case="0603")
class MainCircuit(Circuit):
# All part queries have to be executed during the instantiation of a JITX design.
def __init__ (self) :
# Query a resistor and instantiate it.
self.resistor = Resistor(query_with_case)
# Use in a design
class MyDesign(Design):
circuit = MainCircuit()
...
Features
- Query the JITX parts database for components
- Create components from query results
- Support for resistors, capacitors, inductors, and other components
- Integration with py-jitx for use in designs
Requirements
- Python 3.12+
- jitx package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jitxlib_parts-1.0.0.tar.gz.
File metadata
- Download URL: jitxlib_parts-1.0.0.tar.gz
- Upload date:
- Size: 63.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fc4faaa566969eb0457298ff23918c4d7bfbcefa54703285947d21cd4496e5d
|
|
| MD5 |
531501ad5a0d8e067d2790ccef730222
|
|
| BLAKE2b-256 |
3d20d47d1fbab1940ad03f084d529353e00aa5023254eee83daaf4be4c40b1c1
|
Provenance
The following attestation bundles were made for jitxlib_parts-1.0.0.tar.gz:
Publisher:
release.yaml on JITx-Inc/py-jitx-parts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jitxlib_parts-1.0.0.tar.gz -
Subject digest:
3fc4faaa566969eb0457298ff23918c4d7bfbcefa54703285947d21cd4496e5d - Sigstore transparency entry: 635621961
- Sigstore integration time:
-
Permalink:
JITx-Inc/py-jitx-parts@b0f87e858ef4bdeb5500b38c38e80c6b62972c74 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/JITx-Inc
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b0f87e858ef4bdeb5500b38c38e80c6b62972c74 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file jitxlib_parts-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jitxlib_parts-1.0.0-py3-none-any.whl
- Upload date:
- Size: 48.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d628eddb9022ffe7ad6789f785ee4f55932ca81ea348d19f90b5df6b3cede314
|
|
| MD5 |
377e2cc70debc0658f745e04a8e20bd4
|
|
| BLAKE2b-256 |
14b3b5e9c9e64dee17efc71916dc6581f85b5ddda6af0b62a82c46b50cf6da4c
|
Provenance
The following attestation bundles were made for jitxlib_parts-1.0.0-py3-none-any.whl:
Publisher:
release.yaml on JITx-Inc/py-jitx-parts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jitxlib_parts-1.0.0-py3-none-any.whl -
Subject digest:
d628eddb9022ffe7ad6789f785ee4f55932ca81ea348d19f90b5df6b3cede314 - Sigstore transparency entry: 635621962
- Sigstore integration time:
-
Permalink:
JITx-Inc/py-jitx-parts@b0f87e858ef4bdeb5500b38c38e80c6b62972c74 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/JITx-Inc
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b0f87e858ef4bdeb5500b38c38e80c6b62972c74 -
Trigger Event:
workflow_dispatch
-
Statement type: