Skip to main content

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


Download files

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

Source Distribution

jitxlib_parts-1.0.0.tar.gz (63.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jitxlib_parts-1.0.0-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

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

Hashes for jitxlib_parts-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3fc4faaa566969eb0457298ff23918c4d7bfbcefa54703285947d21cd4496e5d
MD5 531501ad5a0d8e067d2790ccef730222
BLAKE2b-256 3d20d47d1fbab1940ad03f084d529353e00aa5023254eee83daaf4be4c40b1c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for jitxlib_parts-1.0.0.tar.gz:

Publisher: release.yaml on JITx-Inc/py-jitx-parts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for jitxlib_parts-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d628eddb9022ffe7ad6789f785ee4f55932ca81ea348d19f90b5df6b3cede314
MD5 377e2cc70debc0658f745e04a8e20bd4
BLAKE2b-256 14b3b5e9c9e64dee17efc71916dc6581f85b5ddda6af0b62a82c46b50cf6da4c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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