Metadata-Version: 2.5
Name: kirch
Version: 0.0.1
Summary: Engineering-notation parser and IEC 60063 preferred-value finder (CLI).
Author: kirch
License-Expression: MIT
License-File: LICENSE
Keywords: cli,e-series,electronics,engineering-notation,iec-60063,resistor
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# kirch

Small command-line utility for electronics work: engineering-notation parsing and IEC 60063 preferred-value lookup. Preview release.

## Install

```sh
pip install kirch
```

## Commands

```sh
kirch value 4k7          # 4700  (4.7k)    engineering notation parser
kirch value 100n         # 1e-07  (100n)
kirch eseries 5.1k E96   # 5.11k (+0.20%)  nearest IEC 60063 preferred value
kirch eseries 3300 E12   # 3.3k  (+0.00%)
kirch --version
```

Also usable as a library:

```python
from kirch import parse_value, nearest
parse_value("4k7")        # 4700.0
nearest(5100, "E96")      # (5110.0, 0.00196...)
```

Supported notation: `p n u µ m k M G`, and prefix-as-decimal-point forms such as `4k7`, `2M2`, `1R5`. Trailing units (`Ω`, `ohm`, `F`, `H`, `V`, `A`, `W`) are ignored.

## License

MIT
