A gleam library for parsing kicad footprint files and symbol libraries
Find a file
Lily Rose 118067adb2
Some checks failed
test / test (push) Has been cancelled
Bump version to v1.0.1
2025-07-26 01:26:04 +10:00
.github/workflows Initial commit 2025-07-23 12:29:02 +10:00
src Fix width and height order for size token 2025-07-26 01:25:46 +10:00
test Add functions to main module 2025-07-25 21:13:17 +10:00
test_files Fix parsing issues 2025-07-24 18:57:48 +10:00
.gitignore Initial commit 2025-07-23 12:29:02 +10:00
gleam.toml Bump version to v1.0.1 2025-07-26 01:26:04 +10:00
LICENSE.md Add license 2025-07-25 21:16:04 +10:00
manifest.toml Move benchmarks to tests 2025-07-24 17:45:23 +10:00
README.md Remove unnecessary import in example 2025-07-25 21:28:54 +10:00

kicad_sexpr

Package Version Hex Docs

gleam add kicad_sexpr@1
import kicad_sexpr
import simplifile

pub fn main() -> Nil {
  let assert Ok(bits) = simplifile.read_bits("/usr/share/kicad/symbols/Analog.kicad_sym")
  let assert Ok(symbol_library) = kicad_sexpr.parse_symbol_library(bits)
  let assert [symbol, ..] = symbol_library.symbols
  io.println(symbol.library_unit_id)
}

Further documentation can be found at https://hexdocs.pm/kicad_sexpr.

Development

gleam run   # Run the project
gleam test  # Run the tests