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.2.0.tar.gz (73.7 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.2.0-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file jitxlib_parts-1.2.0.tar.gz.

File metadata

  • Download URL: jitxlib_parts-1.2.0.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jitxlib_parts-1.2.0.tar.gz
Algorithm Hash digest
SHA256 30d6cd41699140e4fafe9f19a22a931ba068e00d034b267829c4e39ea0eb8125
MD5 490e98d07a017ba2bc596583378856b3
BLAKE2b-256 f0a2aa6a895e045c63a029d10f8a72e69102d78a783015cc321788442e1f71d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for jitxlib_parts-1.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: jitxlib_parts-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jitxlib_parts-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db4c5b2ceedb81e222d59ef4f69043fdfa70e2f4795cdc967a4a0f795c2a9823
MD5 f543cf7b275df5000003e85dd4f072d7
BLAKE2b-256 c8363ac9cde49ed625520a3587224fb895efaf204d35b1e331208252e8134346

See more details on using hashes here.

Provenance

The following attestation bundles were made for jitxlib_parts-1.2.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